/* Archivo variable autohospedada, partida por unicode-range: el titular del hero
   (elemento LCP) es ASCII puro y solo espera al archivo basic (40KB); los acentos
   viajan aparte. Ejes wght 100-900 y wdth 100-125. */
@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo-basic.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-stretch: 100% 125%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020-007E;
}

@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo-ext.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-stretch: 100% 125%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+00A1, U+00A9, U+00AB, U+00BB, U+00BF, U+00C0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

:root {
    /* Paleta LOVO: negro cálido de base, coral como voz, lima como energía */
    --ink: #211b1b;
    --ink-2: #2a2222;
    --paper: #f7f0ee;
    --coral: #f2757e;
    --coral-deep: #d95560;
    --lime: #a4d128;
    --muted: #9a8d8b;
    --line: #3a3030;
    --font-sans: 'Archivo', system-ui, sans-serif;
    /* Archivo se autohospeda (fonts/archivo-basic.woff2 + archivo-ext.woff2): ver @font-face al inicio */
    --easing: cubic-bezier(0.22, 1, 0.36, 1);
    --section-pad: clamp(4rem, 12vh, 8rem);
}

@supports (color: oklch(50% 0 0)) {
    :root {
        --ink: oklch(17.5% 0.012 25);
        --ink-2: oklch(21.5% 0.012 25);
        --paper: oklch(96% 0.009 30);
        --coral: oklch(70% 0.15 18);
        --coral-deep: oklch(62% 0.17 18);
        --lime: oklch(79.5% 0.19 123);
        --muted: oklch(65% 0.015 30);
        --line: oklch(28% 0.012 25);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    background-color: var(--ink);
    color: var(--paper);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Display: Archivo expandida ultra-negra, la voz de la presentación 2025 */
h1,
h2,
h3 {
    font-family: var(--font-sans);
    font-stretch: 125%;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

::selection {
    background: var(--coral);
    color: var(--ink);
}

button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
    font-family: inherit;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[role="slider"]:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
}

img {
    max-width: 100%;
}

/* Enlace "saltar al contenido": invisible hasta recibir foco por teclado */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--lime);
    color: var(--ink);
    padding: 0.6rem 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: color-mix(in srgb, var(--ink) 88%, transparent);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--paper);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lime);
    transition: width 0.3s var(--easing);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--lime);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--coral);
    color: var(--ink);
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    transition: background-color 0.3s var(--easing), transform 0.3s var(--easing);
}

/* Especificidad: .nav-links a pisaba el color del boton (crema sobre coral, 2.54:1).
   Tinta sobre coral como en el boton del hero: consistente y pasa AA. */
.nav-links a.btn-primary {
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--coral-deep);
    transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 200;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--paper);
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero: póster tipográfico sobre video de proyectos reales */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 7rem clamp(1.25rem, 7vw, 6rem) 4rem;
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--ink);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-video.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, color-mix(in srgb, var(--ink) 72%, transparent) 0%, transparent 32%),
        linear-gradient(78deg, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 66%, transparent) 48%, color-mix(in srgb, var(--ink) 34%, transparent) 100%);
}

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

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.95rem 2.4rem;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.hero-kicker {
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.4vw, 0.95rem);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 8.5vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 0.92;
}

.hero-title-accent {
    color: var(--coral);
}

.hero-description {
    margin-top: 2rem;
    max-width: 52ch;
    /* paper en vez de muted: el overlay del video es semitransparente y muted quedaba justo de AA */
    color: var(--paper);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Linea de prueba del hero: 7 años de LOVO / 20+ del equipo / 100+ eventos */
.hero-proof {
    margin-top: 1.5rem;
    font-size: clamp(0.72rem, 1.25vw, 0.86rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--paper);
    max-width: 60ch;
}

.hero-proof span {
    color: var(--lime);
    margin: 0 0.35em;
}

/* Boton pausa del video de fondo (WCAG 2.2.2); el JS lo muestra solo cuando hay video */
.hero-pause {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.3s var(--easing);
}

.hero-pause:hover {
    opacity: 1;
}

.hero-pause .icon-play {
    display: none;
}

.hero-pause[aria-pressed="true"] .icon-pause {
    display: none;
}

.hero-pause[aria-pressed="true"] .icon-play {
    display: block;
}

.hero-cta,
.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--paper);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--lime);
    transition: color 0.3s var(--easing);
}

.hero-cta svg,
.link-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--easing);
}

.hero-cta:hover,
.link-cta:hover {
    color: var(--lime);
}

.hero-cta:hover svg {
    transform: translateY(3px);
}

.link-cta:hover svg {
    transform: translate(2px, -2px);
}

/* Section titles */
.section-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
    text-align: left;
}

.highlight {
    color: var(--coral);
}

/* Services: filas editoriales numeradas */
.services-section {
    padding: var(--section-pad) 5%;
    background: var(--ink-2);
}

.services-section .section-title,
.services-list {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services-section .section-title {
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.services-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 4rem 1.2fr minmax(28ch, 0.8fr);
    gap: 0.75rem 2.5rem;
    align-items: baseline;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--line);
}

.service-num {
    color: var(--coral);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.service-row h3 {
    font-size: clamp(1.5rem, 3.2vw, 2.6rem);
    transition: color 0.3s var(--easing);
}

.service-row p {
    color: var(--muted);
    font-size: 1rem;
}

.service-row:hover h3 {
    color: var(--lime);
}

/* Portfolio */
.portfolio-section {
    padding: var(--section-pad) 5%;
}

.portfolio-section .section-title,
.portfolio-filters,
.portfolio-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-filters {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--paper);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    border: 1px solid var(--line);
    transition: transform 0.3s var(--easing), border-color 0.3s var(--easing);
}

.portfolio-item:hover {
    transform: scale(1.02);
    border-color: var(--lime);
}

/* Boton nativo que abre la galeria: el h3 del overlay sigue siendo encabezado
   en el arbol de accesibilidad (antes la tarjeta entera era role=button) */
.portfolio-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.portfolio-trigger:focus-visible {
    outline: none;
}

.portfolio-item:focus-within {
    border-color: var(--lime);
    outline: 2px solid var(--lime);
    outline-offset: 4px;
}

/* Proyectos destacados: doble ancho en el mosaico */
@media (min-width: 700px) {
    .portfolio-item.destacado {
        grid-column: span 2;
    }
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--easing);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, color-mix(in srgb, var(--ink) 92%, transparent), transparent);
    padding: 2rem 1.5rem 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s var(--easing);
}

.portfolio-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    color: var(--lime);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.overlay p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--paper);
}

/* Digital: caso Brunch in the City, discreto a propósito */
.digital-section {
    padding: clamp(3.5rem, 9vh, 6rem) 5%;
    position: relative;
    isolation: isolate;
    /* --scene-p (0..1) = progreso de la seccion por el viewport; lo escribe JS.
       Sin JS (o con reduced-motion) vale 1: estado final completo. */
}

/* Cambio de escena ligado al scroll: la "sala" gana temperatura coral
   (ink + ~6% coral) conforme avanzas. Opacity es composited: barato. */
.digital-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #2a1c1e;
    opacity: var(--scene-p, 1);
}

/* Titular que despierta con el scroll: Archivo variable de pluma a poster.
   Solo eje wght (wdth fijo por el font-stretch global). Si el navegador no
   soporta calc() aqui, cae al 900 global: degradacion limpia. */
.digital-section .digital-text .section-title {
    font-variation-settings: 'wght' calc(250 + 650 * min(1, var(--scene-p, 1) * 1.6));
}

.digital-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
        'text phone'
        'case phone';
    gap: 2.5rem clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.digital-text {
    grid-area: text;
}

.digital-case {
    grid-area: case;
}

.digital-phone {
    grid-area: phone;
    display: flex;
    justify-content: center;
}

.digital-section .section-title {
    font-size: clamp(1.7rem, 3.6vw, 2.8rem);
    margin-bottom: 1.25rem;
}

.digital-text p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 48ch;
}

.digital-case {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

/* Teléfono del caso: marco fino de la marca con la app real dentro.
   El contraluz coral y el settle de escala siguen a --scene-p. */
.case-phone {
    width: min(92%, 380px);
    border: 2px solid var(--line);
    border-radius: 26px;
    padding: 6px;
    background: var(--ink-2);
    position: relative;
    transform: scale(calc(0.96 + 0.04 * var(--scene-p, 1)));
    transform-origin: center top;
}

.case-phone::before {
    content: '';
    position: absolute;
    inset: -14%;
    z-index: -1;
    background: radial-gradient(50% 50% at 50% 45%, rgba(242, 117, 126, 0.16), transparent 70%);
    opacity: var(--scene-p, 1);
}

.case-phone-video {
    display: block;
    width: 100%;
    aspect-ratio: 784 / 1576;
    border-radius: 20px;
    background: var(--ink-2);
    object-fit: cover;
}

.digital-case-label {
    color: var(--coral);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.digital-case h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    margin-bottom: 0.75rem;
}

.digital-case p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 44ch;
}

/* Proceso: único parallax de la página (ventana fija: la imagen queda
   anclada al viewport y la sección la revela al hacer scroll) */
.proceso-section {
    position: relative;
    overflow: hidden;
    contain: paint;
    min-height: clamp(420px, 62vh, 640px);
    display: flex;
    align-items: center;
    padding: var(--section-pad) 5%;
}

.proceso-media {
    position: absolute;
    inset: 0;
}

.proceso-media img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .proceso-media img {
        position: absolute;
        height: 100%;
    }
}

.proceso-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, color-mix(in srgb, var(--ink) 78%, transparent) 0%, transparent 45%),
        linear-gradient(78deg, color-mix(in srgb, var(--ink) 88%, transparent) 0%, color-mix(in srgb, var(--ink) 62%, transparent) 50%, color-mix(in srgb, var(--ink) 38%, transparent) 100%);
}

.proceso-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.proceso-words {
    list-style: none;
    margin-top: 1rem;
}

.proceso-words li {
    font-stretch: 125%;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 4.2vw, 3.2rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.proceso-words li::after {
    content: '.';
    color: var(--lime);
}

/* Franja de clientes */
.clients-section {
    padding: clamp(3rem, 8vh, 5rem) 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.clients-intro {
    font-stretch: 100%;
    line-height: 1.6;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.clients-names {
    list-style: none;
    padding: 0;
    font-stretch: 125%;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.3rem, 3.2vw, 2.4rem);
    line-height: 1.35;
    color: var(--muted);
    letter-spacing: -0.01em;
}

.clients-names li {
    display: inline;
}

.clients-names li::after {
    content: ' · ';
    color: var(--lime);
    font-weight: 900;
}

.clients-names li:last-child::after {
    content: none;
}

/* Render → Realidad: sección bañada en lima, como la presentación 2025 */
.comparison-section {
    padding: var(--section-pad) 5%;
    background: var(--lime);
    color: var(--ink);
    text-align: center;
}

.comparison-pairs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.pair-btn {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
    color: var(--ink);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pair-btn:hover {
    border-color: var(--ink);
}

.pair-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--lime);
}

.comparison-section .section-title {
    color: var(--ink);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-section .highlight {
    color: var(--ink);
}

.comparison-section a:focus-visible,
.comparison-section button:focus-visible {
    outline-color: var(--ink);
}

.comparison-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--ink) 35%, transparent);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* fondo visible como marco lateral cuando una foto usa object-fit: contain */
    background: var(--ink);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Paginas sin selector de pares: encuadre fijado desde el HTML */
.image-wrapper.fit-contain img {
    object-fit: contain;
}

/* Reveal por clip-path (lo controla el JS): ambos wrappers quedan a ancho
   completo, así las dos fotos comparten encuadre exacto y nunca se desalinean.
   Sin clip inicial: arranca mostrando el render completo (posición 100%). */
.image-wrapper.before {
    z-index: 1;
}

.image-wrapper .label {
    position: absolute;
    top: 2rem;
    padding: 0.5rem 1rem;
    background: color-mix(in srgb, var(--ink) 85%, transparent);
    color: var(--paper);
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    pointer-events: none;
    /* borde sutil: sin él, la etiqueta se funde con la banda tinta de las fotos contain */
    border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
}

.before .label {
    left: 2rem;
}

.after .label {
    right: 2rem;
}

.handle {
    position: absolute;
    top: 0;
    left: 100%;
    height: 100%;
    width: 4px;
    background-color: var(--ink);
    z-index: 3;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    justify-content: center;
    align-items: center;
}

.handle-circle {
    width: 50px;
    height: 50px;
    background: var(--ink);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--lime);
}

.comparison-caption {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--ink);
}

/* About */
.about-section {
    padding: var(--section-pad) 5%;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.about-text h2 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 58ch;
}

/* Cifras tipográficas, sin cajas */
.about-figures {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex-shrink: 0;
}

.figure-value {
    display: block;
    font-size: clamp(4rem, 9vw, 6.5rem);
    font-stretch: 125%;
    font-weight: 900;
    line-height: 0.9;
}

.figure-coral {
    color: var(--coral);
}

.figure-lime {
    color: var(--lime);
}

.figure-paper {
    color: var(--paper);
}

.figure-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* Contact */
.contact-section {
    padding: var(--section-pad) 5%;
    text-align: center;
}

.contact-section h2 {
    font-size: clamp(2rem, 5.5vw, 4rem);
    color: var(--coral);
}

.contact-where {
    margin-top: 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
}

address {
    font-style: normal;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--paper);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--lime);
}

.contact-item svg {
    width: 36px;
    height: 36px;
}

.social-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--paper);
    transition: background-color 0.3s var(--easing), color 0.3s var(--easing), border-color 0.3s var(--easing);
}

.social-icon:hover {
    border-color: var(--lime);
    color: var(--lime);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: color-mix(in srgb, var(--ink) 96%, transparent);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--muted);
    padding: 10px 0;
    height: 150px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--paper);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--lime);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--paper);
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 55%, transparent);
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.lightbox-nav:hover {
    color: var(--lime);
    background: color-mix(in srgb, var(--ink) 85%, transparent);
}

.lightbox-nav[hidden] {
    display: none;
}

.lightbox-prev {
    left: clamp(0.5rem, 3vw, 2.5rem);
}

.lightbox-next {
    right: clamp(0.5rem, 3vw, 2.5rem);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
}

.footer-brunch {
    margin-top: 0.5rem;
}

.footer-brunch a {
    color: var(--coral);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.footer-brunch a:hover {
    color: var(--lime);
}

.footer-links {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--paper);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.footer-links a:hover {
    color: var(--lime);
    border-color: var(--lime);
}

/* Fuente preferida en Google: deeplink oficial, sin script de terceros */
.footer-google {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.btn-google-pref {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--paper);
    text-decoration: none;
    transition: border-color 0.3s var(--easing), color 0.3s var(--easing);
}

.btn-google-pref svg {
    width: 16px;
    height: 16px;
}

.btn-google-pref:hover {
    border-color: var(--lime);
    color: var(--lime);
}

/* En pantallas táctiles el hover no existe: overlay siempre visible */
@media (hover: none) {
    .overlay {
        transform: none;
        padding: 1.5rem 1rem 0.9rem;
        background: linear-gradient(to top, color-mix(in srgb, var(--ink) 96%, transparent), transparent);
    }

    .overlay h3 {
        font-size: 1rem;
    }

    .overlay p {
        font-size: 0.75rem;
    }
}

/* WhatsApp Float (verde propio de WhatsApp, deliberado) */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    /* icono en tinta: blanco sobre el verde daba 1.98:1 (WCAG 1.4.11 pide 3:1) */
    color: var(--ink);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Glow rotatorio (tecnica @property): --angle registrado como <angle>
   para que el conic-gradient pueda girar con interpolacion suave.
   Capas: halo difuminado (z -1) / anillo (z 0) / tapa de color (z 1) / contenido (z 2).
   Sin @property el anillo queda estatico: degradacion aceptable. */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes glow-girar {
    to {
        --angle: 360deg;
    }
}

/* En el flotante (siempre visible) el giro es por transform: composita en GPU y el
   gradiente se pinta una sola vez. Visualmente idéntico porque las capas son circulares.
   El del hero-btn mantiene --angle (es pill, rotarlo deformaría el anillo) y ya se
   pausa cuando el hero sale del viewport. */
@keyframes glow-girar-transform {
    to {
        transform: rotate(360deg);
    }
}

.whatsapp-float::before,
.whatsapp-float .halo-glow {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--coral), var(--lime), var(--coral));
    z-index: 0;
    animation: glow-girar-transform 3s linear infinite;
    pointer-events: none;
}

.whatsapp-float .halo-glow {
    filter: blur(16px);
    opacity: 0.75;
    z-index: -1;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #25d366;
    z-index: 1;
}

.whatsapp-float svg {
    position: relative;
    z-index: 2;
}

.hero-btn {
    position: relative;
}

.hero-btn::before,
.hero-btn .halo-glow {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), var(--lime), #fff, var(--coral), var(--lime));
    z-index: 0;
    animation: glow-girar 3.5s linear infinite;
    pointer-events: none;
}

.hero-btn .halo-glow {
    filter: blur(18px);
    opacity: 0.6;
    z-index: -1;
}

.hero-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--coral);
    transition: background-color 0.3s var(--easing);
    z-index: 1;
}

.hero-btn:hover::after {
    background: var(--coral-deep);
}

.hero-btn .glow-label {
    position: relative;
    z-index: 2;
}

/* El glow del hero se pausa cuando el hero sale del viewport (GPU/bateria) */
.hero-btn.glow-paused::before,
.hero-btn.glow-paused .halo-glow {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        height: 100svh;
        width: 70%;
        background: color-mix(in srgb, var(--ink) 97%, transparent);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* visibility saca los enlaces del orden de tabulacion con el panel cerrado */
        visibility: hidden;
        transition: right 0.4s var(--easing), visibility 0s 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
        transition: right 0.4s var(--easing), visibility 0s 0s;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
        background-color: var(--lime);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -6px);
        background-color: var(--lime);
    }

    .logo-img {
        height: 48px;
    }

    .hero {
        padding-top: 6rem;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .service-row p {
        max-width: 60ch;
    }

    .about-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .digital-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            'text'
            'phone'
            'case';
    }

    .proceso-section {
        min-height: clamp(360px, 55vh, 520px);
    }

    .about-figures {
        flex-direction: row;
        gap: 3rem;
        flex-wrap: wrap;
    }

    .comparison-slider {
        height: 400px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 2.5rem;
    }

    /* Flotante mas discreto en movil: tapaba letras de los titulares */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Estado final de los reveals por scroll (el JS solo añade la clase) */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Enlaces de servicio (home -> /stands-ferias) */
.service-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--easing);
}

.service-link:hover {
    color: var(--lime);
}

.service-link-mas {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
}

.service-link-mas:hover {
    text-decoration: underline;
}

/* Enlace legal discreto del footer (sin opacity: var(--muted) pasa AA 4.5:1) */
.footer-legal {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.footer-legal a {
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   Paginas de servicio (/stands-ferias, /activaciones-btl)
   ============================================================ */
.migas {
    max-width: none;
    margin: 0 auto;
    padding: 7rem 5% 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.migas a {
    color: var(--muted);
    text-decoration: none;
}

.migas a:hover {
    color: var(--lime);
}

.sf-hero {
    /* Como el hero de la home: de borde a borde con el margen del 5 % del logo,
       sin contenedor centrado (en pantallas anchas dejaba media pantalla vacia) */
    max-width: none;
    margin: 0 auto;
    padding: 2.5rem 5% 5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.sf-hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.9rem);
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin: 1.2rem 0 1.6rem;
}

.sf-hero .hero-description {
    margin-top: 0;
}

.sf-hero-foto img {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
    display: block;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 60px color-mix(in srgb, black 45%, transparent);
}

.sf-lead {
    max-width: none;
    /* mismo margen que .sf-hero (5 %) */
    margin: 0 auto;
    padding: 0 5% var(--section-pad);
    text-align: left;
}

.sf-lead p {
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    margin-top: 1.4rem;
    max-width: 62ch;
}

/* Titulos de las secciones de landing alineados con su contenido (mismo
   contenedor), en vez de pegados al borde con el contenido centrado */
.sf-servicios .section-title,
.sf-casos .section-title,
.sf-proceso .section-title,
body[data-ga-page] .sf-faq .section-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sf-trabajo .section-title {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.sf-servicios {
    padding: 0 5% var(--section-pad);
}

.sf-chips {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.8rem;
}

.sf-chips li {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper);
    transition: border-color 0.3s var(--easing), color 0.3s var(--easing);
}

.sf-chips li:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.sf-trabajo {
    padding: 0 5% var(--section-pad);
}

.sf-trabajo .portfolio-grid {
    margin-top: 2.5rem;
}

.sf-casos {
    padding: 0 5% var(--section-pad);
}

.sf-casos-grid {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sf-casos-grid--compacta {
    margin-top: 2rem;
}

.sf-caso {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
    background: var(--ink-2);
}

.sf-caso .cliente {
    color: var(--lime);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.sf-caso h3 {
    font-size: 1.25rem;
    margin: 0.8rem 0;
}

.sf-caso p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.sf-proceso {
    padding: 0 5% var(--section-pad);
}

.sf-pasos {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    list-style: none;
}

.sf-pasos li div {
    max-width: 70ch;
}

.sf-pasos li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.sf-pasos .num {
    font-family: var(--font-sans);
    font-stretch: 125%;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--coral);
}

.sf-pasos h3 {
    font-size: 1.05rem;
    display: inline;
    margin-right: 0.8rem;
}

.sf-pasos p {
    display: inline;
    color: var(--muted);
}

.sf-faq {
    padding: 0 5% var(--section-pad);
}

.sf-faq-lista {
    max-width: 820px;
    margin: 2.5rem auto 0;
}

.sf-faq details {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
}

.sf-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sf-faq summary::after {
    content: '+';
    color: var(--lime);
    font-size: 1.4rem;
    font-weight: 400;
    flex-shrink: 0;
}

.sf-faq details[open] summary::after {
    content: '–';
}

.sf-faq details p {
    margin-top: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 60ch;
}

/* FAQ en la home: mismo acordeón que las landings, con el padding
   superior estándar de las secciones de la home */
.faq-home {
    padding-top: var(--section-pad);
}

/* Safari viejo: list-style:none no oculta el marcador nativo */
.sf-faq summary::-webkit-details-marker {
    display: none;
}

/* summary no está cubierto por la regla global de :focus-visible */
.sf-faq summary:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 4px;
}

/* Enlaces inline en respuestas */
.sf-faq details p a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
}

.sf-faq details p a:hover,
.sf-faq details p a:focus-visible {
    text-decoration: underline;
}

.sf-cta {
    padding: 0 5% var(--section-pad);
    text-align: center;
}

.sf-cta h2 {
    font-size: clamp(1.8rem, 5vw, 3.6rem);
}

.sf-cta p {
    color: var(--muted);
    margin: 1.4rem auto 2.2rem;
    max-width: 46ch;
}

/* Landing sin foto (/personal-para-eventos): hero a una columna */
.sf-hero--texto {
    grid-template-columns: 1fr;
}

/* Aviso para aspirantes: una sola tarjeta centrada */
.sf-aviso {
    max-width: 720px;
    margin: 0 auto;
}

.sf-aviso .link-cta {
    margin-top: 1.2rem;
}

@media (max-width: 900px) {
    .sf-hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .sf-hero-foto {
        order: -1;
    }
}

/* Tarjetas de tipos de activacion */
.sf-tipos {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.sf-tipo {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.5rem;
    background: var(--ink-2);
    transition: border-color 0.3s var(--easing);
}

.sf-tipo:hover {
    border-color: var(--lime);
}

.sf-tipo h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.sf-tipo p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Cifras de confianza en paginas de servicio */
.sf-stats {
    max-width: 900px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

/* Enlace a servicio relacionado bajo el CTA */
.sf-relacionado {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.sf-relacionado a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
}

.sf-relacionado a:hover {
    text-decoration: underline;
}

/* Banner de cookies: abajo-derecha encima del botón de WhatsApp en desktop,
   barra inferior compacta en móvil; tokens de marca, sin librerías. Desaparece al decidir. */
.cookie-banner {
    position: fixed;
    right: 2rem;
    bottom: calc(2rem + 80px); /* encima del botón de WhatsApp, zona sin texto */
    z-index: 1200;
    max-width: 440px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner p {
    color: var(--paper);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.cookie-banner a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
}

.cookie-banner a:hover,
.cookie-banner a:focus-visible {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-actions button {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
}

.cookie-accept {
    background: var(--coral);
    color: var(--ink);
}

.cookie-accept:hover {
    background: var(--coral-deep);
}

.cookie-reject {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}

.cookie-reject:hover {
    border-color: var(--muted);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        border-radius: 14px 14px 0 0;
        border-width: 1px 0 0;
        padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
    }

    .cookie-banner p {
        font-size: 0.86rem;
        line-height: 1.45;
        margin-bottom: 0.7rem;
    }

    .cookie-actions button {
        font-size: 0.85rem;
        padding: 0.55rem 1.1rem;
    }

    /* Mientras el banner está visible, el flotante de WhatsApp sube para no quedar tapado */
    .has-cookie-banner .whatsapp-float {
        bottom: calc(1.25rem + 112px);
    }
}
