/* Font Face Declarations */
@font-face {
    font-family: 'Montserrat-Bold';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-ExtraBold';
    src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url('fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans-Regular';
    src: url('fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lato-Regular';
    src: url('fonts/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Blueberry-Regular';
    src: url('fonts/Blueberry-Regular.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* CSS Variables - Color Palette */
:root {
    --verde-principal: #1E7F4F;
    --verde-fuerte: #1E7F4F;
    --verde-medio: #3FAE6A;
    --verde-claro: #8ED1A6;
    --verde-oscuro: #145A3A;
    --beige-fondo: #F4F1EC;
    --gris-texto: #555555;
    --blanco: #FFFFFF;
    --naranja-acento: #E67E22; /* Naranja para acentos y botones de compra */
    --rojo-advertencia: #C0392B; /* Rojo para alertas o eliminaciones */
    --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 20px 40px rgba(0, 0, 0, 0.15);
    --sombra-fuerte: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'OpenSans-Regular', sans-serif;
    line-height: 1.6;
    color: var(--gris-texto);
    background: linear-gradient(120deg, #184f36 0%, #1f7a57 42%, #1a6b4d 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    opacity: 0.35;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.18), transparent 16%),
        radial-gradient(circle at 82% 20%, rgba(255,255,255,0.10), transparent 14%),
        radial-gradient(circle at 50% 70%, rgba(255,255,255,0.08), transparent 12%),
        repeating-radial-gradient(circle at 95% 90%, rgba(255,255,255,0.08) 0 2px, transparent 2px 30px),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 38px);
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}

.title-sub {
    font-family: 'Montserrat-SemiBold', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat-Bold', sans-serif;
    color: var(--verde-oscuro);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--verde-claro);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-img {
    width: 44px;
    height: auto;
    display: block;
}

.logo h2,
    .logo-subtext {
    color: var(--verde-fuerte);
    font-family: 'Montserrat-Bold', 'Montserrat-ExtraBold', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--verde-oscuro);
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--verde-medio);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-medio);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--verde-oscuro);
    margin: 3px 0;
    transition: 0.3s;
}

/* Professional Hero Section Design */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 127, 79, 0.3) 0%, rgba(46, 139, 87, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    transform-style: preserve-3d;
    min-height: 85vh;
}
.hero-index {
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px;
    text-align: center;
    color: white;
    background:
        linear-gradient(120deg, rgba(24,79,54,0.92) 0%, rgba(31,122,87,0.86) 42%, rgba(26,107,77,0.94) 100%),
        url('images/bann.png') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.18);
    min-height: 60vh;
    display: flex;
    align-items: center;
    transition: padding 0.28s ease, background-position 0.28s ease, box-shadow 0.28s ease;
}

.hero-index .hero-inner {
    max-width: none;
    width: 100%;
    padding-right: 0;
    margin-right: 0;
}

.hero-index .hero-image {
    justify-content: flex-end;
}

/* Mejoras específicas para hero-index: legibilidad y rendimiento en móviles */
@media (max-width: 900px) {
    .hero-index {
        padding: 64px 0 32px;
        min-height: 50vh;
        background-position: center top;
    }

    .hero-index::before {
        background-position: center top;
        opacity: 0.95;
        filter: blur(1px) saturate(0.95);
    }

    .hero-index h1 {
        font-size: 2.4rem;
        line-height: 1.08;
        margin-bottom: 0.8rem;
        text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    }

    .hero-index .hero-description {
        font-size: 1rem;
        max-width: 92%;
        margin-bottom: 1rem;
    }
}

/* Promo Offer Section Styles */
.promo-offer {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.promo-container {
    background: rgba(15, 61, 42, 0.7); /* Fondo verde oscuro con transparencia */
    backdrop-filter: blur(12px); /* Efecto de cristal esmerilado */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    border-radius: 40px;
    padding: 60px 40px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.promo-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--verde-claro), var(--naranja-acento), var(--verde-principal), var(--verde-claro));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 42px;
    opacity: 0.5;
    animation: borderGlow 8s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.promo-badge {
    display: inline-block;
    background: var(--naranja-acento);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-offer h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.promo-info h3 {
    color: var(--verde-claro);
    margin-bottom: 20px;
}

.promo-list {
    list-style: none;
    text-align: left;
    max-width: 650px;
    margin: 30px auto;
    display: grid;
    gap: 15px;
}

.promo-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-list li::before {
    content: '✓';
    color: var(--verde-claro);
    font-weight: bold;
    font-size: 1.4rem;
}

.promo-highlight {
    color: var(--verde-claro);
    font-size: 1.4rem;
    margin: 40px 0;
    font-family: 'Montserrat-SemiBold', sans-serif;
}

@media (max-width: 600px) {
    .hero-index {
        padding: 44px 0 22px;
        min-height: 45vh;
        box-shadow: none;
    }

    /* Simplificar overlays/decors para mejorar rendimiento */
    .hero-index::after,
    .hero-index .hero-image::before {
        display: none !important;
    }

    .hero-index h1 {
        font-size: 1.8rem;
        padding: 0 12px;
        letter-spacing: normal;
    }

    .hero-index .hero-description {
        font-size: 0.95rem;
        padding: 0 14px;
        margin-bottom: 0.8rem;
    }

    .hero-inner {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 12px;
    }

    .hero-image img {
        width: 72%;
        max-width: 260px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .hero-buttons .btn {
        min-width: 140px;
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    .hero-index {
        padding: 36px 0 18px;
        min-height: auto;
    }

    .hero-index h1 {
        font-size: 1.5rem;
        line-height: 1.12;
    }

    .hero-index .hero-description {
        font-size: 0.9rem;
    }

    .hero-image img {
        width: 78%;
        max-width: 220px;
    }
}

.hero-index::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/bann.png') center/cover no-repeat;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    filter: saturate(0.98) contrast(0.98);
    transition: opacity 0.28s ease, filter 0.28s ease;
}
.hero-index .hero-text,
.hero-index h1,
.hero-index .hero-description,
.hero-index .hero-buttons .btn {
    color: #ffffff !important;
}
.hero-index .hero-text {
    text-align: center;
    align-items: center;
}
.hero-index h1 {
    font-size: 4.5rem;
    line-height: 1.03;
    margin-bottom: 1.2rem;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 2px rgba(255, 255, 255, 0.15);
}
.hero-index .hero-description {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 620px;
    text-align: center;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
    margin: 0 auto 1.75rem;
}
.hero-productos {
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
    text-align: center;
    color: white;
    background:
        linear-gradient(120deg, rgba(24,79,54,0.78) 0%, rgba(31,122,87,0.65) 42%, rgba(26,107,77,0.82) 100%),
        url('images/banner-producto.png') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.18);
}

.hero-productos::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('images/banner-producto.png') center/cover no-repeat,
        linear-gradient(45deg, rgba(255,255,255,0.10), transparent 24%, rgba(255,255,255,0.10) 32%, transparent 56%),
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.18), transparent 16%),
        radial-gradient(circle at 82% 20%, rgba(255,255,255,0.10), transparent 14%),
        radial-gradient(circle at 50% 70%, rgba(255,255,255,0.08), transparent 12%),
        repeating-radial-gradient(circle at 95% 90%, rgba(255,255,255,0.08) 0 2px, transparent 2px 30px),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 38px);
    background-size: cover, 30% 30%, 100% 100%, 100% 100%, 100% 100%, 160px 160px, 80px 80px;
    opacity: 0.78;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
    animation: floatBubbles 20s ease-in-out infinite alternate;
}

.hero-productos::after {
    content: '';
    position: absolute;
    top: 12%;
    right: -8rem;
    width: 34rem;
    height: 20rem;
    border-radius: 50% 45% 42% 52% / 58% 50% 48% 46%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.18), transparent 48%);
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
    animation: driftGlow 28s ease-in-out infinite;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-image {
    flex: 1 1 420px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22rem;
    height: 22rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 54%);
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

.hero-productos h1 {
    font-family: 'Montserrat-ExtraBold', sans-serif;
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.35), 2px 2px 10px rgba(0,0,0,0.35);
    -webkit-text-stroke: 0.02em rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.hero-productos p {
    font-size: 1.3rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 1px rgba(0,0,0,0.55), 1px 1px 6px rgba(0,0,0,0.22);
    max-width: 600px;
    margin: 0 auto 1.75rem;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.hero-image video {
    width: 100%;
    max-width: 320px; /* Reducido para un aspecto más pequeño y elegante */
    height: 560px;    /* Ajustado proporcionalmente */
    object-fit: cover;
    border-radius: 80px; /* Esquinas mucho más redondeadas */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
@keyframes floatBubbles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-18px); }
}

@keyframes driftGlow {
    0% { transform: translateX(0) rotate(12deg); opacity: 0.95; }
    50% { transform: translateX(10px) rotate(15deg); opacity: 0.88; }
    100% { transform: translateX(0) rotate(12deg); opacity: 0.95; }
}

.hero-text {
    color: white;
    transform: translateZ(50px);
    transform-style: preserve-3d;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.hero-title {
    margin-bottom: 2rem;
    transform-style: preserve-3d;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-family: 'Montserrat-ExtraBold', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    transform: translateZ(30px);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: 2.8rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s both;
    transform: translateZ(20px);
    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 550px;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: 'OpenSans-Regular', sans-serif;
}

.hero-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.feature-icon {
    color: var(--verde-claro);
    margin-right: 0.5rem;
    font-weight: bold;
}

.hero-highlights {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 600px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.highlight-icon {
    color: var(--verde-claro);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.highlight-item span:last-child {
    color: white;
    font-size: 0.95rem;
    font-family: 'OpenSans-Regular', sans-serif;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    min-width: 180px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.hero-visual {
    transform: translateZ(30px);
    transform-style: preserve-3d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem 0;
}

.hero-card-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--sombra-fuerte);
    transform: rotateX(0deg) rotateY(0deg);
    transition: all 0.4s ease;
    background: white;
}

.hero-image-card:hover {
    transform: rotateX(2deg) rotateY(-2deg) translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.hero-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem;
    color: white;
    border-radius: 0 0 25px 25px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hero-image-card:hover .hero-card-overlay {
    transform: translateY(-5px);
}

.hero-image-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.hero-card-overlay h4 {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-card-overlay p {
    font-family: 'OpenSans-Regular', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 1.8rem;
    font-family: 'Montserrat-Bold', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-family: 'OpenSans-Regular', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 3;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-indicator span {
    font-size: 0.9rem;
    font-family: 'OpenSans-Regular', sans-serif;
    margin-bottom: 0.5rem;
    display: block;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin-top: 0.5rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 20px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
        min-height: 300px;
    }
    
    .hero-card-container {
        max-width: 400px;
    }
    
    .hero-image-card img {
        height: 250px;
    }
    
    .hero-card-overlay {
        padding: 1.5rem;
    }
    
    .hero-card-overlay h4 {
        font-size: 1.2rem;
    }
    
    .hero-card-overlay p {
        font-size: 0.9rem;
    }

    .hero-badge,
    .hero-features,
    .hero-buttons {
        justify-content: center;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-stats {
        max-width: 400px;
        margin: 0 auto;
        padding: 1.2rem 1.5rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
    
    .hero-highlights {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 0.6rem 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .highlight-grid {
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        padding: 1rem 1.2rem;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-visual {
        min-height: 250px;
    }
    
    .hero-card-container {
        max-width: 320px;
    }
    
    .hero-image-card img {
        height: 200px;
    }
    
    .hero-card-overlay {
        padding: 1rem;
    }
    
    .hero-card-overlay h4 {
        font-size: 1.1rem;
    }
    
    .hero-card-overlay p {
        font-size: 0.85rem;
    }
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    min-width: 160px;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--verde-fuerte) 0%, var(--verde-medio) 100%);
    color: white;
    box-shadow: var(--sombra-media);
}

.btn-primary:hover {
    box-shadow: var(--sombra-fuerte);
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-fuerte) 100%);
}

.btn-red {
    background: linear-gradient(135deg, #1e7f4f 0%, #3fae6a 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--sombra-media);
}

.btn-red:hover {
    box-shadow: var(--sombra-fuerte);
    background: linear-gradient(135deg, #145a3a 0%, #1e7f4f 100%);
}

/* Button Variations */
.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    min-width: 180px;
}

.btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-width: 140px;
}


.btn-ghost {
    background: transparent;
    color: var(--verde-fuerte);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: rgba(30, 127, 79, 0.1);
    border-color: var(--verde-fuerte);
}

/* Button with icon variations */
.btn-icon-left .btn-icon {
    order: -1;
}

.btn-icon-left:hover .btn-icon {
    transform: translateX(-3px);
}

/* Loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Unified Hero Button Styling */
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--verde-fuerte) 0%, var(--verde-medio) 100%);
    box-shadow: 0 15px 35px rgba(30, 127, 79, 0.4);
    font-weight: 700;
    letter-spacing: 0.8px;
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-fuerte) 100%);
    box-shadow: 0 20px 45px rgba(30, 127, 79, 0.5);
    transform: translateY(-3px) scale(1.02);
}

/* Button pulse effect for primary buttons */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Focus styles for accessibility */
.btn:focus {
    outline: 2px solid var(--verde-claro);
    outline-offset: 2px;
}

.btn-primary:focus {
    outline-color: white;
}

.btn-secondary:focus {
    outline-color: var(--verde-claro);
}

/* Botón verde - estilos base */
.btn-green {
    background: linear-gradient(135deg, var(--verde-fuerte) 0%, var(--verde-medio) 100%);
    color: white;
    box-shadow: var(--sombra-media);
}

.btn-green::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.btn-green::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-green:hover::after {
    opacity: 1;
}

.btn-green:hover {
    transform: translateY(-3px) perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(30, 127, 79, 0.4);
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-fuerte) 100%);
}

.btn-green:active {
    transform: translateY(-1px) perspective(1000px) rotateX(2deg) rotateY(2deg);
}

.global-impact {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f9f4 0%, #e9efe7 100%);
}

.global-impact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(30, 127, 79, 0.12), transparent 22%),
                radial-gradient(circle at bottom right, rgba(62, 174, 106, 0.08), transparent 18%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.impact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.impact-copy {
    padding: 1rem 0;
}

.impact-copy .section-label {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--verde-oscuro);
    font-size: 0.82rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 700;
}

.global-impact h2 {
    color: #145a3a;
    font-size: clamp(2.2rem, 2.3vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 1.4rem;
}

.global-impact p {
    color: #425046;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.flags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.5rem 0 2rem;
}

.flag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(30, 127, 79, 0.08);
    color: #145a3a;
    font-weight: 700;
    border: 1px solid rgba(30, 127, 79, 0.16);
    box-shadow: 0 14px 28px rgba(20, 67, 38, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flag-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(20, 67, 38, 0.12);
}

.impact-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.impact-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid rgba(20, 67, 38, 0.08);
    box-shadow: 0 30px 50px rgba(20, 67, 38, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 36px 62px rgba(20, 67, 38, 0.1);
}

.impact-card h3 {
    margin-bottom: 0.85rem;
    color: #1a553f;
    font-size: 1.1rem;
}

.impact-card p {
    color: #546354;
    font-size: 0.96rem;
    line-height: 1.72;
}

.impact-visual {
    display: flex;
    justify-content: center;
}

.impact-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 2.6rem;
    border-radius: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ef 100%);
    border: 1px solid rgba(30, 127, 79, 0.12);
    box-shadow: 0 35px 80px rgba(30, 127, 79, 0.07);
}

.impact-panel h3 {
    margin-bottom: 1rem;
    color: #184f36;
    font-size: 2rem;
    line-height: 1.1;
}

.impact-panel p {
    color: #4a5a4a;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.impact-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-left: 0;
}

.impact-list li {
    position: relative;
    padding-left: 2rem;
    color: #425046;
    font-size: 0.97rem;
    line-height: 1.7;
}

.impact-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: #1e7f4f;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-highlights {
        grid-template-columns: 1fr;
    }

    .importance-content {
        grid-template-columns: 1fr;
    }

    .importance-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .global-impact {
        padding: 80px 0;
    }

    .impact-panel {
        padding: 2rem;
    }
}

/* Enhanced 3D Spine Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.spine-illustration {
    position: relative;
    width: 200px;
    height: 300px;
    animation: spineFloat 4s ease-in-out infinite;
    transform-style: preserve-3d;
    cursor: pointer;
}

.spine-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.vertebra {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: vertebraPulse 2s ease-in-out infinite;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vertebra::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translateZ(-10px);
    z-index: -1;
}

.vertebra:hover {
    transform: translateX(-50%) scale(1.3) translateZ(20px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.5);
}

.v1 { top: 10%; animation-delay: 0s; }
.v2 { top: 30%; animation-delay: 0.2s; }
.v3 { top: 50%; animation-delay: 0.4s; }
.v4 { top: 70%; animation-delay: 0.6s; }
.v5 { top: 90%; animation-delay: 0.8s; }

@keyframes vertebraPulse {
    0%, 100% { transform: translateX(-50%) scale(1) translateZ(0px); }
    50% { transform: translateX(-50%) scale(1.1) translateZ(10px); }
}

@keyframes spineFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Enhanced 3D Services Section */
.services {
    padding: 5rem 0;
    background: radial-gradient(circle at top left, rgba(62, 174, 106, 0.12), transparent 28%),
                linear-gradient(180deg, rgba(245, 251, 247, 1) 0%, rgba(255, 255, 255, 1) 100%);
    perspective: 1000px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Montserrat-Bold', 'Montserrat-ExtraBold', sans-serif;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--verde-fuerte);
    transform: translateZ(20px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: transparent;
    padding: 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 127, 79, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--verde-claro);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    z-index: 1; /* Asegurar que esté por debajo del contenido */
}

.service-card:hover::before {
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(30, 127, 79, 0.2);
    border-color: var(--verde-medio);
}

.card-inner {
    transform: translateZ(20px);
    position: relative;
    z-index: 4; /* Asegurar que esté por encima del pseudo-elemento */
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--verde-fuerte) 0%, var(--verde-medio) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translateZ(40px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(30, 127, 79, 0.2);
}

.service-card:hover .service-icon {
    transform: translateZ(60px) rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(30, 127, 79, 0.3);
}





.service-card h3 {
    font-size: 1.3rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--verde-fuerte);
    position: relative;
    z-index: 4; /* Asegurar que esté por encima del pseudo-elemento */
}

.service-card p {
    color: var(--gris-texto);
    line-height: 1.6;
    position: relative;
    z-index: 4; /* Asegurar que esté por encima del pseudo-elemento */
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.3rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--verde-fuerte);
    padding: 0 1.5rem;
}



/* About Section */
.about {
    padding: 6.2rem 0 5rem;
    background: radial-gradient(circle at top left, rgba(30, 127, 79, 0.18), transparent 24%),
        linear-gradient(180deg, #f0f8f0 0%, #ffffff 72%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 8%;
    right: 4%;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: rgba(30, 127, 79, 0.12);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    width: 18rem;
    height: 18rem;
    background: rgba(30, 127, 79, 0.08);
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    color: var(--verde-oscuro);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.about-text {
    position: relative;
}

.about-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 36px;
    border: 1px solid rgba(30, 127, 79, 0.16);
    padding: 2.4rem 2.6rem;
    box-shadow: 0 36px 85px rgba(15, 72, 39, 0.09);
    overflow: hidden;
}

.about-panel::before {
    content: '';
    position: absolute;
    top: -12%;
    right: -12%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: rgba(30, 127, 79, 0.12);
}

/* Specific positioning for global-impact section */
#impacto .about-panel::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Benefits title inside grid */
.benefits-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 127, 79, 0.12);
    border-radius: 999px;
    color: var(--verde-oscuro);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(30, 127, 79, 0.14);
    position: relative;
    z-index: 1;
}

.about-badge::before {
    content: '•';
    color: var(--verde-medio);
    transform: scale(1.35);
    margin-right: 0.25rem;
}

.about-text h2 {
    font-size: 3.4rem;
    font-family: 'Montserrat-ExtraBold', 'Montserrat-Bold', sans-serif;
    font-weight: 800;
    margin-bottom: 1.4rem;
    color: var(--verde-oscuro);
    line-height: 1.04;
}

.about-intro {
    margin-bottom: 1.8rem;
    color: var(--verde-oscuro);
    font-size: 1.18rem;
    line-height: 1.85;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.about-intro::before {
    content: '';
    position: absolute;
    left: -1.4rem;
    top: 0.8rem;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--verde-medio);
    border-radius: 50%;
}

.about-description p {
    margin-bottom: 1.4rem;
    color: #45604d;
    line-height: 1.8;
    font-family: 'OpenSans-Regular', sans-serif;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.8rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(227, 245, 231, 0.9));
    border: 1px solid rgba(30, 127, 79, 0.22);
    border-radius: 28px;
    padding: 1.6rem;
    box-shadow: 0 28px 60px rgba(15, 72, 39, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -18px;
    right: -18px;
    width: 90px;
    height: 90px;
    background: rgba(30, 127, 79, 0.12);
    border-radius: 50%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 75px rgba(15, 72, 39, 0.15);
}

.feature-card h4 {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    color: var(--verde-oscuro);
}

.feature-card p {
    margin: 0;
    font-size: 0.98rem;
    color: #506753;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    border-radius: 44px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #e8f5e7);
    box-shadow: 0 44px 100px rgba(15, 72, 39, 0.18);
    border: 1px solid rgba(30, 127, 79, 0.2);
}

.about-image-card::before {
    content: '';
    position: absolute;
    top: -8%;
    right: -20%;
    width: 10rem;
    height: 10rem;
    background: rgba(30, 127, 79, 0.12);
    border-radius: 50%;
}

.about-image-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 140px;
    height: 140px;
    border-radius: 36px;
    border: 1px solid rgba(30, 127, 79, 0.16);
    background: rgba(255, 255, 255, 0);
}

.about-image-card img {
    display: block;
    width: 100%;
    height: auto;
}

.about-quote {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 5.5rem;
    padding: 1.5rem 1.3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(30, 127, 79, 0.14);
    box-shadow: 0 20px 40px rgba(15, 72, 39, 0.12);
}

.about-quote p {
    margin: 0;
    font-size: 1rem;
    color: var(--verde-oscuro);
    line-height: 1.75;
    font-family: 'OpenSans-Regular', sans-serif;
    font-weight: 600;
}

.doctor-badge {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(120deg, rgba(30, 127, 79, 0.14), rgba(255, 255, 255, 0.96));
    border-radius: 18px;
    border: 1px solid rgba(30, 127, 79, 0.18);
    box-shadow: 0 16px 34px rgba(15, 72, 39, 0.1);
}

.doctor-badge span {
    display: inline-block;
    font-family: 'Montserrat-SemiBold', sans-serif;
    color: var(--verde-oscuro);
    letter-spacing: 0.02em;
}

@media (max-width: 980px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-panel {
        padding: 2rem 1.8rem;
    }

    .about-quote {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 1.5rem auto 0;
        max-width: 420px;
    }

    .doctor-badge {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 1.5rem auto 0;
        display: inline-block;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Enhanced 3D Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--beige-fondo);
    perspective: 1000px;
}

/* Keep the about-content as the bordered panel so the heading sits inside */
.contact .about-content {
    display: block;
}

/* Two-column layout: left = info, right = form */
.contact-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 1rem;
    perspective: 1000px;
}

/* Section title styling to ensure it appears inside the bordered panel */
#contacto .container > .about-content .section-title,
.contact .section-title {
    margin: 0 0 1.5rem;
    text-align: center;
    padding: 0;
}

/* Decorative accent (same as .about-panel::before) for the contact panel */
#contacto .container > .about-content::before {
    content: '';
    position: absolute;
    top: -12%;
    right: -12%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: rgba(30, 127, 79, 0.12);
    pointer-events: none;
    z-index: 0;
}

/* Additional decorative accent for contacto section in a different location */
#contacto .container > .about-content::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -8%;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(62, 174, 106, 0.08);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

/* Center decorative accent inside contacto panel (keeps existing accents) */
#contacto .container > .about-content .contact-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(30,127,79,0.08), rgba(62,174,106,0.04));
    pointer-events: none;
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .contact .contact-info,
    .contact .contact-form {
        order: 0;
    }

    .contact .section-title {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateZ(20px);
}

.info-item {
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(30, 127, 79, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    border: 1px solid var(--verde-claro);
}

.info-item:hover {
    transform: translateZ(10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(30, 127, 79, 0.15);
    border-color: var(--verde-medio);
}

.info-item h3 {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    color: var(--verde-fuerte);
    margin-bottom: 0.5rem;
    transform: translateZ(5px);
}

.info-item p {
    color: var(--gris-texto);
    margin-bottom: 0.25rem;
    transform: translateZ(3px);
}

.contact-form {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 127, 79, 0.1);
    transform: translateZ(20px);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    border: 1px solid var(--verde-claro);
}

.contact-form:hover {
    transform: translateZ(25px) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 20px 40px rgba(30, 127, 79, 0.15);
    border-color: var(--verde-medio);
}

.form-group {
    margin-bottom: 1.5rem;
    transform-style: preserve-3d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--verde-claro);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    transform: translateZ(5px);
    transform-style: preserve-3d;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-medio);
    transform: translateZ(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(30, 127, 79, 0.2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--verde-claro);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-medio);
}

/* Green Themed Footer */
.footer {
    background: linear-gradient(120deg, #184f36 0%, #1f7a57 42%, #1a6b4d 100%);
    color: var(--blanco);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    animation: footerShine 15s infinite linear;
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.18), transparent 16%),
        radial-gradient(circle at 82% 20%, rgba(255,255,255,0.10), transparent 14%),
        radial-gradient(circle at 50% 70%, rgba(255,255,255,0.08), transparent 12%),
        repeating-radial-gradient(circle at 95% 90%, rgba(255,255,255,0.08) 0 2px, transparent 2px 30px),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 38px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 160px 160px, 80px 80px;
    opacity: 0.65;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: footerFloatBubbles 20s ease-in-out infinite alternate;
}

@keyframes footerShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes footerFloatBubbles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-18px); }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blanco);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--verde-claro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--blanco);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--verde-claro);
    position: relative;
    z-index: 2;
}

/* Enhanced Image Styles for Services */
.service-image,
.card-inner .service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    z-index: 2; /* Asegurar que el contenedor esté por encima del pseudo-elemento */
}

.service-image img,
.card-inner .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 3; /* Asegurar que la imagen esté visible */
}





.service-card:hover .service-image img,
.card-inner:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay .service-icon {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-card:hover .service-overlay .service-icon {
    transform: scale(1);
}

/* Enhanced Image Styles for Benefits */
.benefit-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    margin-bottom: 1.5rem;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.benefit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 127, 79, 0.7) 0%, rgba(46, 139, 87, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover .benefit-overlay {
    opacity: 1;
}

.benefit-card:hover .benefit-image img {
    transform: scale(1.1);
}

.benefit-overlay .benefit-icon {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-overlay .benefit-icon {
    transform: scale(1);
}

/* Enhanced About Section Image */
.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.about-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 127, 79, 0.9));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.about-image-container:hover .about-image-overlay {
    transform: translateY(0);
}

.doctor-badge {
    color: white;
    text-align: center;
}

.doctor-badge h4 {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.doctor-badge p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Image Animation on Scroll */
.service-card img,
.benefit-card img,
.about-image-container img {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s ease;
}

.service-card.is-visible img,
.benefit-card.is-visible img,
.about-image-container.is-visible img {
    opacity: 1;
    transform: scale(1);
}

/* Comentado temporalmente - animación de desplazamiento
.service-card img,
.benefit-card img,
.about-image-container img {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}
*/

/* Responsive Image Styles */
@media (max-width: 768px) {
    .service-image,
    .card-inner .service-image {
        height: 180px;
    }
    
    .benefit-image {
        height: 140px;
    }
    
    .about-image-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .service-image,
    .card-inner .service-image {
        height: 160px;
    }
    
    .benefit-image {
        height: 120px;
    }
}

/* Loading Animation for Images */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    /* Services grid for mobile - 1 column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-image {
        height: 140px;
    }
    
    .benefit-image {
        height: 120px;
    }
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(248, 253, 249, 1) 0%, rgba(222, 246, 229, 1) 45%, rgba(236, 252, 239, 1) 100%);
    perspective: 1000px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.benefit-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 127, 79, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--verde-claro);
}

.benefit-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(30, 127, 79, 0.2);
    border-color: var(--verde-medio);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--verde-fuerte);
    margin-top: 1.5rem;
}

.benefit-card p {
    color: var(--gris-texto);
    line-height: 1.6;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--verde-fuerte) 0%, var(--verde-medio) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: rotateY(360deg) scale(1.1);
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-fuerte) 100%);
}

.benefits-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--blanco);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(30, 127, 79, 0.15);
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.benefits-cta h3 {
    font-size: 1.8rem;
    font-family: 'Montserrat-Bold', 'Montserrat-ExtraBold', sans-serif;
    font-weight: 700;
    color: var(--verde-fuerte);
    margin-bottom: 1rem;
}

.benefits-cta p {
    font-size: 1.1rem;
    color: var(--gris-texto);
    margin-bottom: 2rem;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
}

/* Importance Section */
.importance {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(229, 245, 236, 1) 100%);
    perspective: 1000px;
}

.importance-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.importance-header {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 920px;
    margin: 0 auto 0;
}

.importance-header p {
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.7;
}

.importance-intro {
    text-align: center;
    max-width: 760px;
    margin: 0.8rem auto 0;
    color: var(--gris-texto);
    line-height: 1.8;
    font-size: 1.1rem;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
}

.importance-text {
    text-align: left;
    margin-top: 0;
}

.importance-header h3 {
    font-size: 1.8rem;
    font-family: 'Montserrat-Bold', 'Montserrat-ExtraBold', sans-serif;
    font-weight: 700;
    color: var(--verde-fuerte);
    margin-bottom: 0.8rem;
}

.importance-header > p {
    font-size: 1.1rem;
    color: var(--gris-texto);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
}

.importance-points {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.point {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(30, 127, 79, 0.1);
    border-left: 4px solid var(--verde-medio);
    transition: all 0.3s ease;
}

.point:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(30, 127, 79, 0.15);
    border-left-color: var(--verde-fuerte);
}

.point h4 {
    font-size: 1.2rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    color: var(--verde-fuerte);
    margin-bottom: 0.8rem;
}

.point p {
    color: var(--gris-texto);
    line-height: 1.6;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
}

.importance-quote {
    grid-column: 1 / -1;
    margin: 1.25rem 0;
    padding: 1.8rem;
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-medio) 100%);
    border-radius: 15px;
    color: var(--blanco);
    text-align: center;
    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.importance-quote blockquote {
    display: inline-block;
    max-width: 100%;
    font-size: 1.3rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: center;
}

.importance-quote cite {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
}

.importance-quote cite {
    font-size: 1rem;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
    opacity: 0.9;
    font-style: normal;
}

@media (min-width: 1025px) {
    .importance-content {
        grid-template-columns: 2fr 1fr;
    }
}

.importance-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spine-health-illustration {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 127, 79, 0.1);
    text-align: center;
    max-width: 300px;
}

.spine-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spine-images img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.healthy-spine-image,
.unhealthy-spine-image {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.healthy-spine-image {
    background: rgba(142, 209, 166, 0.2);
    border: 2px solid var(--verde-medio);
}

.unhealthy-spine-image {
    background: rgba(var(--rojo-advertencia), 0.1); /* Using rgba for red with opacity */
    border: 2px solid var(--rojo-advertencia);
}

.healthy-spine-image:hover,
.unhealthy-spine-image:hover {
    transform: scale(1.05);
}

.spine-health-illustration h4 {
    font-size: 1.2rem;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-weight: 600;
    color: var(--verde-fuerte);
    margin-bottom: 1.5rem;
}







.healthy-spine-image p,
.unhealthy-spine-image p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
}

.healthy-spine-image p {
    color: var(--verde-oscuro);
}

.unhealthy-spine-image p {
    color: var(--rojo-advertencia);
}

.importance-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--verde-fuerte) 0%, var(--verde-medio) 100%);
    border-radius: 20px;
    color: var(--blanco);
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.importance-cta h3 {
    font-size: 1.8rem;
    font-family: 'Montserrat-Bold', 'Montserrat-ExtraBold', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.importance-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: 'OpenSans-Regular', 'Lato-Regular', sans-serif;
}

/* ===== PROFESSIONAL & INTERACTIVE REDESIGN ===== */

/* General Body & Animation Styles */
body {
    background-color: var(--beige-fondo);
    color: var(--gris-texto);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Add a class for elements to animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navigation */
.header {
    background: rgba(244, 241, 236, 0.85); /* Semi-transparent beige */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 127, 79, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.logo h2 {
    color: var(--verde-fuerte);
}

.nav-link {
    color: var(--verde-oscuro);
    font-weight: 600; /* Slightly bolder */
}

.nav-link:hover {
    color: var(--verde-principal);
}

.nav-link::after {
    background: var(--verde-principal);
    height: 2px;
}

/* Hero Section */
.hero-title .title-main {
    color: var(--verde-oscuro);
}

.hero-title .title-sub {
    color: var(--verde-principal);
}

/* Buttons */
.btn {
    border-radius: 8px; /* Slightly more modern radius */
    box-shadow: 0 4px 15px rgba(30, 127, 79, 0.15);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 127, 79, 0.25);
}

/* Section Styles */
.services, .benefits, .importance, .about {
    padding: 6rem 0;
}

.section-title {
    color: var(--verde-oscuro);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--verde-principal);
    border-radius: 2px;
}

/* Card Redesign (Services & Benefits) */
.service-card, .benefit-card {
    background: var(--blanco);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--verde-claro);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card h3, .benefit-card h3 {
    color: var(--verde-oscuro);
}

/* Importance Section - Points Redesign */
.point {
    background: none; /* Removed background as requested */
    box-shadow: none;
    border-left: 3px solid var(--verde-claro);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s ease;
}

.point:hover {
    border-left-color: var(--verde-principal);
}

.point h4 {
    color: var(--verde-oscuro);
}

.importance-quote {
    background: #FFFFFF;
    border-left: 4px solid var(--verde-principal);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    color: var(--gris-texto);
    padding: 2.5rem;
}

.importance-quote blockquote {
    color: var(--gris-texto);
    font-style: italic;
}

/* Contact Form */
.contact-form input, .contact-form textarea {
    background: var(--blanco);
    border: 1px solid var(--verde-claro);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 3px rgba(30, 127, 79, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(120deg, #112f24 0%, #143d2c 48%, #1c6a48 100%);
    color: rgba(255, 255, 255, 0.78);
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08), transparent 18%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.06), transparent 14%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.04), transparent 20%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 20px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.footer::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -40%;
    width: 140%;
    height: 140%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer h3, .footer h4 {
    color: var(--blanco);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--verde-principal);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Section Background Enhancements */
section:not(.hero-index) {
    position: relative;
    padding: 6rem 0;
    background: transparent;
}

section:not(.hero-index)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 24px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

section:not(.hero-index)::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 32%),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 82% 75%, rgba(255, 255, 255, 0.08), transparent 16%);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.7;
    z-index: 0;
}

#sobre-nosotros,
#servicios,
#beneficios,
#importancia {
}

#sobre-nosotros::before,
#servicios::before,
#beneficios::before,
#importancia::before {
    display: none;
}

#inicio .container,
#sobre-nosotros .container,
#servicios .container,
#beneficios .container,
#importancia .container {
    position: relative;
    z-index: 1;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: none;
}

#sobre-nosotros .container > .about-content,
#bio-ida .container > .about-content,
#como-ayudamos .container > .about-content,
#spa-training .container > .about-content,
#ferias-salud .container > .about-content,
#elegirnos .container > .about-content,
#impacto .container > .about-content,
#especiales .container > .about-content,
#contacto .container > .about-content,
#testimonios .container > .about-content,
#servicios .container > .services-grid,
#beneficios .container > .benefits-grid,
#importancia .container > .importance-content {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(15, 72, 39, 0.08);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

@keyframes sectionGlow {
    0% { transform: translateY(0) scale(1); opacity: 0.95; }
    50% { transform: translateY(-4px) scale(1.01); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.95; }
}

/* Elegant Typography for Keywords */
.elegant-text {
    font-family: 'Blueberry-Regular', cursive;
    font-weight: normal;
}/* Testimonials Carousel */
.testimonials {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 248, 240, 0.95) 100%);
    color: #234a35;
}

/* Put the small label inside the panel, top-left */
.testimonials .about-content {
    position: relative;
    display: block; /* force single-column panel */
    padding-top: 0.5rem; /* give space for the absolute label */
}

.testimonials .section-label {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    display: inline-block;
    font-family: 'Montserrat-SemiBold', sans-serif;
    color: var(--verde-oscuro);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.8rem;
    z-index: 3;
}

/* Main title centered inside the panel */
.testimonials .section-title {
    margin: 1.5rem 0 1rem;
    color: #184f36;
    text-align: center;
}

/* Single-column, centered layout: carousel stacked vertically and centered */
.testimonials-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

/* Slider stays centered and constrained */
.testimonial-slider {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(24, 79, 54, 0.12);
    width: 100%;
}

/* Track: horizontal sliding carousel */
.testimonial-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease;
    width: 100%;
}

/* Cards: full-slide width, inner content centered */
.testimonial-card {
    min-width: 100%;
    padding: 2.5rem;
    background: white;
    border-radius: 32px;
    border: 1px solid rgba(30, 127, 79, 0.12);
    box-shadow: 0 18px 40px rgba(20, 67, 38, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
}

.testimonial-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(20, 67, 38, 0.15);
}

.testimonial-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.testimonial-image:hover img {
    transform: scale(1.05);
}

.testimonial-content {
    text-align: center;
    padding: 0 1rem;
}

.testimonial-content h4 {
    margin-bottom: 0.5rem;
    color: #145a3a;
    font-size: 1.3rem;
    font-weight: 600;
}

.testimonial-content p {
    color: #6b7b68;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.testimonial-button {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #145a3a;
    font-size: 1.8rem;
    box-shadow: 0 18px 40px rgba(20, 67, 38, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem;
    z-index: 5;
    opacity: 0.95;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
}

.testimonial-button.next {
    left: auto;
    right: 0.75rem;
}

.testimonial-button:hover {
    transform: translateY(-2px);
    background: #f1f8ef;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.75rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(20, 67, 38, 0.24);
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dot.active {
    background: #1e7f4f;
    transform: scale(1.1);
    border-color: rgba(30, 127, 79, 0.45);
}


@media (max-width: 860px) {
    .testimonials-carousel {
        grid-template-columns: 1fr;
    }

    .testimonial-button {
        width: 48px;
        height: 48px;
    }

    .testimonial-image img {
        height: 250px;
    }
}

@media (max-width: 680px) {
    .testimonial-card {
        padding: 2rem;
    }

    .testimonials .section-title {
        font-size: 2rem;
    }

    .testimonial-image img {
        height: 200px;
    }

    .testimonial-content h4 {
        font-size: 1.1rem;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }
}

/* Estilos para las imágenes rotativas en la sección #especiales */
#especiales .about-image-card {
    height: 450px; /* Altura fija para evitar colapso */
    display: block;
    position: relative;
    background: #f0f0f0; /* Color de fondo mientras cargan */
}

.rotating-image-container {
    position: relative;
    width: 100%;
    height: 100%; /* Ocupa la altura definida por .about-image-card */
    overflow: hidden;
    border-radius: inherit; /* Hereda el border-radius de .about-image-card */
    background-color: #f0f0f0;
}

.rotating-image-container .rotating-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor */
    opacity: 0; /* Oculta las imágenes por defecto */
    transition: opacity 1.2s ease-in-out; /* Transición suave */
    z-index: 0;
}

.rotating-image-container .rotating-image.active {
    opacity: 1 !important;
    z-index: 1;
}

/* Especiales section - adapted to site aesthetic */
.especiales {
    padding: 80px 0;
    color: var(--gris-texto);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.especiales .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.especiales .section-label {
    display: inline-block;
    color: var(--verde-claro);
    font-family: 'Montserrat-SemiBold', sans-serif;
    margin-bottom: 0.5rem;
}
.especiales .section-title {
    font-family: 'Montserrat-ExtraBold', sans-serif;
    color: var(--verde-oscuro);
    margin-bottom: 1.25rem;
    font-size: 2rem;
}
.especiales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.especiales-image {
    display: flex;
    justify-content: center;
}
.especiales-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--sombra-media);
    border: 1px solid rgba(20,67,38,0.06);
    background: var(--blanco);
}
.especiales-content {
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: var(--sombra-suave);
}
.especiales-content p {
    margin-bottom: 1rem;
    color: #2b3f34;
    line-height: 1.6;
}
.especiales-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}
.especiales-list li h4 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    color: var(--verde-fuerte);
}
.especiales-list li p {
    margin: 0;
    color: #4e6559;
    font-size: 0.98rem;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .especiales-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .especiales-image {
        order: 1;
        margin-bottom: 1rem;
    }
    .especiales-content {
        order: 2;
    }
}
