/* =================================================================
   RESPONSIVE - HERO Y QUIÉNES SOMOS
   Mobile First - Breakpoints: 320px, 480px, 768px, 1024px, 1200px
   ================================================================= */

/* ========================================
   MÓVIL PEQUEÑO (hasta 480px)
   ======================================== */
@media (max-width: 480px) {
    /* === HERO === */
    .hero {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 30px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Reducir logo en móvil */
    .hero-logo {
        margin-bottom: 1.5rem;
    }

    .hero-logo-img {
        width: clamp(140px, 35vw, 180px);
    }

    /* Ajustar slogan para móvil */
    .hero-slogan {
        margin-bottom: 2rem;
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        line-height: 1.1;
        margin: 0.3rem 0;
    }

    /* Botón más compacto */
    .hero-button {
        font-size: 0.85rem;
        padding: 10px 24px;
        letter-spacing: 2px;
    }

    /* Simplificar animaciones en móvil para performance */
    .hero-content {
        animation: none;
    }

    @keyframes gentleWave {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 3px 10px rgba(84, 148, 154, 0.3);
        }
        50% {
            transform: scale(1.01);
            box-shadow: 0 5px 15px rgba(84, 148, 154, 0.35);
        }
    }

    /* === QUIÉNES SOMOS === */
    .about-section {
        padding: 50px 16px;
    }

    .about-container {
        max-width: 100%;
    }

    .about-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 1.5rem;
        letter-spacing: 0.5px;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .about-button {
        font-size: 0.95rem;
        padding: 10px 26px;
        letter-spacing: 0.5px;
    }
}

/* ========================================
   MÓVIL PEQUEÑO LANDSCAPE
   ======================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-logo {
        margin-bottom: 1rem;
    }

    .hero-slogan {
        margin-bottom: 1.5rem;
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        font-size: 1.5rem;
        margin: 0.2rem 0;
    }
}

/* ========================================
   MÓVIL GRANDE (481px - 767px)
   ======================================== */
@media (min-width: 481px) and (max-width: 767px) {
    /* === HERO === */
    .hero {
        padding-top: 70px;
        padding-bottom: 35px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-logo-img {
        width: clamp(160px, 30vw, 200px);
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        font-size: clamp(1.6rem, 5.5vw, 2rem);
        line-height: 1;
    }

    .hero-button {
        font-size: 0.95rem;
        padding: 10px 30px;
        letter-spacing: 3px;
    }

    /* === QUIÉNES SOMOS === */
    .about-section {
        padding: 60px 20px;
    }

    .about-title {
        font-size: clamp(2rem, 6vw, 2.3rem);
        margin-bottom: 1.8rem;
    }

    .about-text {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 2.5rem;
    }

    .about-button {
        font-size: 1rem;
        padding: 11px 28px;
    }
}

/* ========================================
   TABLET (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* === HERO === */
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-logo-img {
        width: clamp(180px, 22vw, 220px);
    }

    .hero-slogan {
        margin-bottom: 2.5rem;
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        font-size: clamp(1.8rem, 4.5vw, 2.2rem);
    }

    .hero-button {
        font-size: 1rem;
        padding: 9px 35px;
        letter-spacing: 3.5px;
    }

    /* === QUIÉNES SOMOS === */
    .about-section {
        padding: 70px 20px;
    }

    .about-container {
        max-width: 750px;
    }

    .about-title {
        font-size: clamp(2.2rem, 5vw, 2.4rem);
        margin-bottom: 1.9rem;
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 2.8rem;
    }

    .about-button {
        font-size: 1.05rem;
        padding: 12px 30px;
    }
}

/* ========================================
   TABLET LANDSCAPE
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        font-size: clamp(1.9rem, 4vw, 2.1rem);
    }
}

/* ========================================
   LAPTOP PEQUEÑO (1024px - 1199px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1199px) {
    /* === HERO === */
  .hero-content {
    max-width: 720px; /* un poco más compacto que en desktop */
    padding: 0 18px;
  }

  /* Logo: más pequeño y proporcional en portátiles */
  .hero-logo {
    margin-bottom: 1.6rem; /* reduce espacio */
  }
  .hero-logo-img {
    /* Antes: clamp(180px, 18vw, 250px) */
    /* Ahora: menos dominante en portátiles */
    width: clamp(140px, 12.5vw, 200px);
    max-width: 200px;
    height: auto;
  }

  /* Slogan (títulos/subtítulos) — escalan según pantalla */
  .slogan-line-1,
  .slogan-line-2,
  .slogan-line-3 {
    /* Antes: 2.5rem y line-height:0.7 (muy ajustado) */
    font-size: clamp(1.6rem, 3.2vw, 2.2rem); /* más moderado en portátiles */
    line-height: 0.95; /* mejora legibilidad en pantallas intermedias */
    margin: 0.35rem 0;
    /* Asegura que el pseudo-elemento ::after se posicione correctamente */
    position: relative;
  }

  /* Si usas shimmer (::after), que no se salga del contenedor */
  .slogan-line-1::after,
  .slogan-line-2::after,
  .slogan-line-3::after {
    /* mantén la animación pero evita que sobresalga tanto */
    width: 40%;
    left: -90%;
    animation-duration: 5.5s;
  }

  /* Botón: menos ancho y tipografía más contenida */
  .hero-button {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    padding: 8px 32px;
    letter-spacing: 3px;
  }

  /* Opcional: reduce la animación floating para que no compita visualmente */
  .hero-content {
    animation-duration: 8s;
  }
}

/* ========================================
   DESKTOP ESTÁNDAR (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    /* === HERO === */
    .hero-content {
        max-width: 800px;
    }

    .hero-logo-img {
        width: clamp(200px, 18vw, 250px);
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        font-size: 2.5rem;
    }

    /* === QUIÉNES SOMOS === */
    .about-container {
        max-width: 800px;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 1.2rem;
    }
}

/* ========================================
   PANTALLAS MUY GRANDES (1440px+)
   ======================================== */
@media (min-width: 1440px) {
    .hero-logo-img {
        max-width: 260px;
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        font-size: 2.8rem;
    }

    .hero-button {
        font-size: 1.15rem;
        padding: 10px 45px;
    }

    .about-title {
        font-size: 2.8rem;
    }

    .about-text {
        font-size: 1.3rem;
    }
}

/* ========================================
   AJUSTES ESPECÍFICOS PARA ALTURA REDUCIDA
   ======================================== */
@media (max-height: 600px) {
    .hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-logo {
        margin-bottom: 1rem;
    }

    .hero-slogan {
        margin-bottom: 1.5rem;
    }

    .slogan-line-1,
    .slogan-line-2,
    .slogan-line-3 {
        margin: 0.3rem 0;
    }
}

/* ========================================
   OPTIMIZACIÓN ANIMACIONES PARA MÓVIL
   ======================================== */
@media (max-width: 767px) {
    /* Simplificar animaciones complejas en móvil */
    .hero::after {
        animation-duration: 30s; /* Más lento = menos demandante */
    }

    @keyframes particlesFloat {
        0% { background-position: 0 0; }
        100% { background-position: 200px 200px; }
    }

    /* Pausar animaciones continuas si el usuario prefiere menos movimiento */
    @media (prefers-reduced-motion: reduce) {
        .hero-content,
        .hero-logo-img,
        .hero-button,
        .hero::after,
        .hero::before {
            animation: none !important;
        }

        .hero-button {
            transition: all 0.2s ease;
        }
    }
}

/* =================================================================
   RESPONSIVE - SERVICES SECTION
   Mobile First - Breakpoints: 320px, 480px, 768px, 1024px, 1200px
   ================================================================= */

/* ========================================
   MÓVIL PEQUEÑO (hasta 480px)
   ======================================== */
@media (max-width: 480px) {
    /* === SERVICES SECTION === */
    .services-section {
        padding: 50px 16px 45px;
    }

    /* Kicker más pequeño */
    .services-section::before {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        letter-spacing: 0.5px;
    }

    /* Título principal */
    .services-section .section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 38px;
    }

    .services-container {
        max-width: 100%;
    }

    /* Grid a 1 columna */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 32px;
    }

    /* Cards más compactas */
    .service-card {
        height: auto;
        min-height: 420px;
        border-radius: 24px;
    }

    /* Simplificar delays en móvil para mejor performance */
    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        transition-delay: 0.3s;
    }

    /* Contenido */
    .card-content {
        padding: 32px 24px 30px;
    }

    /* Logo */
    .card-logo {
        margin-bottom: 22px;
    }

    .card-logo-img {
        height: 52px;
    }

    /* Textos */
    .card-title {
        font-size: 1.65rem;
        margin-bottom: 8px;
    }

    .card-subtitle {
        font-size: 0.9rem;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .card-description {
        font-size: 0.88rem;
        line-height: 1.5;
        max-width: 100%;
    }

    /* Reducir hover effect en móvil */
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* ========================================
   MÓVIL GRANDE (481px - 767px)
   ======================================== */
@media (min-width: 481px) and (max-width: 767px) {
    /* === SERVICES SECTION === */
    .services-section {
        padding: 60px 20px 50px;
    }

    .services-section::before {
        font-size: 0.92rem;
        letter-spacing: 0.6px;
    }

    .services-section .section-title {
        font-size: clamp(2rem, 6.5vw, 2.4rem);
        margin-bottom: 42px;
    }

    /* Grid a 1 columna o 2 según espacio */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 36px;
    }

    .service-card {
        height: auto;
        min-height: 440px;
        border-radius: 26px;
    }

    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        transition-delay: 0.35s;
    }

    .card-content {
        padding: 36px 28px 32px;
    }

    .card-logo-img {
        height: 56px;
    }

    .card-title {
        font-size: 1.75rem;
    }

    .card-subtitle {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .card-description {
        font-size: 0.9rem;
        line-height: 1.52;
    }


}

/* ========================================
   TABLET (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* === SERVICES SECTION === */
    .services-section {
        padding: 70px 20px 60px;
    }

    .services-section::before {
        font-size: 0.98rem;
        letter-spacing: 0.7px;
    }

    .services-section .section-title {
        font-size: clamp(2.2rem, 5.5vw, 2.5rem);
        margin-bottom: 46px;
    }

    .services-container {
        max-width: 100%;
    }

    /* Grid a 2 columnas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
        margin-bottom: 38px;
    }

    .service-card {
        height: auto;
        min-height: 480px;
        border-radius: 28px;
    }

    /* Ajustar delays para 2 columnas */
    .service-card:nth-child(1),
    .service-card:nth-child(2) {
        transition-delay: 0.45s;
    }

    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        transition-delay: 0.7s;
    }

    .card-content {
        padding: 38px 30px 34px;
    }

    .card-logo {
        margin-bottom: 24px;
    }

    .card-logo-img {
        height: 58px;
    }

    .card-title {
        font-size: 1.85rem;
    }

    .card-subtitle {
        font-size: 0.98rem;
        margin-bottom: 18px;
        max-width: 100%;
    }

    .card-description {
        font-size: 0.92rem;
        line-height: 1.53;
        max-width: 100%;
    }

}

/* ========================================
   TABLET LANDSCAPE
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .services-section {
        padding: 65px 20px 55px;
    }

    .service-card {
        min-height: 460px;
    }

    .card-content {
        padding: 36px 28px 32px;
    }
}

/* ========================================
   LAPTOP PEQUEÑO (1024px - 1199px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1199px) {
    /* === SERVICES SECTION === */
    .services-section {
        padding: 80px 20px 65px;
    }

    .services-section::before {
        font-size: 1rem;
    }

    .services-section .section-title {
        font-size: 2.6rem;
        margin-bottom: 50px;
    }

    .services-container {
        max-width: 100%;
    }

    /* Grid a 2 columnas en laptop pequeño */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px;
        margin-bottom: 40px;
    }

    .service-card {
        height: auto;
        min-height: 500px;
        border-radius: 30px;
    }

    /* Delays para 2 columnas */
    .service-card:nth-child(1),
    .service-card:nth-child(2) {
        transition-delay: 0.45s;
    }

    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        transition-delay: 0.75s;
    }

    .card-content {
        padding: 40px 32px 36px;
    }

    .card-logo {
        margin-bottom: 26px;
    }

    .card-logo-img {
        height: 60px;
    }

    .card-title {
        font-size: 1.95rem;
    }

    .card-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .card-description {
        font-size: 0.94rem;
        line-height: 1.54;
        max-width: 100%;
    }
}

/* ========================================
   DESKTOP PEQUEÑO (1200px - 1439px)
   ======================================== */
@media (min-width: 1200px) and (max-width: 1439px) {
    /* === SERVICES SECTION === */
    .services-section {
        padding: 85px 20px 68px;
    }

    .services-container {
        max-width: 1400px;
    }

    /* Grid a 4 columnas pero más compacto */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        margin-bottom: 42px;
    }

    .service-card {
        height: auto;
        min-height: 500px;
        border-radius: 32px;
    }

    .card-content {
        padding: 42px 30px 38px;
    }

    .card-logo-img {
        height: 62px;
    }

    .card-title {
        font-size: 2rem;
    }

    .card-subtitle {
        font-size: 1.01rem;
        max-width: 280px;
    }

    .card-description {
        font-size: 0.95rem;
        max-width: 280px;
    }
}



/* ========================================
   OPTIMIZACIÓN ANIMACIONES PARA MÓVIL
   ======================================== */
@media (max-width: 767px) {
    /* Simplificar animaciones en dispositivos móviles */
    .service-card::before {
        transition-duration: 0.4s;
    }

    .card-logo-img {
        transition-duration: 0.3s;
    }

    .service-card:hover::before {
        transform: scale(1.03);
    }

    .service-card:hover .card-logo-img {
        transform: scale(1.05) translateY(-2px);
    }

    /* Pausar animaciones si el usuario prefiere menos movimiento */
    @media (prefers-reduced-motion: reduce) {
        .services-section::before,
        .services-section .section-title,
        .service-card {
            transition-duration: 0.01ms !important;
            animation: none !important;
        }
    }
}

/* ========================================
   AJUSTES PARA PANTALLAS CON POCA ALTURA
   ======================================== */
@media (max-height: 700px) and (min-width: 768px) {
    .service-card {
        min-height: 440px;
    }

    .card-content {
        padding: 34px 28px 32px;
    }
}

/* =================================================================
   RESPONSIVE - PROMISE SECTION
   Mobile First - Breakpoints: 320px, 480px, 768px, 1024px, 1200px
   ================================================================= */

/* ========================================
   MÓVIL PEQUEÑO (hasta 480px)
   ======================================== */
@media (max-width: 480px) {
    /* === PROMISE SECTION === */
    .promise-section {
        padding: 50px 16px;
    }

    .promise-frame {
        border-radius: 20px;
        padding: 30px 20px;
    }

    /* Header */
    .promise-header {
        margin-bottom: 28px;
    }

    .promise-kicker {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .promise-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .promise-subtitle {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .promise-subtitle br {
        display: none;
    }

    /* Stack vertical sin offset */
    .promise-stack {
        --stack-offset: 0;
        --peek-left: 0;
        
        margin-left: 0;
        width: 100%;
        height: 450px;
        position: relative;
    }

    /* Cards apiladas verticalmente */
    .promise-card {
        border-radius: 18px;
    }

    .promise-card[data-pos="0"] {
        z-index: 3;
        transform: translateX(0) scale(1);
    }

    .promise-card[data-pos="1"] {
        z-index: 2;
        transform: translateX(0) translateY(20px) scale(0.95);
        opacity: 0.5;
    }

    .promise-card[data-pos="2"] {
        z-index: 1;
        transform: translateX(0) translateY(40px) scale(0.9);
        opacity: 0.3;
    }

    /* Overlay más compacto */
    .promise-card-overlay {
        padding: 28px 22px 24px;
    }

    .promise-card-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .promise-card-text {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .promise-card-btn {
        padding: 10px 18px;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    /* Flecha más pequeña y centrada abajo */
    .promise-arrow {
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(50%);
        width: 48px;
        height: 48px;
    }

    .promise-arrow:hover {
        transform: translateX(50%) scale(1.04);
    }

    .promise-arrow-icon {
        font-size: 1.8rem;
    }

    /* Simplificar transiciones en móvil */
    .promise-card {
        transition-duration: 600ms;
    }
}

/* ========================================
   MÓVIL GRANDE (481px - 767px)
   ======================================== */
@media (min-width: 481px) and (max-width: 767px) {
    /* === PROMISE SECTION === */
    .promise-section {
        padding: 60px 20px;
    }

    .promise-frame {
        border-radius: 28px;
        padding: 40px 30px;
    }

    .promise-header {
        margin-bottom: 32px;
    }

    .promise-kicker {
        font-size: 0.95rem;
    }

    .promise-title {
        font-size: 2rem;
    }

    .promise-subtitle {
        font-size: 0.92rem;
    }

    .promise-subtitle br {
        display: none;
    }

    /* Stack con offset reducido */
    .promise-stack {
        --stack-offset: 0;
        --peek-left: 0;
        
        margin-left: 0;
        width: 100%;
        height: 500px;
    }

    .promise-card {
        border-radius: 22px;
    }

    .promise-card[data-pos="0"] {
        transform: translateX(0) scale(1);
    }

    .promise-card[data-pos="1"] {
        transform: translateX(0) translateY(25px) scale(0.96);
        opacity: 0.6;
    }

    .promise-card[data-pos="2"] {
        transform: translateX(0) translateY(50px) scale(0.92);
        opacity: 0.4;
    }

    .promise-card-overlay {
        padding: 32px 26px 28px;
    }

    .promise-card-title {
        font-size: 1.7rem;
    }

    .promise-card-text {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .promise-card-btn {
        padding: 11px 20px;
        font-size: 0.78rem;
        letter-spacing: 2.5px;
    }

    .promise-arrow {
        right: 50%;
        top: auto;
        bottom: -22px;
        transform: translateX(50%);
        width: 52px;
        height: 52px;
    }

    .promise-arrow:hover {
        transform: translateX(50%) scale(1.04);
    }

    .promise-arrow-icon {
        font-size: 2rem;
    }
}

/* ========================================
   TABLET (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* === PROMISE SECTION === */
    .promise-section {
        padding: 70px 20px;
    }

    .promise-frame {
        border-radius: 36px;
        padding: 50px 40px;
    }

    .promise-header {
        margin-bottom: 35px;
    }

    .promise-kicker {
        font-size: 1rem;
    }

    .promise-title {
        font-size: 2.2rem;
    }

    .promise-subtitle {
        font-size: 0.95rem;
    }

    /* Stack con offset reducido para tablet */
    .promise-stack {
        --stack-offset: 200px;
        --peek-left: 100px;
        
        margin-left: var(--stack-offset);
        width: calc(100% - var(--stack-offset));
        height: 550px;
    }

    .promise-card {
        border-radius: 24px;
    }

    .promise-card[data-pos="1"] {
        transform: translateX(calc(var(--peek-left) - var(--stack-offset))) scale(1);
    }

    .promise-card-overlay {
        padding: 35px 30px 30px;
    }

    .promise-card-title {
        font-size: 1.8rem;
    }

    .promise-card-text {
        font-size: 0.98rem;
    }

    .promise-card-btn {
        padding: 11px 20px;
        font-size: 0.8rem;
    }

    .promise-arrow {
        right: -15px;
        width: 54px;
        height: 54px;
    }

    .promise-arrow-icon {
        font-size: 2.1rem;
    }
}

/* ========================================
   TABLET LANDSCAPE
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .promise-stack {
        --stack-offset: 250px;
        --peek-left: 120px;
        height: 520px;
    }

    .promise-frame {
        padding: 45px 40px;
    }
}

/* ========================================
   LAPTOP PEQUEÑO (1024px - 1199px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1199px) {
    /* === PROMISE SECTION === */
    .promise-section {
        padding: 75px 20px;
    }

    .promise-frame {
        border-radius: 42px;
        padding: 55px 50px;
    }

    .promise-header {
        margin-bottom: 36px;
    }

    .promise-kicker {
        font-size: 1.05rem;
    }

    .promise-title {
        font-size: 2.4rem;
    }

    .promise-subtitle {
        font-size: 0.98rem;
    }

    /* Stack con offset moderado */
    .promise-stack {
        --stack-offset: 320px;
        --peek-left: 160px;
        
        height: 600px;
    }

    .promise-card {
        border-radius: 26px;
    }

    .promise-card-overlay {
        padding: 38px 32px 32px;
    }

    .promise-card-title {
        font-size: 1.9rem;
    }

    .promise-card-text {
        font-size: 1rem;
    }

    .promise-card-btn {
        padding: 12px 21px;
        font-size: 0.82rem;
    }

    .promise-arrow {
        right: -16px;
        width: 56px;
        height: 56px;
    }
}

/* ========================================
   DESKTOP PEQUEÑO (1200px - 1439px)
   ======================================== */
@media (min-width: 1200px) and (max-width: 1439px) {
    /* === PROMISE SECTION === */
    .promise-frame {
        max-width: 1600px;
    }

    .promise-stack {
        --stack-offset: 380px;
        --peek-left: 180px;
        height: 620px;
    }

    .promise-card-overlay {
        padding: 39px 33px 33px;
    }
}





/* ========================================
   AJUSTES PARA PANTALLAS CON POCA ALTURA
   ======================================== */
@media (max-height: 700px) and (min-width: 768px) {
    .promise-section {
        padding: 50px 20px;
    }

    .promise-stack {
        height: 500px;
    }

    .promise-card-overlay {
        padding: 30px 28px 26px;
    }
}

/* ========================================
   OPTIMIZACIÓN ANIMACIONES PARA MÓVIL
   ======================================== */
@media (max-width: 767px) {
    /* Simplificar transiciones en móvil */
    .promise-card {
        transition-duration: 600ms;
        will-change: transform, opacity;
    }

    .promise-card-btn {
        transition-duration: 0.2s;
    }

    .promise-arrow {
        transition-duration: 0.2s;
    }

    /* Pausar animaciones si el usuario prefiere menos movimiento */
    @media (prefers-reduced-motion: reduce) {
        .promise-card,
        .promise-card-btn,
        .promise-arrow {
            transition-duration: 0.01ms !important;
            animation: none !important;
        }
    }
}

/* ========================================
   AJUSTE ESPECÍFICO PARA ORIENTACIÓN
   ======================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .promise-stack {
        height: 400px;
    }

    .promise-frame {
        padding: 25px 20px;
    }

    .promise-header {
        margin-bottom: 20px;
    }

    .promise-card-overlay {
        padding: 22px 20px 20px;
    }

    .promise-card-title {
        font-size: 1.3rem;
    }

    .promise-card-text {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}

/* =================================================================
   RESPONSIVE - ROOTS SECTION
   Mobile First - Breakpoints: 320px, 480px, 768px, 1024px, 1200px
   ================================================================= */

/* ========================================
   MÓVIL PEQUEÑO (hasta 480px)
   ======================================== */
@media (max-width: 480px) {
    /* === ROOTS SECTION === */
    .roots-section {
        min-height: auto;
        padding: 50px 0;
        background-attachment: scroll;
    }

    .roots-container {
        min-height: auto;
    }

    /* Grid a 1 columna */
    .roots-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 40px 20px 45px;
        min-height: auto;
    }

    /* Reordenar: imagen arriba, texto abajo */
    .roots-right {
        order: 1;
        margin-bottom: 35px;
    }

    .roots-left {
        order: 2;
    }

    /* Título sobre imagen más pequeño */
    .roots-title {
        font-size: 11px;
        letter-spacing: 2px;
        top: 0px;
        left: 16px;
    }

    /* Imagen más compacta */
    .roots-image-container {
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }

    /* Simplificar hover en móvil */
    .roots-image-container:hover {
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    }

    .roots-image-container:hover .roots-image {
        transform: scale(1.02);
    }

    /* Texto */
    .roots-subtitle {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .roots-subtitle span {
        font-size: 40px;
    }

    .roots-description {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 20px;
        max-width: 100%;
    }

    /* Lista más compacta */
    .roots-strategies {
        margin-bottom: 28px;
        max-width: 100%;
    }

    .roots-strategies li {
        margin-bottom: 14px;
    }

    .strategy-title {
        font-size: 16px;
        letter-spacing: 0.4px;
    }

    .strategy-text {
        font-size: 15px;
    }

    /* Botón */
    .roots-button {
        font-size: 11px;
        padding: 11px 22px;
        letter-spacing: 2px;
        max-width: 100%;
    }

    /* Simplificar delays en móvil */
    .roots-strategies li:nth-child(1),
    .roots-strategies li:nth-child(2),
    .roots-strategies li:nth-child(3),
    .roots-strategies li:nth-child(4) {
        transition-delay: 0.6s;
    }
}

/* ========================================
   MÓVIL GRANDE (481px - 767px)
   ======================================== */
@media (min-width: 481px) and (max-width: 767px) {
    /* === ROOTS SECTION === */
    .roots-section {
        min-height: auto;
        padding: 60px 0;
        background-attachment: scroll;
    }

    .roots-container {
        min-height: auto;
    }

    .roots-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 50px 30px 55px;
        min-height: auto;
    }

    .roots-right {
        order: 1;
        margin-bottom: 40px;
    }

    .roots-left {
        order: 2;
    }

    .roots-title {
        font-size: 12px;
        letter-spacing: 2.5px;
        top: 14px;
        left: 20px;
    }

    .roots-image-container {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .roots-subtitle {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .roots-subtitle span {
        font-size: 48px;
    }

    .roots-description {
        font-size: 15px;
        line-height: 1.68;
        margin-bottom: 22px;
        max-width: 100%;
    }

    .roots-strategies {
        margin-bottom: 30px;
        max-width: 100%;
    }

    .roots-strategies li {
        margin-bottom: 16px;
    }

    .strategy-title {
        font-size: 17px;
        letter-spacing: 0.5px;
    }

    .strategy-text {
        font-size: 16px;
    }

    .roots-button {
        font-size: 12px;
        padding: 11px 24px;
        letter-spacing: 2.5px;
    }

    .roots-strategies li:nth-child(1),
    .roots-strategies li:nth-child(2),
    .roots-strategies li:nth-child(3),
    .roots-strategies li:nth-child(4) {
        transition-delay: 0.65s;
    }
}

/* ========================================
   TABLET (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* === ROOTS SECTION === */
    .roots-section {
        padding: 70px 0;
    }

    .roots-container {
        min-height: auto;
    }

    /* Grid a 1 columna en tablet */
    .roots-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 60px 40px 60px;
        min-height: auto;
    }

    .roots-right {
        order: 1;
        margin-bottom: 45px;
    }

    .roots-left {
        order: 2;
        align-items: center;
        text-align: center;
    }

    .roots-title {
        font-size: 13px;
        letter-spacing: 3px;
        top: 16px;
        left: 25px;
    }

    .roots-image-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .roots-subtitle {
        font-size: 34px;
        text-align: center;
    }

    .roots-subtitle span {
        font-size: 54px;
    }

    .roots-description {
        font-size: 15px;
        line-height: 1.7;
        text-align: center;
        margin: 0 auto 24px;
        max-width: 600px;
    }

    .roots-strategies {
        margin: 0 auto 32px;
        max-width: 620px;
        text-align: left;
    }

    .strategy-title {
        font-size: 18px;
    }

    .strategy-text {
        font-size: 17px;
    }

    .roots-button {
        font-size: 12px;
        padding: 12px 26px;
    }
}

/* ========================================
   TABLET LANDSCAPE
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .roots-section {
        min-height: auto;
        padding: 60px 0;
    }

    .roots-content {
        padding: 50px 35px 55px;
    }

    .roots-image-container {
        aspect-ratio: 18 / 9;
    }
}

/* ========================================
   LAPTOP PEQUEÑO (1024px - 1199px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1199px) {
    /* === ROOTS SECTION === */
    .roots-section {
        padding: 75px 0;
    }

    .roots-container {
        min-height: calc(100vh - 150px);
    }

    /* Mantener grid 2 columnas pero ajustar proporciones */
    .roots-content {
        grid-template-columns: minmax(450px, 54%) minmax(350px, 46%);
        gap: 25px;
        padding: 70px 50px 60px;
        min-height: 550px;
    }

    .roots-right {
        order: 1;
    }

    .roots-left {
        order: 2;
        align-items: flex-start;
        text-align: left;
    }

    .roots-title {
        font-size: 13px;
        letter-spacing: 3.2px;
    }

    .roots-image-container {
        max-width: 100%;
    }

    .roots-subtitle {
        font-size: 34px;
    }

    .roots-subtitle span {
        font-size: 56px;
    }

    .roots-description {
        font-size: 15px;
        max-width: 100%;
    }

    .roots-strategies {
        max-width: 100%;
    }

    .strategy-title {
        font-size: 18px;
    }

    .strategy-text {
        font-size: 17px;
    }
}

/* ========================================
   DESKTOP PEQUEÑO (1200px - 1439px)
   ======================================== */
@media (min-width: 1200px) and (max-width: 1439px) {
    /* === ROOTS SECTION === */
    .roots-content {
        grid-template-columns: minmax(500px, 56%) minmax(380px, 44%);
        gap: 30px;
        padding: 85px 80px 65px;
    }

    .roots-image-container {
        max-width: 850px;
    }

    .roots-subtitle {
        font-size: 36px;
    }

    .roots-subtitle span {
        font-size: 60px;
    }

    .roots-description {
        font-size: 16px;
        max-width: 600px;
    }

    .roots-strategies {
        max-width: 650px;
    }

    .strategy-title {
        font-size: 19px;
    }

    .strategy-text {
        font-size: 17px;
    }
}



/* ========================================
   AJUSTES PARA PANTALLAS CON POCA ALTURA
   ======================================== */
@media (max-height: 700px) and (min-width: 768px) {
    .roots-section {
        min-height: auto;
        padding: 50px 0;
    }

    .roots-container {
        min-height: auto;
    }

    .roots-content {
        padding: 50px 40px 45px;
        min-height: auto;
    }
}

/* ========================================
   OPTIMIZACIÓN ANIMACIONES PARA MÓVIL
   ======================================== */
@media (max-width: 767px) {
    /* Simplificar transiciones en móvil */
    .roots-right,
    .roots-left,
    .roots-title,
    .roots-subtitle,
    .roots-description,
    .roots-button {
        transition-duration: 0.6s;
    }

    .roots-strategies li {
        transition-duration: 0.5s;
    }

    .roots-image {
        transition-duration: 0.4s;
    }

    /* Pausar animaciones si el usuario prefiere menos movimiento */
    @media (prefers-reduced-motion: reduce) {
        .roots-right,
        .roots-left,
        .roots-title,
        .roots-subtitle,
        .roots-description,
        .roots-strategies li,
        .roots-button,
        .roots-image {
            transition-duration: 0.01ms !important;
            animation: none !important;
        }

        .roots-section {
            background-attachment: scroll;
        }
    }
}

/* ========================================
   AJUSTE BACKGROUND ATTACHMENT
   ======================================== */
@media (max-width: 1023px) {
    .roots-section {
        background-attachment: scroll;
    }
}