/* ========================================================
   Axnia Group - Custom Styling & Avista Animations
   ======================================================== */

:root {
    --primary-color: #fd3f00;
    --secondary-color: #0d0e12;
    --accent-color: #fb0d1f;
    --accent-purple: #7a5af8;
    --bg-dark: #0b0c10;
    --card-bg: #14161e;
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--primary-color);
    color: #fff;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0c10;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(20, 22, 30, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(253, 63, 0, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px -5px rgba(253, 63, 0, 0.15);
}

/* Avista Signature Flip Button (.as-pr-btn-3) */
.as-pr-btn-3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 9999px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(253, 63, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.as-pr-btn-3 .btn-text-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 18px;
    line-height: 18px;
}

.as-pr-btn-3 .btn-text {
    display: block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-pr-btn-3 .btn-text::after {
    content: attr(data-back);
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    color: #0b0c10;
}

.as-pr-btn-3 .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-pr-btn-3:hover {
    background-color: #ffffff;
    color: #0b0c10;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(255, 255, 255, 0.25);
}

.as-pr-btn-3:hover .btn-text {
    transform: translateY(-100%);
}

.as-pr-btn-3:hover .btn-icon {
    transform: translateX(4px) rotate(-45deg);
    color: #0b0c10;
}

/* Secondary Ghost Button */
.as-sec-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.as-sec-btn:hover {
    border-color: var(--primary-color);
    background: rgba(253, 63, 0, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Huge Watermark Outline Text */
.hero-watermark {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(80px, 18vw, 240px);
    font-weight: 900;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
    font-family: var(--font-heading);
}

/* ========================================================
   HERO SLIDER — reconstruido
   Orden vertical: contenido (título, subtítulo, botón)
   → imagen ABAJO → flechas a los lados + puntos.
   La imagen usa object-fit: contain por defecto, así nunca
   se ve aplastada; el marco reserva la proporción con
   aspect-ratio y topes de altura para que todo quepa.
   ======================================================== */

#hero-slider,
.hero-slider-track,
.hero-slide {
    touch-action: pan-y;
}

/* ---------- Tipografía responsiva con clamp() ---------- */

.text-clamp {
    font-size: clamp(1rem, 1.5vw + 1rem, 1.75rem);
    line-height: 1.4;
}

/* Ajustes específicos para el hero slider */
.hero-slide-title span.text-clamp {
    font-size: clamp(1.75rem, 5.4vw, 4.25rem);
    line-height: 1.1;
}

.hero-slide-text span.text-clamp {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    line-height: 1.5;
}

/* El track apila todas las slides en la misma celda del grid,
   así ninguna diapositiva oculta ocupa altura extra. */
.hero-slider-track {
    display: grid;
    width: 100%;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-x: clip;
}

.hero-slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

#project-hero-slider,
#service-hero-slider,
.project-slider-track {
    touch-action: pan-y;
}

/* La diapositiva activa es la única visible y la única interactuable */
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

/* Si el JS no llega a ejecutarse (o se desactiva), la 1ª slide sigue visible.
   Con :not(.is-ready) el fallback solo aplica SIN javascript; cuando el JS
   toma el control, .hero-slide.active manda. */
#hero-slider:not(.is-ready) .hero-slide:first-of-type {
    opacity: 1;
    visibility: visible;
}

/* ---------- Contenido: título, subtítulo y botón ---------- */

.hero-slide-title {
    font-size: clamp(1.75rem, 5.4vw, 4.25rem);
    color: #ffffff;
}

.hero-slide-text {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    color: #cbd5e1;
}

/* ---------- Imagen: abajo, sin deformarse ---------- */

/* El marco se ajusta a la proporción real de la imagen (sin deformarla).
   contain: la imagen entra entera, sin aplastarse.
   cover:   llena el marco y recorta por los lados. */
.hero-slide-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.22);
}

.hero-slide-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(42vh, 420px);
    object-fit: contain;
}

/* cover = la imagen llena el marco y se recorta por los lados */
html[data-slider-fit="cover"] .hero-slide-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
}

html[data-slider-fit="cover"] .hero-slide-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* Etiqueta sobre la imagen */
.hero-slide-badge {
    position: absolute;
    left: 0.875rem;
    bottom: 0.875rem;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    max-width: calc(100% - 1.75rem);
}

.hero-slide-badge__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Controles: flechas a los lados + puntos ---------- */

.slider-arrow {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    opacity: 0.85;
    transition: background-color 0.25s ease, border-color 0.25s ease,
                transform 0.25s ease, opacity 0.25s ease;
}

.slider-arrow:hover {
    opacity: 1;
    background: var(--primary-color);
    border-color: transparent;
}

#slider-prev:hover {
    transform: translateX(-2px);
}

#slider-next:hover {
    transform: translateX(2px);
}

.slider-arrow:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Puntos: el activo se estira y toma el color de marca */
.slider-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.28);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

.slider-dot.is-active {
    width: 1.75rem;
    background: var(--primary-color);
}

.slider-dot:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Contador "01 / 05" */
.slider-counter {
    min-width: 3.25rem;
    text-align: center;
}

/* ---------- Ajustes por tamaño de pantalla ---------- */

/* MÓVIL Y TABLETA (< 1024px): el área de imagen necesita ALTO explícito.

   En escritorio el grid es de 2 columnas, así que .hero-slide-media comparte
   fila con .hero-slide-content: se estira hasta la altura del texto y su hijo
   `position:absolute; inset:0` cubre bien el espacio.

   En móvil el grid pasa a UNA columna, de modo que el área de imagen cae en su
   propia fila. Sus dos hijos son absolutos, así que sin altura propia collapse
   a 0 y la imagen se ve aplastada o directamente no aparece. Por eso se le da
   una altura explícita y se hace que la imagen la rellene sin deformarse. */
@media (max-width: 1023px) {
    /* La sección del hero es min-h-[100svh] con overflow-hidden: si el
       contenido no cabe, se RECORTA. El padding vertical de py-20 (80px
       arriba y abajo) se come demasiado alto en móvil, así que se reduce.
       Se usa un selector mas especifico que .py-20 de Tailwind. */
    .hero-slide .hero-slide-content {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    .hero-slide-media {
        /* En móvil la imagen ocupa TODO el alto restante (flex 1) */
        flex: 1 1 0%;
        min-height: 0;
        padding: 0 1.25rem 1.25rem;
    }

    /* contain = la imagen entra entera respetando su proporción */
    .hero-slide-media img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* La etiqueta inferior se pega a los bordes en pantallas estrechas */
    .hero-slide-media > .absolute.bottom-8 {
        bottom: 0.75rem;
        left: 1rem;
        right: 1rem;
    }
}

/* Optimización exhaustiva para móviles y tabletas: Ajuste al viewport 100% sin desbordes */
@media (max-width: 1023px) {
    .hero-section {
        height: 100svh !important;
        min-height: 100svh !important;
        max-height: 100svh !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .hero-slider-track {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        display: grid !important;
        overflow: hidden !important;
    }

    .hero-slide {
        grid-area: 1 / 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero-slide-grid {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.35rem !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        padding-top: 0.6rem !important;
        padding-bottom: 3rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hero-slide .hero-slide-content {
        padding-top: 0 !important;
        padding-bottom: 0.25rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    .hero-slide-title {
        font-size: clamp(1.35rem, 5.2vw, 2.1rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 0.4rem !important;
    }

    .hero-slide-text {
        font-size: clamp(0.78rem, 2.9vw, 0.92rem) !important;
        line-height: 1.45 !important;
        margin-bottom: 0.85rem !important;
        display: block !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        max-height: none !important;
    }

    .hero-slide-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-slide-actions .hero-btn-action,
    .hero-slide-actions .as-pr-btn-3 {
        padding: 9px 18px !important;
        font-size: 10.5px !important;
        letter-spacing: 0.5px !important;
    }

    .hero-slide-actions .as-sec-btn {
        padding: 8px 16px !important;
        font-size: 10.5px !important;
        letter-spacing: 0.5px !important;
    }

    .hero-slide-media {
        position: relative !important;
        width: 100% !important;
        flex: 1 1 0% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0.15rem 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .hero-media-wrapper,
    .hero-media-showcase {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        position: relative !important;
    }

    .hero-slide-media img,
    .hero-media-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45)) !important;
    }

    .slider-arrow {
        display: none !important;
    }

    .hero-slider-dots {
        bottom: 0.85rem !important;
        z-index: 30 !important;
    }

    .slider-counter {
        bottom: 0.85rem !important;
        right: 1rem !important;
        z-index: 30 !important;
    }
}

/* Pantallas de móvil pequeñas en vertical (<= 640px o altura <= 740px): Ajuste fino para que TODO encaje */
@media (max-width: 639px), (max-height: 740px) and (max-width: 1023px) {
    .hero-slide-grid {
        padding-top: 0.4rem !important;
        padding-bottom: 2.65rem !important;
    }

    .hero-anim-badge {
        padding: 0.25rem 0.65rem !important;
        font-size: 9.5px !important;
        margin-bottom: 0.35rem !important;
    }

    .hero-slide-title {
        font-size: clamp(1.2rem, 4.8vw, 1.7rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 0.35rem !important;
    }

    .hero-slide-text {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.65rem !important;
    }

    .hero-slide-media {
        max-height: none !important;
        padding: 0.15rem 0.75rem !important;
    }

    .hero-media-badge {
        display: none !important; /* Evita que la tarjeta destacada empuje la imagen o se corte en teléfonos */
    }
}

/* Pantallas muy bajas en vertical (móvil pequeño, laptop apaisada): el titular,
   la imagen y los controles ceden altura para que todo siga entrando
   en una sola vista. */
@media (max-height: 860px) {
    .hero-slide-img {
        max-height: 30vh;
    }

    .hero-slide-title {
        font-size: clamp(1.5rem, 4.4vw, 2.5rem);
    }

    .hero-slide-text {
        font-size: 0.95rem;
    }
}

@media (max-height: 700px) {
    .hero-slide-img {
        max-height: 24vh;
    }

    .hero-slide-title {
        font-size: clamp(1.35rem, 4vw, 2rem);
    }
}

@media (max-width: 639px) {
    .hero-slide-img {
        max-height: 28vh;
    }

    .hero-slide-frame {
        border-radius: 1.25rem;
    }

    .slider-arrow {
        width: 2.5rem;
        height: 2.5rem;
        opacity: 0.9;
    }

    .hero-slider-nav {
        gap: 0.75rem;
    }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .hero-slider-track,
    .hero-slide {
        transition: none !important;
    }
}

/* Marquee Infinite Animation */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-content-reverse {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll-marquee-reverse 25s linear infinite;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes scroll-marquee-reverse {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.marquee-container:hover .marquee-content,
.marquee-container:hover .marquee-content-reverse {
    animation-play-state: paused;
}

/* Pulsing Status Dot */
.pulsing-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #10b981;
    opacity: 0.75;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(2); opacity: 0; }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(253, 63, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.06s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.custom-cursor.active {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: #ffffff;
    mix-blend-mode: difference;
}

.custom-cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.6);
    border-color: #ffffff;
}

/* Accordion Item Styling */
.as-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.as-accordion-item:hover {
    border-color: rgba(253, 63, 0, 0.3);
}

.as-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.3s ease;
}

.as-accordion-trigger:hover,
.as-accordion-item.active .as-accordion-trigger {
    color: var(--primary-color);
}

.as-accordion-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s ease;
}

.as-accordion-item.active .as-accordion-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(45deg);
}

.as-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.as-accordion-item.active .as-accordion-content {
    max-height: 600px;
    opacity: 1;
    padding-bottom: 24px;
}

/* ========================================================
   TESTIMONIALS / COMENTARIOS
   Carrusel lateral + panel de foto + formulario
   ======================================================== */

.tst-carousel {
    position: relative;
}

/* Recorta el desbordamiento y deja asomar los comentarios vecinos */
.tst-viewport {
    position: relative;
    overflow: hidden;
    padding: 6px;
    touch-action: pan-y;
}

.tst-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.tst-card {
    flex: 0 0 86%;
    min-width: 0;
    margin-inline: 7%;
    cursor: pointer;
    opacity: 0.45;
    transform: scale(0.95);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tst-card.is-active {
    opacity: 1;
    transform: scale(1);
}

.tst-card.is-active .tst-card-inner {
    border-color: rgba(253, 63, 0, 0.45) !important;
    box-shadow: 0 20px 40px -15px rgba(253, 63, 0, 0.25), 0 0 0 1px rgba(253, 63, 0, 0.2);
}

.tst-card:hover {
    opacity: 0.9;
}

.tst-card.is-active:hover {
    opacity: 1;
}

.tst-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 6px;
    border-radius: 1.5rem;
}

/* Flechas del carrusel */
.tst-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 9, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(12px);
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tst-nav:hover {
    background-color: var(--primary-color);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 28px -5px rgba(253, 63, 0, 0.45);
}

.tst-nav--prev { left: -6px; }
.tst-nav--next { right: -6px; }
.tst-nav--prev:hover { transform: translateY(-50%) translateX(-3px) scale(1.05); }
.tst-nav--next:hover { transform: translateY(-50%) translateX(3px) scale(1.05); }
.tst-nav:active { transform: translateY(-50%) scale(0.95); }

/* Paginación */
.tst-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    transition: width 0.35s ease, background-color 0.35s ease;
    cursor: pointer;
}

.tst-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.tst-dot.is-active {
    width: 26px;
    background: var(--primary-color);
}

/* Selector de estrellas del formulario */
.tst-star {
    font-size: 1.55rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    transition: color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.tst-star.is-on {
    color: #fbbf24;
}

.tst-star:hover {
    transform: scale(1.18);
}

/* Vista previa de la foto de perfil */
.tst-avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fd3f00, #7a5af8);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.tst-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[data-theme="light"] .tst-nav {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    color: #111827;
}

html[data-theme="light"] .tst-dot {
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 1023px) {
    .tst-nav {
        width: 34px;
        height: 34px;
    }
    .tst-card {
        flex-basis: 92%;
        margin-inline: 4%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tst-track,
    .tst-card {
        transition: none;
    }
}

/* Project Filter Tabs */
.filter-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(253, 63, 0, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}

/* ========================================================
   SCROLL ANIMATIONS — Typewriter & Section Reveal
   ======================================================== */

/* Typewriter effect for section titles */
.scroll-title-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    font-family: var(--font-heading);
}

.scroll-title-text .char {
    color: var(--text-initial, #cccccc);
    display: inline-block;
    animation: revealLetter linear both;
    animation-timeline: view();
    /* Animation completes when title area is fully visible (not whole section) */
    animation-range: entry 0% entry 50%;
}

@keyframes revealLetter {
    from { color: var(--text-initial); }
    to { color: var(--text-final); }
}

/* Light/Dark mode colors for typewriter */
:root {
    --text-initial: #cccccc;  /* Plomo claro */
    --text-final: #000000;    /* Negro */
}

html[data-theme="light"] {
    --text-initial: #cccccc;  /* Plomo claro */
    --text-final: #000000;    /* Negro */
}

html[data-theme="dark"] {
    --text-initial: #333336;  /* Plomo oscuro */
    --text-final: #ffffff;    /* Blanco */
}

/* Section reveal animations using CSS Scroll-driven Animations */
.card-section {
    /* Base styles for scroll-driven animation */
    animation-timeline: view();
    /* Animation runs from when top enters viewport until element is fully in view */
    animation-range: entry 0% entry 100%;
    /* Keep final state after animation completes (prevents fade-out on scroll past) */
    animation-fill-mode: forwards;
    will-change: transform, opacity, filter;
    /* Ensure initial state matches keyframe "from" */
    opacity: 0;
    transform: translateY(120px) scale(0.95);
    filter: blur(4px);
}

/* Variant 1: Slow float up from bottom */
.effect-slow-float {
    animation-name: slowFloat;
}

@keyframes slowFloat {
    from {
        opacity: 0;
        transform: translateY(120px) scale(0.95);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Variant 2: Slow slide from left */
.effect-slow-slide {
    animation-name: slowSlide;
    /* Keep final state after animation completes */
    animation-fill-mode: forwards;
    /* Override initial state for slide variant */
    opacity: 0;
    transform: translateX(-80px);
    filter: none;
}

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

/* Variant 3: Fade in only */
.effect-fade-in {
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    opacity: 0;
    transform: none;
    filter: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Variant 4: Scale up */
.effect-scale-up {
    animation-name: scaleUp;
    animation-fill-mode: forwards;
    opacity: 0;
    transform: scale(0.9);
    filter: none;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================================
   JAVASCRIPT FALLBACK STYLES (for non-Chrome browsers)
   ======================================================== */

/* Typewriter fallback: initially plomo, then revealed via JS */
@supports not (animation-timeline: view()) {
    .scroll-title-text .char {
        color: var(--text-initial);
        transition: color 0.15s ease-out;
    }
    
    .scroll-title-text .char.char--revealed {
        color: var(--text-final);
    }
}

/* Section reveal fallback: initially hidden/blurred, then revealed via JS */
@supports not (animation-timeline: view()) {
    .card-section.scroll-reveal-init {
        opacity: 0;
        transform: translateY(120px) scale(0.95);
        filter: blur(4px);
        transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    filter 1.8s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform, opacity, filter;
    }
    
    .card-section.scroll-reveal-init.scroll-reveal-active {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    
    /* Slide variant */
    .card-section.effect-slow-slide.scroll-reveal-init {
        opacity: 0;
        transform: translateX(-80px);
        filter: none;
    }
    
    .card-section.effect-slow-slide.scroll-reveal-init.scroll-reveal-active {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Fade variant */
    .card-section.effect-fade-in.scroll-reveal-init {
        opacity: 0;
        transform: none;
    }
    
    .card-section.effect-fade-in.scroll-reveal-init.scroll-reveal-active {
        opacity: 1;
    }
    
    /* Scale variant */
    .card-section.effect-scale-up.scroll-reveal-init {
        opacity: 0;
        transform: scale(0.9);
    }
    
    .card-section.effect-scale-up.scroll-reveal-init.scroll-reveal-active {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card-section,
    .scroll-title-text .char {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Hero section should not have the card-section animation */
#home.card-section,
#home.effect-slow-float,
#home.effect-slow-slide {
    animation: none !important;
    margin-bottom: 0;
}

/* ========================================================
   HERO SLIDER TRANSITION EFFECTS
   ======================================================== */

/* Base transition duration */
.hero-slide {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

/* ========================================================
   1. FADE (default) - Crossfade
   ======================================================== */
.hero-slide.fade-enter {
    opacity: 1;
    z-index: 10;
}
.hero-slide.fade-leave {
    opacity: 0;
    z-index: 5;
}

/* ========================================================
   2. SLIDE - Horizontal slide
   ======================================================== */
.hero-slide.slide-enter {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}
.hero-slide.slide-leave {
    opacity: 0;
    z-index: 5;
}
.hero-slide.slide-enter[style*="prev"] {
    transform: translateX(-100%);
}
.hero-slide.slide-leave[style*="next"] {
    transform: translateX(100%);
}

/* ========================================================
   3. ZOOM - Scale zoom
   ======================================================== */
.hero-slide.zoom-enter {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}
.hero-slide.zoom-leave {
    opacity: 0;
    transform: scale(1.1);
    z-index: 5;
}

/* ========================================================
   4. FLIP - 3D Flip
   ======================================================== */
.hero-slide.flip-enter {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
    z-index: 20;
}
.hero-slide.flip-leave {
    opacity: 0;
    transform: perspective(1000px) rotateY(90deg);
    z-index: 10;
}

/* ========================================================
   5. CUBE - 3D Cube rotation
   ======================================================== */
.hero-slide.cube-enter {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateZ(0);
    z-index: 20;
}
.hero-slide.cube-leave {
    opacity: 0.5;
    transform: perspective(1000px) rotateY(-90deg) translateZ(-50%);
    z-index: 10;
}

/* ========================================================
   6. COVERFLOW - 3D Coverflow
   ======================================================== */
.hero-slide.coverflow-enter {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateZ(0) scale(1);
    z-index: 20;
    filter: brightness(1);
}
.hero-slide.coverflow-leave {
    opacity: 0.3;
    transform: perspective(1000px) rotateY(60deg) translateZ(-200px) scale(0.85);
    z-index: 10;
    filter: brightness(0.7);
}

/* ========================================================
   7. CARDS - Stacked cards
   ======================================================== */
.hero-slide.cards-enter {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    z-index: 20;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
}
.hero-slide.cards-leave {
    opacity: 0;
    transform: translateY(100px) scale(0.9) rotateX(15deg);
    z-index: 10;
}

/* ========================================================
   8. CREATIVE - Custom creative effect
   ======================================================== */
.hero-slide.creative-enter {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    z-index: 20;
    filter: blur(0) brightness(1);
}
.hero-slide.creative-leave {
    opacity: 0;
    transform: scale(1.2) rotate(3deg);
    z-index: 10;
    filter: blur(10px) brightness(1.5);
}

/* ========================================================
   9. FADE IN-OUT - Crossfade with overlap
   ======================================================== */
.hero-slide.fade-in-out-enter {
    opacity: 1;
    z-index: 15;
    animation: fadeInOutEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-slide.fade-in-out-leave {
    opacity: 0;
    z-index: 10;
    animation: fadeInOutLeave 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInOutEnter {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInOutLeave {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.98); }
}

/* ========================================================
   10. SLIDE UP - Vertical slide up
   ======================================================== */
.hero-slide.slide-up-enter {
    opacity: 1;
    transform: translateY(0);
    z-index: 15;
}
.hero-slide.slide-up-leave {
    opacity: 0;
    transform: translateY(-100%);
    z-index: 10;
}

/* ========================================================
   11. SLIDE DOWN - Vertical slide down
   ======================================================== */
.hero-slide.slide-down-enter {
    opacity: 1;
    transform: translateY(0);
    z-index: 15;
}
.hero-slide.slide-down-leave {
    opacity: 0;
    transform: translateY(100%);
    z-index: 10;
}

/* ========================================================
   12. PUSH - Push effect
   ======================================================== */
.hero-slide.push-enter {
    opacity: 1;
    transform: translateX(0);
    z-index: 15;
}
.hero-slide.push-leave {
    opacity: 1;
    transform: translateX(-100%);
    z-index: 10;
}

/* ========================================================
   13. REVEAL - Reveal from behind
   ======================================================== */
.hero-slide.reveal-enter {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}
.hero-slide.reveal-leave {
    opacity: 1;
    transform: translateX(100%);
    z-index: 15;
}

/* ========================================================
   14. TURN - Page turn
   ======================================================== */
.hero-slide.turn-enter {
    opacity: 1;
    transform: perspective(1500px) rotateY(0deg);
    transform-origin: left center;
    z-index: 20;
}
.hero-slide.turn-leave {
    opacity: 0.5;
    transform: perspective(1500px) rotateY(-120deg);
    transform-origin: left center;
    z-index: 10;
}

/* ========================================================
   15. CAROUSEL - Rotating carousel
   ======================================================== */
.hero-slide.carousel-enter {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateZ(300px);
    z-index: 20;
}
.hero-slide.carousel-leave {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg) translateZ(0);
    z-index: 10;
}

/* ========================================================
   16. COVER - Cover flow
   ======================================================== */
.hero-slide.cover-enter {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 15;
}
.hero-slide.cover-leave {
    opacity: 0;
    transform: translateX(-30%) scale(0.85);
    z-index: 10;
}

/* ========================================================
   17. FLOW - Continuous flow
   ======================================================== */
.hero-slide.flow-enter {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 15;
    filter: blur(0);
}
.hero-slide.flow-leave {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    z-index: 10;
    filter: blur(5px);
}

/* ========================================================
   18. STACK - Stacked effect
   ======================================================== */
.hero-slide.stack-enter {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    z-index: 20;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.hero-slide.stack-leave {
    opacity: 0;
    transform: translateY(150px) scale(0.8) rotate(-3deg);
    z-index: 10;
}

/* ========================================================
   Navigation Arrow Styles
   ======================================================== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(8, 9, 13, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: var(--primary-color);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px -5px rgba(253, 63, 0, 0.6);
}

.slider-arrow:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.slider-arrow--prev { left: 24px; }
.slider-arrow--next { right: 24px; }

@media (max-width: 1023px) {
    .slider-arrow {
        width: 48px;
        height: 48px;
    }
    .slider-arrow--prev { left: 12px; }
    .slider-arrow--next { right: 12px; }
}

@media (max-width: 640px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    .slider-arrow--prev { left: 8px; }
    .slider-arrow--next { right: 8px; }
}

/* ========================================================
   Dots Navigation
   ======================================================== */
.hero-slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slider-dot.is-active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 9999px;
    box-shadow: 0 0 15px rgba(253, 63, 0, 0.6);
}

/* ========================================================
   Counter
   ======================================================== */
.slider-counter {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* ========================================================
   Reduced Motion
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none !important;
        animation: none !important;
    }
    .hero-slide.fade-enter,
    .hero-slide.slide-enter,
    .hero-slide.zoom-enter,
    .hero-slide.flip-enter,
    .hero-slide.cube-enter,
    .hero-slide.coverflow-enter,
    .hero-slide.cards-enter,
    .hero-slide.creative-enter,
    .hero-slide.fade-in-out-enter,
    .hero-slide.slide-up-enter,
    .hero-slide.slide-down-enter,
    .hero-slide.push-enter,
    .hero-slide.reveal-enter,
    .hero-slide.turn-enter,
    .hero-slide.carousel-enter,
    .hero-slide.cover-enter,
    .hero-slide.flow-enter,
    .hero-slide.stack-enter {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}

/* ========================================================
   SEARCH MODAL - Real-time Search Results
   ======================================================== */

#search-modal {
    animation: searchModalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-title .search-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper:focus-within {
    transform: scale(1.01);
}

#search-input {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(253, 63, 0, 0.15);
}

#search-loading {
    animation: spin 1s linear infinite;
}

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

#search-results {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s;
}

#search-results.opacity-100 {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.search-result-item {
    animation: searchItemIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.search-result-item:nth-child(1) { animation-delay: 50ms; }
.search-result-item:nth-child(2) { animation-delay: 100ms; }
.search-result-item:nth-child(3) { animation-delay: 150ms; }
.search-result-item:nth-child(4) { animation-delay: 200ms; }
.search-result-item:nth-child(5) { animation-delay: 250ms; }
.search-result-item:nth-child(6) { animation-delay: 300ms; }
.search-result-item:nth-child(7) { animation-delay: 350ms; }
.search-result-item:nth-child(8) { animation-delay: 400ms; }

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

.search-result-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-result-item:focus-visible,
.search-result-item[aria-selected="true"] {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--primary-color) !important;
}

.search-result-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-result-item:hover .search-result-icon,
.search-result-item[aria-selected="true"] .search-result-icon {
    transform: scale(1.1) rotate(5deg);
}

.search-result-type {
    transition: all 0.2s ease;
}

.search-result-item:hover .search-result-type {
    transform: translateX(4px);
}

.search-result-highlight {
    transition: opacity 0.2s ease;
}

mark {
    background: rgba(253, 63, 0, 0.3);
    color: var(--primary-color);
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 600;
}

.search-suggestion {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-suggestion:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 63, 0, 0.3);
}

/* Search Title Animation */
.search-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: searchWordIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-word[data-word="0"] { animation-delay: 0ms; }
.search-word[data-word="1"] { animation-delay: 100ms; }
.search-word[data-word="2"] { animation-delay: 200ms; }

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

/* Search Suggestions */
.search-suggestion {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-suggestion:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 63, 0, 0.3);
}

/* Search No Results */
.search-no-results svg {
    animation: float 3s ease-in-out infinite;
}

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

/* Mobile Search Adjustments */
@media (max-width: 640px) {
    #search-modal {
        padding: 4px;
    }
    
    .search-title {
        font-size: 1.75rem !important;
    }
    
    #search-input {
        font-size: 1rem !important;
        padding: 1rem 1rem 1rem 3rem !important;
    }
    
    .search-icon {
        left: 1rem !important;
    }
    
    .search-suggestion {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* ========================================================
   SLIDERS SECUNDARIOS (servicio / proyecto) — mismos 18 efectos, independientes
   Cada slider lee su propio data-transition y cada slide su data-transition.
   Se reutilizan las mismas curvas/duraciones que el hero.
   ======================================================== */
.service-slide, .project-slide {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
}
.service-slide.active, .project-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}
:is(.service-slide, .project-slide).fade-enter { opacity: 1; z-index: 10; }
:is(.service-slide, .project-slide).fade-leave { opacity: 0; z-index: 5; }
:is(.service-slide, .project-slide).slide-enter { opacity: 1; transform: translateX(0); z-index: 10; }
:is(.service-slide, .project-slide).slide-leave { opacity: 0; z-index: 5; }
:is(.service-slide, .project-slide).zoom-enter { opacity: 1; transform: scale(1); z-index: 10; }
:is(.service-slide, .project-slide).zoom-leave { opacity: 0; transform: scale(1.1); z-index: 5; }
:is(.service-slide, .project-slide).flip-enter { opacity: 1; transform: perspective(1000px) rotateY(0deg); z-index: 20; }
:is(.service-slide, .project-slide).flip-leave { opacity: 0; transform: perspective(1000px) rotateY(90deg); z-index: 10; }
:is(.service-slide, .project-slide).cube-enter { opacity: 1; transform: perspective(1000px) rotateY(0deg) translateZ(0); z-index: 20; }
:is(.service-slide, .project-slide).cube-leave { opacity: 0.5; transform: perspective(1000px) rotateY(-90deg) translateZ(-50%); z-index: 10; }
:is(.service-slide, .project-slide).coverflow-enter { opacity: 1; transform: perspective(1000px) rotateY(0deg) translateZ(0) scale(1); z-index: 20; filter: brightness(1); }
:is(.service-slide, .project-slide).coverflow-leave { opacity: 0.3; transform: perspective(1000px) rotateY(60deg) translateZ(-200px) scale(0.85); z-index: 10; filter: brightness(0.7); }
:is(.service-slide, .project-slide).cards-enter { opacity: 1; transform: translateY(0) scale(1) rotateX(0); z-index: 20; }
:is(.service-slide, .project-slide).cards-leave { opacity: 0; transform: translateY(100px) scale(0.9) rotateX(15deg); z-index: 10; }
:is(.service-slide, .project-slide).creative-enter { opacity: 1; transform: scale(1) rotate(0deg); z-index: 20; filter: blur(0) brightness(1); }
:is(.service-slide, .project-slide).creative-leave { opacity: 0; transform: scale(1.2) rotate(3deg); z-index: 10; filter: blur(10px) brightness(1.5); }
:is(.service-slide, .project-slide).fade-in-out-enter { opacity: 1; z-index: 15; animation: fadeInOutEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
:is(.service-slide, .project-slide).fade-in-out-leave { opacity: 0; z-index: 10; animation: fadeInOutLeave 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
:is(.service-slide, .project-slide).slide-up-enter { opacity: 1; transform: translateY(0); z-index: 15; }
:is(.service-slide, .project-slide).slide-up-leave { opacity: 0; transform: translateY(-100%); z-index: 10; }
:is(.service-slide, .project-slide).slide-down-enter { opacity: 1; transform: translateY(0); z-index: 15; }
:is(.service-slide, .project-slide).slide-down-leave { opacity: 0; transform: translateY(100%); z-index: 10; }
:is(.service-slide, .project-slide).push-enter { opacity: 1; transform: translateX(0); z-index: 15; }
:is(.service-slide, .project-slide).push-leave { opacity: 1; transform: translateX(-100%); z-index: 10; }
:is(.service-slide, .project-slide).reveal-enter { opacity: 1; transform: translateX(0); z-index: 10; }
:is(.service-slide, .project-slide).reveal-leave { opacity: 1; transform: translateX(100%); z-index: 15; }
:is(.service-slide, .project-slide).turn-enter { opacity: 1; transform: perspective(1500px) rotateY(0deg); transform-origin: left center; z-index: 20; }
:is(.service-slide, .project-slide).turn-leave { opacity: 0.5; transform: perspective(1500px) rotateY(-120deg); transform-origin: left center; z-index: 10; }
:is(.service-slide, .project-slide).carousel-enter { opacity: 1; transform: perspective(1000px) rotateY(0deg) translateZ(300px); z-index: 20; }
:is(.service-slide, .project-slide).carousel-leave { opacity: 0; transform: perspective(1000px) rotateY(-90deg) translateZ(0); z-index: 10; }
:is(.service-slide, .project-slide).cover-enter { opacity: 1; transform: translateX(0) scale(1); z-index: 15; }
:is(.service-slide, .project-slide).cover-leave { opacity: 0; transform: translateX(-30%) scale(0.85); z-index: 10; }
:is(.service-slide, .project-slide).flow-enter { opacity: 1; transform: translateX(0) scale(1); z-index: 15; filter: blur(0); }
:is(.service-slide, .project-slide).flow-leave { opacity: 0; transform: translateX(-50%) scale(0.9); z-index: 10; filter: blur(5px); }
:is(.service-slide, .project-slide).stack-enter { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); z-index: 20; }
:is(.service-slide, .project-slide).stack-leave { opacity: 0; transform: translateY(150px) scale(0.8) rotate(-3deg); z-index: 10; }
@media (prefers-reduced-motion: reduce) {
    .service-slide, .project-slide { transition: none !important; animation: none !important; }
}

/* ==========================================================
   SHOWCASE DE PROYECTOS — 2 TIRAS CONTINUAS INFINITAS
   ========================================================== */
.projects-marquee-wrapper {
    overflow: hidden;
    user-select: none;
    display: flex;
    position: relative;
    width: 100%;
}

.projects-marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 1.25rem;
    width: max-content;
    will-change: transform;
    animation: projects-scroll-left 34s linear infinite;
}

.projects-marquee-content-reverse {
    display: flex;
    flex-shrink: 0;
    gap: 1.25rem;
    width: max-content;
    will-change: transform;
    animation: projects-scroll-right 34s linear infinite;
}

.projects-marquee-wrapper:hover .projects-marquee-content,
.projects-marquee-wrapper:hover .projects-marquee-content-reverse,
.projects-marquee-wrapper:active .projects-marquee-content,
.projects-marquee-wrapper:active .projects-marquee-content-reverse,
.projects-marquee-wrapper.is-paused .projects-marquee-content,
.projects-marquee-wrapper.is-paused .projects-marquee-content-reverse {
    animation-play-state: paused;
}

@keyframes projects-scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes projects-scroll-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Tarjeta individual del muro / tira de proyectos */
.project-strip-card {
    position: relative;
    flex-shrink: 0;
    width: 290px;
    height: 400px;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    background-color: #12141c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px -5px rgba(0, 0, 0, 0.65);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 639px) {
    .project-strip-card {
        width: 255px !important;
        height: 355px !important;
        border-radius: 1.1rem !important;
    }
}

@media (min-width: 640px) {
    .project-strip-card {
        width: 325px;
        height: 425px;
        border-radius: 1.5rem;
    }
}

.project-strip-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(253, 63, 0, 0.65);
    box-shadow: 0 20px 40px -10px rgba(253, 63, 0, 0.35);
}

.project-card-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.project-strip-card img,
.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}

.project-strip-card:hover img,
.project-strip-card:hover .project-card-img {
    transform: scale(1.08);
    filter: brightness(1.06);
}

/* Capa de contenido y gradiente */
.project-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(9, 10, 15, 0.98) 0%, rgba(9, 10, 15, 0.85) 48%, rgba(9, 10, 15, 0.25) 75%, transparent 100%);
    transition: background 0.3s ease;
}

@media (min-width: 640px) {
    .project-card-overlay {
        padding: 1.5rem;
    }
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.project-card-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-size: 10.5px;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fd3f00;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.project-card-year {
    font-size: 10.5px;
    font-family: var(--font-mono, monospace);
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.project-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-card-title {
    font-family: var(--font-heading, sans-serif);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

@media (min-width: 640px) {
    .project-card-title {
        font-size: 1.05rem;
    }
}

.project-strip-card:hover .project-card-title {
    color: #fd3f00;
}

.project-card-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.92;
    transition: color 0.3s ease;
}

.project-card-action {
    padding-top: 0.25rem;
}

.project-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    background: #fd3f00;
    color: #ffffff;
    font-family: var(--font-heading, sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(253, 63, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-btn-icon {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.3s ease;
}

.project-strip-card:hover .project-card-btn,
.project-strip-card:active .project-card-btn {
    background: #e03700;
    box-shadow: 0 8px 24px rgba(253, 63, 0, 0.65);
    transform: translateY(-2px);
}

.project-strip-card:hover .project-card-btn-icon {
    transform: translateX(4px);
}

/* Bordes degradados difuminados para las tiras */
.projects-fade-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4rem;
    background: linear-gradient(to right, var(--t-bg, #0b0c10), transparent);
    z-index: 20;
    pointer-events: none;
}

.projects-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4rem;
    background: linear-gradient(to left, var(--t-bg, #0b0c10), transparent);
    z-index: 20;
    pointer-events: none;
}

@media (min-width: 640px) {
    .projects-fade-left,
    .projects-fade-right {
        width: 8rem;
    }
}

/* ==========================================================
   ADAPTACIÓN MODO BLANCO / CLARO (LIGHT THEME)
   ========================================================== */
html[data-theme="light"] .project-strip-card,
body.theme-light .project-strip-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(17, 19, 26, 0.12) !important;
    box-shadow: 0 12px 30px -5px rgba(17, 19, 26, 0.12) !important;
}

html[data-theme="light"] .project-strip-card:hover,
body.theme-light .project-strip-card:hover {
    border-color: #fd3f00 !important;
    box-shadow: 0 18px 36px -8px rgba(253, 63, 0, 0.3) !important;
}

html[data-theme="light"] .project-card-overlay,
body.theme-light .project-card-overlay {
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.96) 52%, rgba(255, 255, 255, 0.35) 80%, transparent 100%) !important;
}

html[data-theme="light"] .project-card-badge,
body.theme-light .project-card-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(253, 63, 0, 0.3) !important;
    color: #fd3f00 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .project-card-year,
body.theme-light .project-card-year {
    background: rgba(17, 19, 26, 0.06) !important;
    border: 1px solid rgba(17, 19, 26, 0.1) !important;
    color: #64748b !important;
}

html[data-theme="light"] .project-card-title,
body.theme-light .project-card-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

html[data-theme="light"] .project-strip-card:hover .project-card-title,
body.theme-light .project-strip-card:hover .project-card-title {
    color: #fd3f00 !important;
}

html[data-theme="light"] .project-card-desc,
body.theme-light .project-card-desc {
    color: #475569 !important;
}

html[data-theme="light"] .project-card-btn,
body.theme-light .project-card-btn {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .project-strip-card:hover .project-card-btn,
body.theme-light .project-strip-card:hover .project-card-btn {
    background: #fd3f00 !important;
    box-shadow: 0 8px 22px rgba(253, 63, 0, 0.45) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   1. HERO SLIDER — EFECTOS DE INGRESO LLAMATIVOS & BOTONES SÓLIDOS
   ========================================================================== */

/* Estado inicial de los elementos del slide (ocultos / desplazados) */
.hero-slide .hero-anim-badge {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide .hero-slide-title {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide .hero-slide-text {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide .hero-slide-actions {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide .hero-media-wrapper {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entrada escalonada impactante cuando la diapositiva está activa */
.hero-slide.active .hero-anim-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.12s;
}

.hero-slide.active .hero-slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.hero-slide.active .hero-slide-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.34s;
}

.hero-slide.active .hero-slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.46s;
}

.hero-slide.active .hero-media-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 0.28s;
}

/* Micro-animación de flotación suave en la imagen de la diapositiva activa */
@keyframes heroFloatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0); }
}

.hero-slide.active .hero-media-img {
    animation: heroFloatAnimation 5.5s ease-in-out infinite alternate 1.2s;
}

/* ==========================================================================
   2. BOTONES DE ACCIÓN — COLORES SÓLIDOS (NADA DE DEGRADADOS)
   ========================================================================== */
.hero-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-image: none !important; /* Estricto: Cero degradados */
    transition: background-color 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn-action--primary {
    background-color: var(--primary-color, #fd3f00) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px -4px rgba(253, 63, 0, 0.4);
}

.hero-btn-action--primary:hover {
    background-color: #e03700 !important;
    background-image: none !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -4px rgba(253, 63, 0, 0.55);
}

.hero-btn-action--secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-btn-action--secondary:hover {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #0b0c10 !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.35);
}

/* Forzar en .as-pr-btn-3 cero degradados */
.as-pr-btn-3 {
    background-image: none !important;
    background-color: var(--primary-color, #fd3f00) !important;
}

.as-pr-btn-3:hover {
    background-image: none !important;
    background-color: #ffffff !important;
    color: #0b0c10 !important;
}

/* ==========================================================================
   3. SISTEMA UNIVERSAL DE REVELADO AL SCROLL (SECCIONES MEJORADAS)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up {
    transform: translateY(32px);
}

.reveal-fade-left {
    transform: translateX(-32px);
}

.reveal-fade-right {
    transform: translateX(32px);
}

.reveal-scale {
    transform: scale(0.94) translateY(20px);
}

.reveal-card {
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Delays escalonados para elementos adyacentes */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Estado cuando el elemento entra al viewport */
.reveal-on-scroll.is-revealed {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Hover micro-interacciones en tarjetas */
.reveal-card:hover {
    transform: translateY(-5px) !important;
}

/* Zoom suave en imágenes al pasar el cursor */
.img-hover-zoom {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.img-hover-zoom:hover {
    transform: scale(1.04) !important;
}

/* ==========================================================================
   4. SECCIÓN DE CONTACTO — CHIPS INTERACTIVOS & ESTILOS AVANZADOS
   ========================================================================== */

/* Chips de selección de servicios */
.service-chip {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 11.5px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.04);
    background-image: none !important;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
    line-height: 1.25;
}

.service-chip:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(253, 63, 0, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.service-chip.is-active {
    background-color: #fd3f00 !important;
    background-image: none !important;
    border-color: #fd3f00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(253, 63, 0, 0.4) !important;
    transform: translateY(-1px);
}

/* Chips de selección de presupuesto */
.budget-chip {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
    background-image: none !important;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

.budget-chip:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.budget-chip.is-active {
    background-color: #fd3f00 !important;
    background-image: none !important;
    border-color: #fd3f00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(253, 63, 0, 0.35) !important;
}

/* Tarjetas rápidas de contacto */
.contact-channel-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-channel-card:hover {
    border-color: rgba(253, 63, 0, 0.4);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}

/* Botón de copiar correo */
#copy-email-btn.is-copied {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* Focus estados nítidos de los inputs */
.ajax-contact-form input:focus,
.ajax-contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(253, 63, 0, 0.15) !important;
    border-color: #fd3f00 !important;
}

/* ==========================================================================
   MARCA DE AGUA GIGANTE DE LAS SECCIONES
   Configurable desde Admin → Ajustes (color, tamaño y opacidad).
   Las variables --wm-* las imprime includes/site-head.php.
   ========================================================================== */
/* Anclada al borde inferior del encabezado (eyebrow + título) de la sección:
   la función section_watermark() se imprime dentro de la cabecera, que lleva
   posición relative. Así siempre queda ABAJO del título, sin importar cuántas
   líneas ocupe el texto ni el ancho de pantalla. */
.section-watermark {
    position: absolute;
    top: 100%;
    right: -0.04em;
    transform: none;
    font-family: var(--font-heading);
    font-size: clamp(calc(var(--wm-size, 200px) * 0.45), 13vw, var(--wm-size, 200px));
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    max-width: 100vw;
    color: rgba(255, 255, 255, 0.03);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.09);
    transition: all 0.3s ease;
}

@supports (color: color-mix(in srgb, white, black)) {
    .section-watermark {
        color: color-mix(in srgb, var(--wm-color-dark, #ffffff) calc(max(var(--wm-opacity, 0.03), 0.03) * 100%), transparent);
        -webkit-text-stroke: 1.5px color-mix(in srgb, var(--wm-color-dark, #ffffff) 10%, transparent);
    }
}

/* Lado izquierdo (sección Nosotros, Testimonios) */
.section-watermark--left {
    right: auto;
    left: -0.02em;
}

/* Centrada horizontalmente */
.section-watermark--center {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Modo claro: usa trazo nítido y visible */
html[data-theme="light"] .section-watermark,
body.theme-light .section-watermark {
    color: rgba(17, 19, 26, 0.04) !important;
    -webkit-text-stroke: 1.5px rgba(17, 19, 26, 0.11) !important;
}

@supports (color: color-mix(in srgb, white, black)) {
    html[data-theme="light"] .section-watermark,
    body.theme-light .section-watermark {
        color: color-mix(in srgb, var(--wm-color-light, #11131a) calc(max(var(--wm-opacity, 0.03), 0.04) * 100%), transparent) !important;
        -webkit-text-stroke: 1.5px color-mix(in srgb, var(--wm-color-light, #11131a) 12%, transparent) !important;
    }
}

/* Respeto a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .section-watermark { transition: none !important; }
}

/* ==========================================================================
   SECCIÓN NOSOTROS — IMAGEN FLOTANTE (TRANSPARENTE PNG / SILUETA)
   Sin bordes, sin marcos cuadrados, con sombra de silueta natural (drop-shadow)
   y micro-animación de flotación suave 3D
   ========================================================================== */
.about-floating-img {
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
    will-change: transform, filter;
    animation: aboutFloat 7s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .about-floating-img {
        animation: none !important;
    }
}

/* Justificación del texto en la sección Nosotros */
.about-history-text {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    hyphens: auto;
}

/* ==========================================================================
   SUBTÍTULOS DE SECCIÓN — estilo unificado y legible en ambos temas
   ========================================================================== */
.section-subtitle {
    text-wrap: pretty;
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 46ch;
}

@media (min-width: 640px) {
    .section-subtitle { font-size: 1rem; }
}

/* Los títulos de sección reparten mejor los saltos de línea */
.scroll-title-text {
    text-wrap: balance;
}




/* ==========================================================================
   SECCIÓN CERTIFICACIONES — tarjetas de acreditaciones y sellos
   ========================================================================== */
.cert-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 1.35rem;
    border-radius: 1.5rem;
}

.cert-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: .7;
    pointer-events: none;
}

.cert-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -55px;
    top: -55px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 70%);
    pointer-events: none;
}

.cert-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.1rem;
}

.cert-card__seal {
    width: 76px;
    height: 76px;
    border-radius: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 32%, transparent);
    box-shadow: inset 0 0 24px color-mix(in srgb, var(--primary-color) 8%, transparent);
    flex-shrink: 0;
}

.cert-card__seal svg {
    width: 27px;
    height: 27px;
}

.cert-card__seal-badge {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-align: center;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cert-card__logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: .45rem;
    flex-shrink: 0;
}

.cert-card__status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .28);
    color: #34d399;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

.cert-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
    margin-bottom: .35rem;
}

.cert-card__issuer {
    font-family: var(--font-mono);
    font-size: .62rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--primary-color);
    margin-bottom: .75rem;
}

.cert-card__desc {
    font-size: .78rem;
    line-height: 1.65;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .9rem;
    padding-top: .85rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-family: var(--font-mono);
    font-size: .58rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cert-card__meta strong {
    color: #e5e7eb;
    font-weight: 700;
}

.cert-card__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .85rem;
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary-color);
}

.cert-card__link:hover {
    text-decoration: underline;
}

html[data-theme="light"] .cert-card__title { color: #11131a; }
html[data-theme="light"] .cert-card__desc { color: #4b5563; }
html[data-theme="light"] .cert-card__meta { border-top-color: rgba(17, 19, 26, .1); color: #6b7280; }
html[data-theme="light"] .cert-card__meta strong { color: #11131a; }
html[data-theme="light"] .cert-card__logo { background: rgba(17, 19, 26, .04); border-color: rgba(17, 19, 26, .1); }

/* ==========================================================================
   SECCIÓN COBERTURA — mapa vectorial del Perú + panel de indicadores
   ========================================================================== */
.coverage-map-card {
    position: relative;
    padding: 1rem;
    border-radius: 1.75rem;
    background: rgba(10, 12, 18, .62);
    overflow: hidden;
}

.coverage-map-card::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -160px;
    top: 40%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 12%, transparent), transparent 70%);
    pointer-events: none;
}

.coverage-map-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .25rem .35rem .9rem;
}

.coverage-map-card__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #d1d5db;
}

.coverage-map-card__live {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #34d399;
}

.coverage-map-card__live i {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
    animation: coveragePulse 2s ease-in-out infinite;
}

@keyframes coveragePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .1); }
    50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, .03); }
}

.peru-map-wrap {
    position: relative;
    width: 100%;
    padding: .25rem 0;
}

.peru-map__svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 660px;
    margin: 0 auto;
    overflow: visible;
}

.peru-map__region {
    fill: rgba(255, 255, 255, .055);
    stroke: rgba(255, 255, 255, .22);
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill .22s ease, stroke .22s ease, filter .22s ease;
    outline: none;
}

.peru-map__region.is-high { fill: rgba(16, 185, 129, .18); }
.peru-map__region.is-mid { fill: rgba(253, 63, 0, .16); }
.peru-map__region.is-low { fill: rgba(122, 90, 248, .15); }
.peru-map__region.is-none { fill: rgba(255, 255, 255, .035); }

.peru-map__region:hover,
.peru-map__region:focus-visible,
.peru-map__region.is-active {
    fill: var(--primary-color);
    fill-opacity: .82;
    stroke: rgba(255, 255, 255, .92);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 7px color-mix(in srgb, var(--primary-color) 65%, transparent));
}

.peru-map__dot {
    fill: var(--primary-color);
    stroke: #0b0c10;
    stroke-width: 1.4;
    cursor: pointer;
    transition: fill .2s ease, stroke .2s ease, transform .2s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.peru-map__dot.is-active {
    fill: #ffffff;
    stroke: var(--primary-color);
    transform: scale(1.65);
}

.peru-map__tooltip {
    position: absolute;
    z-index: 20;
    transform: translate(-50%, -115%);
    min-width: 128px;
    padding: .5rem .65rem;
    border-radius: .7rem;
    background: rgba(8, 9, 13, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    pointer-events: none;
    text-align: left;
}

.peru-map__tooltip strong {
    display: block;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.25;
}

.peru-map__tooltip span {
    display: block;
    margin-top: .15rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 700;
    white-space: nowrap;
}

.peru-map__hint {
    padding: .65rem .45rem 0;
    font-size: .66rem;
    line-height: 1.55;
    color: #9ca3af;
    text-align: center;
}

.coverage-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .45rem 1rem;
    padding: .75rem .45rem .25rem;
    font-family: var(--font-mono);
    font-size: .56rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
}

.coverage-legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.coverage-legend i {
    width: .52rem;
    height: .52rem;
    border-radius: 50%;
    display: inline-block;
}

.coverage-legend i.is-high { background: #10b981; }
.coverage-legend i.is-mid { background: var(--primary-color); }
.coverage-legend i.is-low { background: #7a5af8; }

.coverage-panel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1.75rem;
}

.coverage-panel::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 16%, transparent), transparent 70%);
    pointer-events: none;
}

.coverage-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary-color);
}

.coverage-panel__eyebrow i {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.coverage-panel h3 {
    margin-top: .55rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
}

.coverage-panel__note {
    margin-top: .55rem;
    min-height: 2.6rem;
    font-size: .76rem;
    line-height: 1.6;
    color: #9ca3af;
}

.coverage-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin-top: 1.1rem;
}

.coverage-stat {
    padding: .8rem .85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
}

.coverage-stat span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
}

.coverage-stat small {
    display: block;
    margin-top: .2rem;
    font-family: var(--font-mono);
    font-size: .56rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9ca3af;
}

.coverage-sla-bar {
    height: .42rem;
    margin: 1.1rem 0 .35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.coverage-sla-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    transition: width .55s cubic-bezier(.16, 1, .3, 1);
}

.coverage-sla-caption {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}

.coverage-panel__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    margin-top: 1.1rem;
    padding: .85rem 1rem;
    border-radius: .9rem;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.coverage-panel__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px -10px color-mix(in srgb, var(--primary-color) 65%, transparent);
}

.coverage-panel.is-updating #coverage-region-name,
.coverage-panel.is-updating #coverage-region-note,
.coverage-panel.is-updating .coverage-stat span {
    animation: coverageFade .32s ease both;
}

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

.coverage-select-card {
    padding: 1.1rem 1.25rem;
    border-radius: 1.35rem;
}

.coverage-select-card label {
    display: block;
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9ca3af;
    margin-bottom: .45rem;
}

.coverage-select-card select {
    width: 100%;
    padding: .7rem .8rem;
    border-radius: .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: .78rem;
    outline: none;
}

.coverage-select-card select:focus {
    border-color: var(--primary-color);
}

.coverage-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.coverage-totals div {
    text-align: center;
}

.coverage-totals strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
}

.coverage-totals span {
    display: block;
    margin-top: .12rem;
    font-family: var(--font-mono);
    font-size: .5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}

html[data-theme="light"] .coverage-map-card { background: rgba(255, 255, 255, .72); }
html[data-theme="light"] .coverage-map-card__badge { background: rgba(17, 19, 26, .04); border-color: rgba(17, 19, 26, .1); color: #374151; }
html[data-theme="light"] .peru-map__region { fill: rgba(17, 19, 26, .06); stroke: rgba(17, 19, 26, .22); }
html[data-theme="light"] .peru-map__region.is-high { fill: rgba(16, 185, 129, .2); }
html[data-theme="light"] .peru-map__region.is-mid { fill: rgba(253, 63, 0, .18); }
html[data-theme="light"] .peru-map__region.is-low { fill: rgba(122, 90, 248, .17); }
html[data-theme="light"] .peru-map__region.is-none { fill: rgba(17, 19, 26, .04); }
html[data-theme="light"] .peru-map__dot { stroke: #ffffff; }
html[data-theme="light"] .coverage-panel h3 { color: #11131a; }
html[data-theme="light"] .coverage-panel__note { color: #4b5563; }
html[data-theme="light"] .coverage-stat { background: rgba(17, 19, 26, .035); border-color: rgba(17, 19, 26, .1); }
html[data-theme="light"] .coverage-stat span { color: #11131a; }
html[data-theme="light"] .coverage-stat small { color: #6b7280; }
html[data-theme="light"] .coverage-sla-bar { background: rgba(17, 19, 26, .1); }
html[data-theme="light"] .coverage-select-card select { background: #fff; color: #11131a; border-color: rgba(17, 19, 26, .16); }
html[data-theme="light"] .coverage-totals { border-top-color: rgba(17, 19, 26, .1); }
html[data-theme="light"] .coverage-totals strong { color: #11131a; }

@media (max-width: 640px) {
    .peru-map__svg { max-height: 520px; }
    .coverage-panel h3 { font-size: 1.65rem; }
    .coverage-stat span { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .peru-map__region,
    .peru-map__dot,
    .coverage-sla-bar span,
    .coverage-panel.is-updating #coverage-region-name,
    .coverage-panel.is-updating #coverage-region-note,
    .coverage-panel.is-updating .coverage-stat span {
        animation: none !important;
        transition: none !important;
    }
}
