/* ==========================================================================
   RESET / NORMALIZE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #2a2a2a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #1f2a14;
}

h1 { 
    font-size: 3.813rem; 
    line-height: 1.0; /* 100% */
    letter-spacing: -0.02em; /* -2% */
} 
h2 { 
    font-size: 3.063rem; 
    line-height: 1.1; /* 110% */
    letter-spacing: -0.0175em; /* -1.75% */
} 
h3 { 
    font-size: 2.438rem; 
    line-height: 1.2; /* 120% */
    letter-spacing: -0.015em; /* -1.5% */
} 
h4 { 
    font-size: 1.938rem; 
    line-height: 1.3; /* 130% */
    letter-spacing: -0.01em; /* -1% */
} 
h5 { 
    font-size: 1.563rem; 
    line-height: 1.35; /* 135% */
    letter-spacing: -0.0075em; /* -0.75% */
} 
h6 { 
    font-size: 1.25rem; 
    line-height: 1.4; /* 140% */
    letter-spacing: -0.005em; /* -0.5% */
} 

p {
    font-size: 1rem;
    line-height: 1.5; /* 150% */
    letter-spacing: normal; /* default */
}

/* ==========================================================================
   DON EFE — Main Stylesheet
   Glassmorphism landing page
   ========================================================================== */

:root {
    /* ==========================================================================
       GLOBAL DESIGN SYSTEM TOKENS
       ========================================================================== */

    /* Brand palette */
    --green-primary: #5a8a2a;
    --green-dark: #3f6a18;
    --green-light: #8bb455;
    --green-text: #2f4a14;
    --gold: #d4b14a;
    --gold-dark: #b8962a;
    --brown: #593605;
    --cream: #f7f3e8;
    --bg-soft: #eef5e6;

    /* Neutral */
    --black: #1f2a14;
    --text: #2a2a2a;
    --text-light: #5a5a5a;
    --color-text-muted: var(--text-light);
    --white: #ffffff;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-strong: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px rgba(60, 90, 30, 0.18);
    --glass-glow: 0 0 40px rgba(212, 177, 74, 0.25);

    /* 8-Point Grid Spacing System */
    --space-xs: 8px;     /* 8px */
    --space-sm: 16px;    /* 16px */
    --space-md: 24px;    /* 24px */
    --space-lg: 32px;    /* 32px */
    --space-xl: 64px;    /* 64px */
    --space-xxl: 128px;  /* 128px */
    --space-xxxl: 256px; /* 256px */

    /* CONTRAST GUIDELINE (WCAG Reference)
       - 21:1 High Contrast (Black/White absolute legibility)
       - 4.5:1 to 3:1 Passable Contrast (Normal / Large text minimums)
       - Avoid 2.9:1 or lower to prevent legibility issues. */
}

/* ===================== Layout helpers ===================== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===================== Buttons ===================== */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    padding: var(--space-sm) var(--space-md);
    border-radius: 999px;
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    letter-spacing: .2px;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(90, 138, 42, 0.35);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(90, 138, 42, 0.45);
}

.btn-outline {
    border-color: var(--gold);
    color: var(--green-text);
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

/* ===================== HEADER ===================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: var(--space-xs) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
}

/* Pill nav container — bevel glass */
.main-nav {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    padding: var(--space-xs) var(--space-xs);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.07),
        inset 1px 0 0 rgba(255, 255, 255, 0.55),
        inset -1px 0 0 rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(60, 90, 30, 0.14),
        0 1px 4px rgba(0, 0, 0, 0.08);
}

.main-nav ul {
    display: flex;
    gap: 2px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3a;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green-primary);
    background: rgba(255, 255, 255, 0.65);
}

.main-nav a.active::after {
    display: none;
}

.lang-toggle {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(90, 138, 42, 0.15);
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(90, 138, 42, 0.12);
    transition: transform .2s ease, background .2s ease, color .2s ease;
    z-index: 105;
}
.lang-toggle:hover {
    transform: translateY(-1px);
    background: var(--green-primary);
    color: #ffffff;
}


/* ===================== HERO — Base styles (all pages) ===================== */
.hero {
    position: relative;
    padding-top: calc(var(--space-xl) + var(--space-lg));
    padding-bottom: 0;
    overflow: visible;
    isolation: isolate;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    display: block;
    filter: brightness(0.7);
}

.hero-content {
    text-align: center;
    padding-top: var(--space-xs);
    padding-bottom: var(--space-sm);
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.hero-pre {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-style: italic;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.813rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg,
        #FFF2B2 0%,
        #FDE08B 15%,
        #E8A92A 40%,
        #D8951D 65%,
        #A66B12 85%,
        #593605 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0px 8px 16px rgba(25, 15, 3, 0.7));
}

.hero-subtitle {
    font-size: clamp(2rem, 4vw, 3.063rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    letter-spacing: -.25px;
    background: linear-gradient(135deg,
        #FFF2B2 0%,
        #FDE08B 15%,
        #E8A92A 40%,
        #D8951D 65%,
        #A66B12 85%,
        #593605 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0px 4px 10px rgba(25, 15, 3, 0.7));
}

.hero-desc {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    max-width: 540px;
    margin: var(--space-md) auto var(--space-sm);
    line-height: 1.6;
    display: inline-block;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: var(--space-xs) var(--space-md);
    box-shadow:
        0 8px 24px rgba(60, 90, 30, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Decorative floating elements */
.deco {
    position: absolute;
    z-index: 1;
}

.deco-1 { top: 65px;  left: 8%;  width: 45px; height: 45px; transform: rotate(-15deg); }
.deco-2 { top: 100px; right: 10%; width: 40px; height: 40px; }
.deco-3 { top: 160px; left: 6%;  width: 38px; height: 38px; }
.deco-4 { top: 140px; right: 8%;  width: 35px; height: 35px; }

/* ===================== HERO — Parallax overrides (index.html only) ===================== */
.page-home .hero,
.page-productos .hero,
.page-nosotros .hero,
.page-contacto .hero {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 100vh;
    overflow: hidden;
    background-attachment: fixed;
}

.page-home .hero-img,
.page-productos .hero-img,
.page-nosotros .hero-img,
.page-contacto .hero-img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.page-home .hero::before,
.page-productos .hero::before,
.page-nosotros .hero::before,
.page-contacto .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../Web Page/images/Hero_Image.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

/* ===================== SCROLL LAYER 2 ===================== */
/* Solo index.html es sticky para que el slider de imágenes pase por encima */
.page-home .scroll-layer-2 {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Las páginas secundarias solo son relativas para pasar sobre el hero pero empujar el footer */
.page-productos .scroll-layer-2,
.page-nosotros .scroll-layer-2,
.page-contacto .scroll-layer-2 {
    position: relative;
    z-index: 10;
}

/* Para evitar que el texto transparente se sobreponga al hero */
.page-productos .scroll-layer-2,
.page-nosotros .scroll-layer-2,
.page-contacto .scroll-layer-2 {
    background: #f7f8f3;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 40px rgba(60, 90, 30, 0.12), 0 -2px 0 rgba(255,255,255,0.6);
    padding-top: 20px;
}

/* ===================== CATEGORIES ===================== */
.categories {
    position: relative;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
}

/* Home page only: elevated card panel sliding over hero */
.page-home .categories {
    margin-top: 0;
    background: #f7f8f3;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 40px rgba(60, 90, 30, 0.12), 0 -2px 0 rgba(255,255,255,0.6);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: var(--space-sm) var(--space-sm) var(--space-lg);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.page-home .categories .glass-panel,
.page-productos .categories .glass-panel {
    background: linear-gradient(rgba(247, 248, 243, 0.50), rgba(247, 248, 243, 0.50)), url('../Web Page/images/Saco_de_yute_texture.webp') center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===================== 3D CATEGORY CAROUSEL ===================== */
.cat-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 30px 0 20px;
    perspective: 1100px;
}

.cat-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 340px;
    position: relative;
}

/* Individual card */
.cat-card {
    position: absolute;
    width: 190px;
    background: rgba(255, 255, 255, 0.28); /* Premium translucent glassmorphic base */
    border: 1px solid rgba(255, 255, 255, 0.55); /* Outer glass border */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        inset 1px 1px 0px rgba(255, 255, 255, 0.8), /* Top-left bevel highlight */
        inset -1px -1px 0px rgba(0, 0, 0, 0.12), /* Bottom-right bevel shadow shadow */
        0 8px 32px rgba(60, 90, 30, 0.13); /* Soft outer shadow */
    backdrop-filter: blur(20px) saturate(160%); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    cursor: pointer;
    transition: transform 0.55s cubic-bezier(0.34, 1.26, 0.64, 1),
                opacity 0.45s ease,
                box-shadow 0.45s ease,
                background-color 0.35s ease,
                border-color 0.35s ease;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    color: inherit;
    user-select: none;
}

/* Glass shine & glow on hover */
.cat-card:hover {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        inset 1.5px 1.5px 0px rgba(255, 255, 255, 0.85),
        inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.15),
        0 12px 36px rgba(60, 90, 30, 0.18),
        0 0 15px rgba(255, 255, 255, 0.25);
}

/* Card image area */
.cat-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212,177,74,0.18) 0%, rgba(90,138,42,0.13) 100%);
    flex-shrink: 0;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cat-card.is-active .cat-card-img img {
    transform: scale(1.04);
}

/* Card body */
.cat-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.28); /* Frosted body */
    border-top: 1px solid rgba(255, 255, 255, 0.45); /* Glass bevel separator */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.35s ease;
}

.cat-card:hover .cat-card-body,
.cat-card.is-active .cat-card-body {
    background: rgba(255, 255, 255, 0.45); /* Brighter glass on hover/active */
}

.cat-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.2;
    margin: 0;
}

.cat-card-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.cat-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-top: 4px;
    transition: color 0.2s;
}

.cat-card:hover .cat-card-link {
    color: var(--green-dark);
}

/* Position states */
.cat-card.is-active {
    transform: translateX(0) scale(1.12) rotateY(0deg);
    z-index: 10;
    opacity: 1;
    background: rgba(255, 255, 255, 0.48); /* Premium active frosted highlight */
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 2px 2px 0px rgba(255, 255, 255, 0.9), /* High-reflection active bevel */
        inset -2px -2px 0px rgba(0, 0, 0, 0.12),
        0 20px 60px rgba(60, 90, 30, 0.22),
        0 4px 12px rgba(212, 177, 74, 0.18),
        0 0 25px rgba(255, 255, 255, 0.35); /* Premium glass glow */
}

.cat-card.is-prev {
    transform: translateX(-145px) scale(0.88) rotateY(12deg);
    z-index: 5;
    opacity: 0.72;
}

.cat-card.is-next {
    transform: translateX(145px) scale(0.88) rotateY(-12deg);
    z-index: 5;
    opacity: 0.72;
}

.cat-card.is-far-prev {
    transform: translateX(-270px) scale(0.72) rotateY(22deg);
    z-index: 1;
    opacity: 0.38;
    pointer-events: none;
}

.cat-card.is-far-next {
    transform: translateX(270px) scale(0.72) rotateY(-22deg);
    z-index: 1;
    opacity: 0.38;
    pointer-events: none;
}

.cat-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.6);
    z-index: 0;
}

/* Arrows */
.cat-arrow {
    position: relative;
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(90, 138, 42, 0.25);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
    color: var(--green-dark);
    box-shadow: 0 4px 14px rgba(60, 90, 30, 0.12);
}

.cat-arrow svg {
    width: 20px;
    height: 20px;
}

.cat-arrow:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #fff;
    transform: scale(1.08);
}

/* Dots */
.cat-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding-bottom: 4px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(90, 138, 42, 0.22);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
}

.cat-dot.active {
    background: var(--green-primary);
    transform: scale(1.35);
}

.categories-footer-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(16px, 2.2vw, 25px);
    font-weight: 700;
    color: var(--green-text);
    margin-top: var(--space-sm);
    letter-spacing: -0.25px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}

/* Ensure footer-category heading and icons sit above decorative pseudo-elements */
.categories-footer-title,
.quality-grid {
    position: relative;
    z-index: 3;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.063rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.0175em;
    margin-bottom: var(--space-xs);
    font-family: 'Inter', sans-serif;
}

h3.section-title,
h4.section-title {
    font-size: 1.75rem;
    color: var(--green-dark);
    margin-bottom: var(--space-md);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xs);
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 11px;
    padding: var(--space-xs) var(--space-xs) var(--space-xs);
    text-align: center;
    box-shadow:
        0 4px 24px rgba(90, 138, 42, 0.12),
        var(--glass-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(212, 177, 74, 0.3), transparent 40%, rgba(90, 138, 42, 0.15));
    border-radius: 24px;
    z-index: -1;
    opacity: .6;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1.15;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
    padding: 0 var(--space-xs);
}

.card-image {
    width: 85%;
    aspect-ratio: 1 / 1;
    margin: var(--space-xs) auto;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-sub {
    font-size: 0.75rem;
    color: #4a4a4a;
    font-weight: 500;
    padding-top: var(--space-xs);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.small-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: var(--space-xs);
    font-family: 'Inter', sans-serif;
}

/* ===================== QUALITY ICONS (Relocated below H3) ===================== */
.quality-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quality-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.quality-icon {
    color: var(--green-primary);
    width: 38px;
    height: 38px;
}

.quality-icon svg {
    width: 100%;
    height: 100%;
}

.quality-label {
    font-size: 14px;
    color: #3a3a3a;
    font-weight: 500;
}

/* ===================== FOOTER ===================== */
.site-footer {
    position: relative;
    z-index: 10;
    background: #fff;
    padding: var(--space-md) 0;
    border-top: 1px solid #e8eee0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-md);
    align-items: start;
    padding-bottom: var(--space-xs);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 0;
}

.footer-logo .logo-icon {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--green-text);
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: var(--space-xs);
}

.footer-col p {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: var(--space-xs);
}

.footer-col-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.socials {
    display: flex;
    gap: var(--space-xs);
}

.socials a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-text);
    transition: color .2s ease, transform .2s ease;
}

.socials a:hover {
    color: var(--green-primary);
    transform: translateY(-2px);
}

.socials svg {
    width: 20px;
    height: 20px;
}

.social-filled {
    color: var(--green-text);
}

.footer-bottom {
    border-top: 1px solid #e8eee0;
    margin-top: 8px;
    padding-top: 8px;
    padding-bottom: 0px;
    font-size: 13px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-copy {
    font-size: 13px;
    color: #6a6a6a;
}

.footer-copy p { 
    margin: 0; 
    font-size: 13px;
}

/* --- Marketing 664 Logo Animation --- */
.dev-link-3d {
    perspective: 400px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dev-link-3d:hover {
    color: var(--green-primary) !important;
}

.logo-spinning-3d {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transform-style: preserve-3d;
    backface-visibility: visible;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dev-link-3d:hover .logo-spinning-3d {
    transform: rotateY(360deg);
}

/* ===================== ABOUT & VALUES SECTIONS ===================== */
.about-section,
.values-section {
    padding: var(--space-lg) 0;
}

.about-section .glass-panel {
    max-width: 800px;
}

.about-text {
    padding: var(--space-sm) 0;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: var(--space-sm);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.value-card {
    padding: var(--space-sm) var(--space-sm);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.value-card .card-title {
    font-size: 14px;
    min-height: auto;
    margin-bottom: var(--space-xs);
}

.value-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a4a;
    flex-grow: 1;
}

.footer {
    background: #fff;
    padding: var(--space-lg) 0;
    border-top: 1px solid #e8eee0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #6a6a6a;
    margin-bottom: var(--space-xs);
}

.footer a {
    color: var(--green-primary);
    text-decoration: underline;
    transition: color .2s ease;
}

.footer a:hover {
    color: var(--green-text);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* -------- Tablet landscape (keep 4 cols, only collapse nav) -------- */
@media (max-width: 1024px) {
    .main-nav ul { gap: 22px; }
    .main-nav a { font-size: 14px; }
    .deco { display: none; }
}

/* -------- Tablet portrait -------- */
@media (max-width: 820px) {
    .main-nav {
        max-width: calc(100vw - 40px);
        overflow-x: auto;
        scrollbar-width: none;
    }
    .main-nav::-webkit-scrollbar { display: none; }

    .main-nav a { font-size: 13px; padding: 6px 12px; }

    .hero-title  { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.5rem; }
    h3.section-title,
    h4.section-title { font-size: 1.35rem; }
    .section-title { font-size: 1.5rem; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        text-align: left;
    }
}

/* -------- Mobile -------- */
@media (max-width: 600px) {
    .container { padding: 0 18px; }

    .logo-text { font-size: 15px; }
    .logo-icon { width: 30px; height: 30px; }

    .main-nav ul { gap: 10px 14px; }
    .main-nav a { font-size: 13px; }

    .btn-outline { padding: 8px 16px; font-size: 13px; }

    .hero { padding-top: var(--space-xl); }
    .hero-pre { font-size: 11px; }
    .hero-title { font-size: 2rem; margin-bottom: var(--space-xs); }
    .hero-subtitle { font-size: 1.25rem; margin-bottom: var(--space-xs); }
    h3.section-title,
    h4.section-title { font-size: 1.2rem; margin-bottom: var(--space-sm); }
    .section-title { font-size: 1.25rem; margin-bottom: var(--space-xs); }
    .hero-desc { 
        font-size: 0.875rem; 
        line-height: 1.5; 
        border-radius: 16px; 
        padding: var(--space-xs) var(--space-sm); 
        max-width: calc(100% - 16px);
    }
    .btn-primary { padding: 8px 18px; font-size: 13px; }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .card-title { font-size: 12px; min-height: auto; }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .value-card {
        min-height: auto;
        padding: var(--space-sm) var(--space-xs);
    }

    .value-card .card-title {
        font-size: 13px;
    }

    .value-card p {
        font-size: 12px;
    }

    .quality-grid { gap: 28px 34px; }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo { justify-content: center; }
    .socials { justify-content: center; }
    .footer-copy { text-align: center; }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: var(--space-xs);
    }
}

/* ==========================================================================
   TIMELINE STYLES
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-xs);
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--green-light), var(--green-primary), var(--gold));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.var(--space-xs);
    border-radius: 999px;
    opacity: 0.5;
}

.timeline-item {
    padding: var(--space-xs) var(--space-lg);
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    background-color: var(--white);
    border: 3.5px solid var(--gold);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(212, 177, 74, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover::after {
    background-color: var(--green-primary);
    transform: scale(1.3);
    box-shadow: 0 0 14px rgba(90, 138, 42, 0.8);
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -9px;
}

.timeline-content {
    padding: var(--space-md) var(--space-lg);
    background: rgba(45, 48, 40, 0.18); /* Darker premium smoky grey charcoal glass filter */
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    border: 1px solid rgba(255, 255, 255, 0.6); /* White beveled edge highlight */
    position: relative;
    border-radius: 18px;
    box-shadow: 
        inset 1px 1px 0px rgba(255, 255, 255, 0.75), /* Inner light reflection */
        inset -1px -1px 0px rgba(0, 0, 0, 0.08), /* Subtle shadow */
        0 10px 32px rgba(35, 45, 20, 0.07); /* Clean outer shadow */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                background-color 0.4s ease, 
                border-color 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(45, 48, 40, 0.28); /* Darker enhanced smoky depth on hover */
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 
        inset 1.5px 1.5px 0px rgba(255, 255, 255, 0.9),
        inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(35, 45, 20, 0.14),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.timeline-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px; /* Slightly larger for luxury appeal */
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6); /* Text pop */
}

.timeline-title {
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.timeline-desc {
    font-size: 13.5px;
    color: var(--text); /* Slightly darker (#2a2a2a instead of #5a5a5a) for much better contrast and premium legibility on smoky glass */
    line-height: 1.65;
}

.timeline-media-opposite {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    pointer-events: none; /* Allows hover through container */
}

.timeline-media-opposite img,
.timeline-media-opposite a {
    pointer-events: auto; /* Re-enable hover for image */
}

.timeline-item.right .timeline-media-opposite {
    left: auto;
    right: 100%;
    justify-content: flex-end;
}

.timeline-media-opposite img {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    background: var(--glass-bg-strong);
    padding: var(--space-xs);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.timeline-media-opposite img:hover {
    transform: scale(1.06) rotate(1deg);
    box-shadow: 0 12px 36px rgba(60, 90, 30, 0.22);
}

/* Responsividad de la línea de tiempo */
@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: var(--space-xl);
        padding-right: var(--space-xs);
        text-align: left;
    }
    .timeline-item::after {
        left: 22px;
        right: auto;
    }
    .right {
        left: 0%;
    }
    .timeline-media-opposite {
        position: static;
        transform: none;
        width: 100%;
        padding: var(--space-sm) 0 0 0;
        justify-content: flex-start;
    }
    .timeline-media-opposite img {
        max-height: 180px;
        width: auto;
        max-width: 100%;
    }
}

/* ==========================================================================
   MICRO-ANIMATIONS & INTERACTION POLISH
   ========================================================================== */
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 28px rgba(90, 138, 42, 0.2),
        0 0 50px rgba(212, 177, 74, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-card:hover .card-image img {
    transform: scale(1.08);
}

.card-image img {
    transition: transform 0.4s ease;
}

.main-nav a {
    position: relative;
    overflow: hidden;
}

/* Dynamic scroll-fade transition class */
.fade-in-section {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   GLASSMORPHIC FORM STYLES
   ========================================================================== */
.contact-form-group {
    margin-bottom: var(--space-sm);
}

.contact-form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green-text);
    margin-bottom: var(--space-xs);
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--black);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 120px;
    border-radius: 12px;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--green-primary);
    box-shadow: 
        0 0 0 3px rgba(90, 138, 42, 0.15),
        var(--glass-glow);
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: rgba(42, 42, 42, 0.55);
}





/* ==========================================================================
   LOGO DE CABECERA Y MENÚ HAMBURGUESA MÓVIL
   ========================================================================== */
.logo-link {
    position: absolute;
    top: 0.65rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 105;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-link:hover .site-logo {
    filter: drop-shadow(0 4px 12px rgba(90, 138, 42, 0.2));
}

/* Fallback GSAP 3D Shatter Pieces */
.logo-shatter-container {
    pointer-events: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.shatter-piece {
    pointer-events: none;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.mobile-nav-toggle {
    display: none;
}

/* Responsividad de Cabecera y Menú Hamburgesa */
@media (max-width: 768px) {
    .site-header {
        position: fixed;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: var(--space-xs) 0;
        height: 64px;
        display: flex;
        align-items: center;
    }
    
    .logo-link {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logo-link:hover {
        transform: translateY(-50%) scale(1.03);
    }
    
    .site-logo {
        height: 38px;
    }
    
    .lang-toggle {
        top: 50% !important;
        right: 4.5rem !important;
        transform: translateY(-50%) !important;
        padding: var(--space-xs) var(--space-sm) !important;
        font-size: 12px !important;
    }
    
    .lang-toggle:hover {
        transform: translateY(-53%) scale(1.03) !important;
    }

    /* Hamburger Button */
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 110;
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger-bar {
        width: 100%;
        height: 2.5px;
        background-color: var(--green-text);
        border-radius: 99px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Hover micro-animation for hamburger */
    .mobile-nav-toggle:hover .hamburger-bar {
        background-color: var(--green-primary);
    }
    
    /* Hamburger to X transitions */
    .mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Transform main nav pill to premium slide drawer */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(25px) saturate(150%);
        -webkit-backdrop-filter: blur(25px) saturate(150%);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 35px rgba(60, 90, 30, 0.15);
        padding: var(--space-xl) var(--space-md) var(--space-lg) var(--space-md);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
        border-radius: 0;
        border: none;
        box-sizing: border-box;
    }
    
    .main-nav.nav-open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        font-size: 16px;
        font-weight: 600;
        color: var(--green-text);
        padding: var(--space-xs) var(--space-sm);
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        transition: background-color 0.25s ease, color 0.25s ease;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(90, 138, 42, 0.08);
        color: var(--green-primary);
    }

    /* Add space to the top of pages to compensate for fixed header */
    .hero {
        padding-top: var(--space-xl) !important;
    }
}

/* ===================== LOGO CAROUSEL ===================== */
.trusted-by {
    position: relative;
    z-index: 20; /* Slide over the sticky scroll-layer-2 categories */
    padding: var(--space-lg) 0;
    text-align: center;
    background: #f7f8f3;
    overflow: hidden;
}

.trusted-by .section-title {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    color: var(--black);
}

.carousel-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: var(--space-sm) 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    animation: scroll-left 25s linear infinite;
    width: max-content;
}

.carousel-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.carousel-track img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}

@media (max-width: 768px) {
    .carousel-track img {
        height: 45px;
    }
    .carousel-track {
        gap: 2.5rem;
    }
    @keyframes scroll-left {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 1.25rem)); }
    }
}

/* ===================== IMAGE SLIDER ===================== */
/* Layer 3 — slides OVER the sticky scroll-layer-2 (categories + trusted-by) */
.image-slider-section {
    width: 100%;
    position: relative;
    z-index: 20;
    overflow: hidden;
    background: #000;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.35);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    max-height: 1000px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Prioritize the upper part of the image */
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.slide-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots .dot.active {
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .slider-container {
        height: 50vh;
    }
    .slide-content h2 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
}

/* ===================== VALUE CARDS OVERRIDES (nosotros.html) ===================== */
.value-card.glass-card {
    background: rgba(45, 48, 40, 0.18) !important; /* Premium smoky grey charcoal glass filter */
    backdrop-filter: blur(24px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(135%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important; /* White beveled edge highlight */
    border-radius: 18px !important;
    box-shadow: 
        inset 1px 1px 0px rgba(255, 255, 255, 0.75), /* Inner light reflection */
        inset -1px -1px 0px rgba(0, 0, 0, 0.08), /* Subtle shadow */
        0 10px 32px rgba(35, 45, 20, 0.07) !important; /* Clean outer shadow */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                background-color 0.4s ease, 
                border-color 0.4s ease;
}

.value-card.glass-card:hover {
    transform: translateY(-5px) !important;
    background: rgba(45, 48, 40, 0.28) !important; /* Darker enhanced smoky depth on hover */
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 
        inset 1.5px 1.5px 0px rgba(255, 255, 255, 0.9),
        inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(35, 45, 20, 0.14) !important,
        0 0 20px rgba(255, 255, 255, 0.2) !important;
}

.value-card.glass-card .card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: var(--space-xs);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.value-card.glass-card p {
    font-size: 13.5px;
    color: var(--text); /* Better legibility */
    line-height: 1.65;
    text-align: center;
}

/* ===================== ABOUT CONTENT OVERRIDES (nosotros.html) ===================== */
.about-content {
    background: rgba(45, 48, 40, 0.18); /* Premium smoky grey charcoal glass filter */
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    border: 1px solid rgba(255, 255, 255, 0.6); /* White beveled edge highlight */
    border-radius: 18px;
    padding: var(--space-md) var(--space-md);
    box-shadow: 
        inset 1px 1px 0px rgba(255, 255, 255, 0.75), /* Inner light reflection */
        inset -1px -1px 0px rgba(0, 0, 0, 0.08), /* Subtle shadow */
        0 10px 32px rgba(35, 45, 20, 0.07); /* Clean outer shadow */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                background-color 0.4s ease;
}

.about-content:hover {
    transform: translateY(-3px);
    background: rgba(45, 48, 40, 0.28); /* Darker enhanced smoky depth on hover */
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 
        inset 1.5px 1.5px 0px rgba(255, 255, 255, 0.9),
        inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.12),
        0 14px 36px rgba(35, 45, 20, 0.12),
        0 0 20px rgba(255, 255, 255, 0.15);
}

.about-content p {
    font-size: 14.5px;
    color: var(--text) !important; /* Darker charcoal for premium contrast */
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ===================== ABOUT SECTION & PANEL OVERRIDES (nosotros.html) ===================== */
.about-section .glass-panel {
    background: rgba(45, 48, 40, 0.18) !important; /* Premium smoky grey charcoal glass filter */
    backdrop-filter: blur(24px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(135%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important; /* White beveled edge highlight */
    border-radius: 18px !important;
    box-shadow: 
        inset 1px 1px 0px rgba(255, 255, 255, 0.75), /* Inner light reflection */
        inset -1px -1px 0px rgba(0, 0, 0, 0.08), /* Subtle shadow */
        0 10px 32px rgba(35, 45, 20, 0.07) !important; /* Clean outer shadow */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                background-color 0.4s ease;
}

.about-section .glass-panel:hover {
    transform: translateY(-3px) !important;
    background: rgba(45, 48, 40, 0.28) !important; /* Darker enhanced smoky depth on hover */
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 
        inset 1.5px 1.5px 0px rgba(255, 255, 255, 0.9),
        inset -1.5px -1.5px 0px rgba(0, 0, 0, 0.12),
        0 14px 36px rgba(35, 45, 20, 0.12) !important,
        0 0 20px rgba(255, 255, 255, 0.15) !important;
}

.about-section .section-title {
    color: var(--green-dark) !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    font-weight: 800;
}

/* Remove separate styling from about-content to prevent double-layering */
.about-content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.about-content:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Page background for Nosotros page override */
.page-nosotros .scroll-layer-2 {
    background: #ffffff !important;
}



