*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-main: 'Space Grotesk', sans-serif;
    --font-titles: 'Oswald', sans-serif;
    --color-dark: #1a1a1a;
    --color-light: #ffffff;
    --color-accent: #c8e84b;
    --nav-bg: rgba(255, 255, 255, 0.236);
    --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-main);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* ========== ANIMACIONES GENERALES ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(11, 11, 11, 0.151);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 30px rgba(200, 232, 75, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Clases para animaciones con scroll */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.8s, transform 0.8s;
}

[data-scroll].is-inview {
    opacity: 1;
}

/* Títulos con fuente Oswald */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
}

/* ========== NAVBAR ========== */
.navbar {
    position: relative;
    z-index: 99999;
    padding: 20px 25px;
}

.nav-container {
    position: relative;
    height: 80px;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 12px 25px;
    box-shadow: var(--nav-shadow);
    border: 1px solid rgba(255, 255, 255, 0.151);
    transition: all 0.3s ease;
    z-index: 99999;
}

/* Scroll effect removed - navbar keeps same style */

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-dark);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

/* CTA Button */
.nav-cta {
    background: var(--color-dark);
    color: var(--color-light);
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ========== MOBILE MENU TOGGLE (Botón Hamburguesa) ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 100002;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--color-dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ========== MOBILE MENU OVERLAY ========== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    overflow-y: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.mobile-menu-close svg {
    color: var(--color-dark);
}

.mobile-nav {
    width: 100%;
    max-width: 400px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-link {
    display: block;
    padding: 18px 30px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.mobile-nav-item-cta {
    margin-top: 20px;
}

.mobile-nav-cta {
    display: block;
    padding: 20px 40px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-light);
    text-decoration: none;
    background: var(--color-dark);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-cta:hover,
.mobile-nav-cta:active {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ========== NAVBAR RESPONSIVE ========== */
@media (max-width: 900px) {

    .navbar {
        padding: 5px;
    }

    .nav-container {
        padding: 12px 20px;
        height: 70px;
        margin-top: -5%;
    }

    /* Ocultar menú desktop en móvil */
    .nav-menu-desktop {
        display: none !important;
    }

    .nav-cta-desktop {
        display: none !important;
    }

    /* Mostrar botón hamburguesa en móvil */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mostrar overlay de menú móvil */
    .mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 1.4rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .nav-container {
        height: 65px;
    }

    .mobile-nav-link {
        font-size: 1.3rem;
        padding: 16px 25px;
    }

    .mobile-nav-cta {
        padding: 18px 40px;
        font-size: 1.3rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-overlay,
    .mobile-nav-item,
    .mobile-nav-link,
    .mobile-menu-toggle,
    .hamburger-line {
        transition: none !important;
    }
}

.hero{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../assets/image/hero10.webp) no-repeat center 100%;
    background-size: cover;
    filter:saturate(0.8);
    padding: 20px;
    padding-top: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
    animation: fadeIn 1.2s ease-out;
}

/* ========== HERO CONTAINER ========== */
.hero-container {
    position: relative;
    width: 100%;
    max-width: 1700px;
    height: 90vh;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 1s ease-out;
}

/* Texto grande de fondo */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: clamp(120px, 20vw, 280px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: -10px;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content:space-around;
    align-items: flex-end;
    padding: 40px;
    margin-top: auto;
    gap: 40px;
}

/* Lado izquierdo - Texto */
.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-light);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-light);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 450px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

/* Botón del hero */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: var(--color-dark);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(11, 11, 11, 0.151);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

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

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

.hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(200, 232, 75, 0.6);
}

.hero-btn svg {
    transition: transform 0.3s ease;
}

.hero-btn:hover svg {
    transform: translateX(6px);
}

/* ========== ESTADÍSTICAS ========== */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-row {
    display: flex;
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.39);
    /* background: var(--nav-bg); */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-width: 250px;
    min-height: 150px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 1s ease-out 0.5s backwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.7s;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: #2d3e00;
}

.stat-label {
    font-size: 1rem;
    color: #000000;
    line-height: 1.3;
}

/* Card de usuarios */
.users-card {
    background: rgba(255, 255, 255, 0.39);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 20px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 1s ease-out 0.9s backwards;
}

.users-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.5);
}

.users-avatars {
    display: flex;
}

.users-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.users-avatars img:first-child {
    margin-left: 0;
}

.users-card:hover .users-avatars img {
    transform: scale(1.1);
    margin-left: -5px;
}

.users-card:hover .users-avatars img:first-child {
    margin-left: 0;
}

.users-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.users-stars {
    color: #f5c518;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.users-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* ========== HERO RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .hero-stats {
        width: 100%;
    }

    .stats-row {
        width: 100%;
    }

    .stat-card {
        flex: 1;
        min-width: auto;
        /* Cambiar animación a desde abajo en móviles */
        animation: fadeInUp 1s ease-out 0.5s backwards !important;
    }
    
    .stat-card:nth-child(2) {
        animation-delay: 0.7s !important;
    }
    
    .users-card {
        /* Cambiar animación a desde abajo en móviles */
        animation: fadeInUp 1s ease-out 0.9s backwards !important;
    }

    .hero-bg-text {
        font-size: clamp(80px, 18vw, 150px);
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 10px;
        padding-top: 40px;
    }

    .hero-container {
        border-radius: 20px;
        height: 95vh;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .stats-row {
        flex-direction: column;
    }

    .stat-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        text-align: left;
    }

    .stat-number {
        margin-bottom: 0;
    }

    .hero-bg-text {
        font-size: 60px;
        letter-spacing: -5px;
    }

    .nav-logo span {
        font-size: 1.5rem;
    }

    .navbar{
        margin-top: 25px;
    }

    .hero-text h1 {
        font-size:2.5rem;
        font-weight: 700;
        color: var(--color-light);
        line-height: 1.1;
        margin-bottom: 20px;
        letter-spacing: -1px;
    }
}

/* ========== EFECTO PARALLAX SIMPLE ========== */
.caja2,
.caja3,
.caja4,
.caja5 {
    will-change: transform;
}

/* ========== CAJA 2 ========== */
.caja2 {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: url(../assets/image/eco-friendly-solar-pannels-sunny-day.jpg);
    background-size: cover;
    background-position: center;
}

/* Indicador numérico */
.caja2-indicator {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja2-indicator.is-inview {
    opacity: 1;
    animation: fadeIn 1s ease-out;
}

.indicator-line {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    transform-origin: top;
}

.indicator-number {
    color: #ffffff90;
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* Split de dos paneles */
.caja2-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.caja2-panel {
    width: 50%;
    height: 100%;
    position: relative;
}

/* Panel izquierdo - solo muestra la imagen de fondo */
.caja2-panel-left {
    background: transparent;
}

/* Panel derecho - caja con fondo blanco translúcido */
.caja2-panel-right {
    background: rgba(89, 89, 89, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido del panel derecho */
.caja2-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja2-content.is-inview {
    opacity: 1;
    transform: translateX(0);
}

.caja2-content h2 {
    font-size: clamp(2rem, 4vw, 5rem);
    text-align: center;
    font-weight: 500;
    font-family: var(--font-titles);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
    /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
}

.caja2-content p {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
    /* text-shadow: 0 1px 5px rgba(0, 0, 0, 0.455); */
    text-transform: uppercase;
}

.caja2-btn {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.caja2-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Footer de la sección */
.caja2-footer {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 1;
}

.caja2-footer span {
    width: 1600px;
    max-width: 95vw;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 3px;
    /* text-shadow: 0 1px 3px rgb(0, 0, 0); */
    border-top: 2px solid rgba(255, 255, 255, 0.745);
    padding-top: 10px;
    display: inline-block;
}

/* Responsive caja2 */
@media (max-width: 900px) {
    
    .caja2-split {
        flex-direction: column;
    }

    .caja2-panel {
        width: 100%;
        height: 50%;
    }

    .caja2-content {
        padding: 30px;
    }

    .caja2-content h2 {
        font-size: 1.8rem;
    }

    .caja2-indicator {
        top: 20px;
        left: 20px;
    }
}
@media (max-width: 768px) {
    /* Panel derecho más alto para dar más espacio al texto */
    .caja2-panel-right {
        height: 70% !important;
    }
    
    .caja2-panel-left {
        height: 30% !important;
    }
    
    .caja2-content {
        padding: 25px 20px;
    }
    
    .caja2-content h2 {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .caja2-content p {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

/* ========== CAJA 3 - Contenido a la izquierda ========== */
.caja3 {
    width:100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: url(../assets/image/landscape-with-windmills.jpg) no-repeat center center;
    background-size: cover;
}

/* Indicador numérico caja3 */
.caja3-indicator {
    position: absolute;
    top: 40px;
    right: 40px; /* A la derecha en esta sección */
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja3-indicator.is-inview {
    opacity: 1;
    animation: fadeIn 1s ease-out;
}

/* Split de dos paneles caja3 */
.caja3-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.caja3-panel {
    width: 50%;
    height: 100%;
    position: relative;
}

/* Panel izquierdo - caja con fondo blanco translúcido */
.caja3-panel-left {
    background: rgba(89, 89, 89, 0.25);    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel derecho - solo muestra la imagen de fondo */
.caja3-panel-right {
    background: transparent;
}

/* Contenido del panel izquierdo */
.caja3-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja3-content.is-inview {
    opacity: 1;
    transform: translateX(0);
}

.caja3-content h2 {
    font-size: clamp(2rem, 4vw, 5rem);
    text-align: center;
    font-weight: 500;
    font-family: var(--font-titles);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
        /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
}

.caja3-content p {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
    /* text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); */
    text-transform: uppercase;
}

/* Footer de la sección caja3 */
.caja3-footer {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 1;
}

.caja3-footer span {
    width: 1600px;
    max-width: 95vw;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 3px;
    /* text-shadow: 0 1px 3px rgb(0, 0, 0); */
    border-top: 2px solid rgba(255, 255, 255, 0.745);
    padding-top: 10px;
    display: inline-block;
}

/* Responsive caja3 */
@media (max-width: 900px) {
    .caja3-split {
        flex-direction: column-reverse; /* Invertir en móvil */
    }

    .caja3-panel {
        width: 100%;
        height: 50%;
    }

    .caja3-content {
        padding: 30px;
    }

    .caja3-content h2 {
        font-size: 1.8rem;
    }

    .caja3-indicator {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    /* Panel izquierdo más alto para dar más espacio al texto */
    .caja3-panel-left {
        height: 70% !important;
    }
    
    .caja3-panel-right {
        height: 30% !important;
    }
    
    .caja3-content {
        padding: 25px 20px;
    }
    
    .caja3-content h2 {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .caja3-content p {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .text-white {
        color: #fff;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }

    .indicator-line {
        background: rgb(255, 255, 255);
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    }
}

/* ========== CAJA 4 - AEROTERMIA ========== */
.caja4 {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: url(../assets/image/freepik__the-style-is-candid-image-photography-with-natural__43005.png);
    background-size: cover;
    background-position: center;
}

/* Indicador numérico caja4 */
.caja4-indicator {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja4-indicator.is-inview {
    opacity: 1;
    animation: fadeIn 1s ease-out;
}

/* Split de dos paneles caja4 */
.caja4-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.caja4-panel {
    width: 50%;
    height: 100%;
    position: relative;
}

/* Panel izquierdo - solo muestra la imagen de fondo */
.caja4-panel-left {
    background: transparent;
}

/* Panel derecho - caja con fondo translúcido */
.caja4-panel-right {
    background: rgba(89, 89, 89, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido del panel derecho */
.caja4-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja4-content.is-inview {
    opacity: 1;
    transform: translateX(0);
}

.caja4-content h2 {
    font-size: clamp(2rem, 4vw, 5rem);
    text-align: center;
    font-weight: 500;
    font-family: var(--font-titles);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
    /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
}

.caja4-content p {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
    /* text-shadow: 0 1px 5px rgba(0, 0, 0, 0.455); */
    text-transform: uppercase;
}

/* Footer de la sección caja4 */
.caja4-footer {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 1;
}

.caja4-footer span {
    width: 1600px;
    max-width: 95vw;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 3px;
    /* text-shadow: 0 1px 3px rgb(0, 0, 0); */
    border-top: 2px solid rgba(255, 255, 255, 0.745);
    padding-top: 10px;
    display: inline-block;
}

/* Responsive caja4 */
@media (max-width: 900px) {
    .caja4-split {
        flex-direction: column;
    }

    .caja4-panel {
        width: 100%;
        height: 50%;
    }

    .caja4-content {
        padding: 30px;
    }

    .caja4-content h2 {
        font-size: 1.8rem;
    }

    .caja4-indicator {
        top: 20px;
        left: 20px;
    }
}

@media (max-width: 768px) {
    /* Panel derecho más alto para dar más espacio al texto */
    .caja4-panel-right {
        height: 70% !important;
    }
    
    .caja4-panel-left {
        height: 30% !important;
    }
    
    .caja4-content {
        padding: 25px 20px;
    }
    
    .caja4-content h2 {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .caja4-content p {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

/* ========== CAJA 5 - BIOMASA ========== */
.caja5 {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: url(../assets/image/front-view-plant-growing-from-pellets.jpg) no-repeat center center;
    background-size: cover;
}

/* Indicador numérico caja5 */
.caja5-indicator {
    position: absolute;
    top: 40px;
    right: 40px; /* A la derecha en esta sección */
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja5-indicator.is-inview {
    opacity: 1;
    animation: fadeIn 1s ease-out;
}

/* Split de dos paneles caja5 */
.caja5-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.caja5-panel {
    width: 50%;
    height: 100%;
    position: relative;
}

/* Panel izquierdo - caja con fondo blanco translúcido */
.caja5-panel-left {
    background: rgba(89, 89, 89, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel derecho - solo muestra la imagen de fondo */
.caja5-panel-right {
    background: transparent;
}

/* Contenido del panel izquierdo */
.caja5-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.caja5-content.is-inview {
    opacity: 1;
    transform: translateX(0);
}

.caja5-content h2 {
    font-size: clamp(2rem, 4vw, 5rem);
    text-align: center;
    font-weight: 500;
    font-family: var(--font-titles);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
    /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
}

.caja5-content p {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
    /* text-shadow: 0 1px 5px rgba(0, 0, 0, 0.455); */
    text-transform: uppercase;
}

/* Footer de la sección caja5 */
.caja5-footer {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 1;
}

.caja5-footer span {
    width: 1600px;
    max-width: 95vw;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 3px;
    /* text-shadow: 0 1px 3px rgb(0, 0, 0); */
    border-top: 2px solid rgba(255, 255, 255, 0.745);
    padding-top: 10px;
    display: inline-block;
}

/* Responsive caja5 */
@media (max-width: 900px) {
    .caja5-split {
        flex-direction: column-reverse; /* Invertir en móvil */
    }

    .caja5-panel {
        width: 100%;
        height: 50%;
    }

    .caja5-content {
        padding: 30px;
    }

    .caja5-content h2 {
        font-size: 1.8rem;
    }

    .caja5-indicator {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    /* Panel izquierdo más alto para dar más espacio al texto */
    .caja5-panel-left {
        height: 70% !important;
    }
    
    .caja5-panel-right {
        height: 30% !important;
    }
    
    .caja5-content {
        padding: 25px 20px;
    }
    
    .caja5-content h2 {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .caja5-content p {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

/* ========== SECCIÓN EXPERIENCIA ========== */
.experiencia-section {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.experiencia-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Header con título y stat destacado */
.experiencia-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 40px;
}

.experiencia-titulo-box {
    flex: 1;
    background: linear-gradient(135deg, #e1f887 0%, #b5d43a 100%);
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    overflow: hidden;
}

.experiencia-titulo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.experiencia-titulo-box.is-inview {
    opacity: 1;
    transform: translateX(0);
}

.experiencia-titulo-box.is-inview::before {
    animation: shimmer 2s ease-out 0.5s;
}

.experiencia-titulo-box h2 {
    font-family: var(--font-titles);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.15;
    letter-spacing: -1px;
}

.experiencia-stat-destacado {
    min-width: 280px;
    background: #ffffff;
    border: 2px solid #a1a1a1;
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.experiencia-stat-destacado.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.stat-big-number {
    font-family: var(--font-titles);
    font-size: 4rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-big-label {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 500;
}

/* Descripción */
.experiencia-descripcion {
    margin-bottom: 50px;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.experiencia-descripcion.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.experiencia-descripcion p {
    font-size: 1.15rem;
    color: var(--color-dark);
    line-height: 1.8;
}

.experiencia-descripcion strong {
    color: var(--color-dark);
    font-weight: 600;
}

/* Cards de estadísticas */
.experiencia-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.exp-stat-card {
    background: #ffffff;
    border: 2px solid #a7a7a7;
    border-radius: 20px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
}

.exp-stat-card.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.exp-stat-card:nth-child(1).is-inview {
    transition-delay: 0.1s;
}

.exp-stat-card:nth-child(2).is-inview {
    transition-delay: 0.2s;
}

.exp-stat-card:nth-child(3).is-inview {
    transition-delay: 0.3s;
}

.exp-stat-card:hover {
    border-color: var(--color-dark);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.exp-stat-number {
    font-family: var(--font-titles);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.exp-stat-unit {
    font-size: 0.5em;
    font-weight: 400;
    color: var(--color-dark);
}

.exp-stat-label {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 500;
}

/* Responsive Experiencia */
@media (max-width: 1100px) {
    .experiencia-header {
        flex-direction: column;
    }

    .experiencia-stat-destacado {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 900px) {
    .experiencia-section {
        padding: 60px 25px;
    }

    .experiencia-titulo-box {
        padding: 40px;
    }

    .experiencia-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exp-stat-card {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .experiencia-section {
        padding: 50px 20px;
    }

    .experiencia-titulo-box {
        padding: 30px;
    }

    .experiencia-titulo-box h2 {
        font-size: 1.8rem;
    }

    .stat-big-number {
        font-size: 3rem;
    }

    .experiencia-stat-destacado {
        padding: 30px;
    }
}

/* ========== SECCIÓN SERVICIOS CON TABS ========== */
.servicios-section {
    width: 100%;
    min-height: 100vh;
    background: #f8f9fa;
    padding: 100px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.servicios-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Header de servicios */
.servicios-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 900px;
}

.servicios-titulo h2 {
    font-family: var(--font-titles);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.15;
    letter-spacing: -1px;
}

.servicios-intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.servicios-intro p:last-child {
    margin-bottom: 0;
}

/* Tabs de navegación */
.servicios-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-dark);
}

.tab-btn.active {
    color: var(--color-dark);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Contenido de tabs */
.servicios-content {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 25px;
    max-width: 900px;
}

.tab-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Servicios */
@media (max-width: 1000px) {
    .servicios-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicios-section {
        padding: 80px 30px;
    }
}

@media (max-width: 768px) {
    .servicios-section {
        padding: 60px 20px;
    }

    .servicios-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 5px;
    }

    .tab-btn {
        padding: 15px 20px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        text-align: left;
    }

    .tab-btn::after {
        display: none;
    }

    .tab-btn.active {
        background: var(--color-accent);
        border-color: var(--color-accent);
    }

    .servicios-titulo h2 {
        font-size: 1.8rem;
    }

    .tab-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .servicios-section {
        padding: 50px 15px;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 12px 15px;
    }
}

/* ========== FOOTER ========== */
.site-footer {
    width: 100%;
    background: url(../assets/image/footer.png) no-repeat center center;
    background-size: cover;
    padding: 80px 40px 30px;
    color: #fff;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Footer Top - CTA y Formulario */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-cta h3 {
    font-family: var(--font-titles);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.footer-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Formulario */
.footer-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.758);
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-group-full {
    grid-column: 1 / -1;
}

.footer-form input,
.footer-form select,
.footer-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.723);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

.footer-form select option {
    background: var(--color-dark);
    color: #fff;
}

.footer-form input:focus,
.footer-form select:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
}

.footer-form textarea {
    resize: vertical;
    min-height: 100px;
}

.footer-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-accent);
    color: var(--color-dark);
    border: none;
    padding: 16px 35px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.footer-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 232, 75, 0.3);
}

.footer-submit-btn svg {
    transition: transform 0.3s ease;
}

.footer-submit-btn:hover svg {
    transform: translateX(4px);
}

/* Divider */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.758);
    margin-bottom: 50px;
}

/* Footer Bottom */
.footer-bottom {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 300px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

/* Footer Contact */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--color-accent);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* Copyright */
.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.725);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-3px);
}

/* Footer Responsive */
@media (max-width: 1000px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 25px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 50px 20px 20px;
    }

    .footer-form-wrapper {
        padding: 25px 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-cta h3 {
        font-size: 1.6rem;
    }
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #c9e84b95;
    color: var(--color-dark);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(76, 76, 76, 0.4);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(200, 232, 75, 0.5);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

.scroll-top-btn svg {
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover svg {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .scroll-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

[data-scroll-section] {
    min-height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}


html.has-scroll-smooth {
    overflow: hidden;
}

[data-scroll-container] {
    min-height: 100vh;
}

/* ========== EFECTO RIPPLE ========== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== EFECTOS DE HOVER MEJORADOS ========== */
.nav-cta,
.hero-btn,
.footer-submit-btn {
    position: relative;
    overflow: hidden;
}

/* ========== ANIMACIÓN DE SERVICIOS TABS ========== */
.servicios-tabs {
    position: relative;
}

.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent, rgba(200, 232, 75, 0.1));
    transition: height 0.3s ease;
}

.tab-btn:hover::before {
    height: 100%;
}

/* ========== MEJORAS VISUALES PARA NAVBAR ========== */
/* Animación de navbar eliminada para comportamiento simple */

/* ========== ANIMACIÓN DE LAS ESTRELLAS ========== */
.users-stars span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.users-card:hover .users-stars span {
    animation: starPulse 0.5s ease infinite;
}

.users-card:hover .users-stars span:nth-child(1) {
    animation-delay: 0s;
}

.users-card:hover .users-stars span:nth-child(2) {
    animation-delay: 0.1s;
}

.users-card:hover .users-stars span:nth-child(3) {
    animation-delay: 0.2s;
}

.users-card:hover .users-stars span:nth-child(4) {
    animation-delay: 0.3s;
}

.users-card:hover .users-stars span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ========== SMOOTH SCROLL REVEAL ========== */
.servicios-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.servicios-header.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.servicios-tabs {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.servicios-tabs.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.servicios-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.servicios-content.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ANIMACIONES DE PARALLAX Y PROFUNDIDAD ========== */
.caja2-panel-left,
.caja3-panel-right,
.caja4-panel-left,
.caja5-panel-right {
    transition: transform 0.3s ease;
}

/* ========== MICRO-INTERACCIONES EN FORMULARIO ========== */
.footer-form input:focus,
.footer-form select:focus,
.footer-form textarea:focus {
    transform: scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.footer-submit-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ========== FOOTER SIN ANIMACIÓN (SIMPLIFICADO) ========== */
.site-footer {
    opacity: 1;
    transform: translateY(0);
}

/* ========== EFECTO GLOW EN ELEMENTOS HOVER ========== */
.stat-card:hover,
.users-card:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(200, 232, 75, 0.2);
}

.exp-stat-card:hover .exp-stat-number {
    text-shadow: 0 0 20px rgba(200, 232, 75, 0.4);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* ========== ANIMACIÓN LOGO NAVBAR ========== */
.nav-logo {
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo:hover .logo-icon {
    animation: rotate360 0.6s ease;
}

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


/* ========== SMOOTH TRANSITIONS GLOBALES ========== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ========== LOADING STATE PARA IMÁGENES ========== */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* ========== SCROLL BAR PERSONALIZADA ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c8e84b 0%, #b5d43a 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b5d43a 0%, #9dc02f 100%);
}

/* ========== ANIMACIÓN DE PULSE PARA SCROLL TOP BUTTON ========== */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(76, 76, 76, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(200, 232, 75, 0.6);
    }
}

.scroll-top-btn.visible {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ========== MEJORAS EN TAB CONTENT ========== */
.tab-content {
    position: relative;
}

.tab-content p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active p {
    opacity: 1;
    transform: translateY(0);
}

.tab-content.active p:nth-child(1) {
    transition-delay: 0.1s;
}

.tab-content.active p:nth-child(2) {
    transition-delay: 0.2s;
}

.tab-content.active p:nth-child(3) {
    transition-delay: 0.3s;
}

.tab-content.active p:nth-child(4) {
    transition-delay: 0.4s;
}
