/* Capa "moderna" sobre yc.css + home.css.
   Tipografía tomada de opensource.inditex.com: fondo blanco, negro, un único acento (el azul mar de ALONIA, #0F5C7A),
   letra grotesca fina (300) con tracking negativo, botones rectos en mayúsculas.
   Inditex usa Helvetica Now Text (de pago): en Mac sale Helvetica Neue y en el resto Inter Tight. */

/* Inter Tight servida desde la propia web (sin Google Fonts: nada sale a terceros). Licencia OFL. */
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-ext.woff2") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --grot: "Helvetica Now Text", "Helvetica Neue", "Inter Tight", Helvetica, Arial, system-ui, sans-serif;
  --bg: #ffffff;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --ink: #000000;
  --ink-2: #6b6b6b;
  --line: rgba(0, 0, 0, .12);
  --sea: #0f5c7a;
  --sea-deep: #000000;
  --serif: var(--grot);
  --sans: var(--grot);
}

/* Las demos de proyectos imitan las apps de cada cliente: conservan sus tipografías originales. */
.demo {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sea: #0f5c7a;
  --ink: #0b1e2d;
  --ink-2: #53687a;
}

body { font-weight: 300; background: var(--bg); }

/* Sin cursivas: el énfasis es el azul */
em, h1 em, h2 em, h3 em, .h2 em, .display em, .title em, .head h2 em, .lead, .hero-note { font-style: normal !important; }
/* Sin palabras destacadas en otro color (el usuario lo ve "hecho por IA"): todo el titular en un solo color. */
em, h1 em, h2 em, h3 em, .h2 em, .display em, .title em, .head h2 em, .words em, .story em, .closing .display em, .words--page .word p em { color: inherit !important; text-decoration: none !important; opacity: 1 !important; }

/* Titulares: finos y apretados */
h1, h2, h3, .h2, .hero-title, .display, .title, .head h2, .final h2 {
  font-weight: 300;
  letter-spacing: -.035em;
}
.h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; }

/* Marca: ALONIA / Digital */
.brandmark .bm-desc::before { content: "/"; margin-right: 8px; color: var(--ink-2); font-weight: 300; }
.brandmark .bm-name { font-family: var(--grot); font-weight: 500; letter-spacing: -.01em; }
.brandmark { align-items: center; gap: 8px; }
.brandmark .bm-tag { margin-left: 18px; font-family: var(--grot); font-size: 12.5px; font-weight: 300; line-height: 1.25; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.nav .brandmark .bm-tag { display: none; } /* en la cabecera sobra: solo en el pie */
.brandmark .bm-desc { display: inline !important; font-family: var(--grot); font-weight: 300; font-size: 17px; letter-spacing: 0; color: var(--sea); white-space: nowrap; }

/* Menú y barra superior: cristal blanco (antes crema) */
.nav, .nav.scrolled { background: rgba(255, 255, 255, .82); }
.nav-list a, .topbar, .lang-switch a { font-weight: 300; }
/* Mismo tamaño y peso con y sin hover (antes crecía al pasar el ratón y movía la barra) */
.nav-cta, .nav-cta:hover { border-radius: 0; text-transform: uppercase; font-size: 14px !important; letter-spacing: .05em; font-weight: 400 !important; }

/* Portada: misma foto, letra grotesca */
.hero { border-radius: 0 !important; }
.hero-title { font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.hero-title em, .hero-title span em { font-style: normal !important; }
.hero-note { font-style: normal; font-weight: 300; letter-spacing: 0; }

/* Texto de lectura */
.story p { font-size: clamp(20px, 1.7vw, 26px); font-weight: 300; line-height: 1.35; letter-spacing: -.02em; }
.words .word p { font-weight: 300; letter-spacing: -.03em; }
.eyebrow { font-weight: 400; }

/* Botones: rectos, borde azul, mayúsculas */
.btn, .btn-sq, .closing-btn, .nav-cta {
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  font-weight: 400;
}
.btn-sq { background: transparent; color: var(--sea); border: 1px solid var(--sea); }
.btn-sq:hover { background: var(--sea); color: #fff; }

/* Proyectos (demos) */
.proj-tab b { font-weight: 300; letter-spacing: -.03em; }
.proj-tab .pt-n, .proj-tab .pt-s { display: none; } /* solo el nombre del negocio */
.proj-tab b { white-space: nowrap; }
.proj-text h3 { font-weight: 300; letter-spacing: -.03em; }
.proj-link { color: var(--sea); }

.areas[hidden] { display: none !important; }

/* ── Muro de casos de uso (secciones al estilo de Sequoia) ───────────────────────── */
.cases { padding: 0 0 clamp(110px, 12vw, 170px); }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.home .cases .h2 { margin: 0; max-width: none; text-align: left; }
.cases-head p { margin: 12px 0 0; color: var(--ink-2); max-width: 46ch; }
/* Tarjetas como las de Sequoia: imagen grande, etiqueta arriba y título encima de la foto. */
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.case { position: relative; grid-column: span 2; overflow: hidden; color: #fff; background: var(--sea-deep); }
.case.big { grid-column: span 3; }
.case-img { aspect-ratio: 3 / 4; overflow: hidden; }
.case.big .case-img { aspect-ratio: 5 / 4; }
.case-img img, .case-img video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.case:hover .case-img img { transform: scale(1.04); }
.case::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 36%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.82) 100%); }
.case video { filter: brightness(.72) saturate(.9); }
.case h3, .case .meta, .case .more, .case .cap { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.case-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 1.8vw, 28px); }
.cap { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); }
/* Etiqueta: "/ PROCESO", con la misma barra que "ALONIA / Digital" */
.case .cap { color: #fff; margin-bottom: auto; gap: 8px; }
.case .cap::before { content: "/"; font-size: 15px; font-weight: 300; letter-spacing: 0; opacity: .8; }
.case h3 { margin: 0; max-width: 18ch; font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.case.big h3 { max-width: 22ch; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.06; letter-spacing: -.03em; }
.case .meta { color: rgba(255,255,255,.85); font-size: 12px; }
.meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.more { font-size: 11.8px; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); }
.more::after { content: " \203A"; }
.case .more { color: #fff; }

@media (max-width: 1100px) {
  .case, .case.big { grid-column: span 3; }
  .case .case-img, .case.big .case-img { aspect-ratio: 4 / 5; }
}
@media (max-width: 760px) {
  .wall { grid-template-columns: 1fr; }
  .case, .case.big { grid-column: auto; }
}

/* Resto de páginas: esquinas rectas y botones como los de la portada */
.tile, .hero--orb, .hero--page, .page-visual, .sector-img, .biz-img, .biz-media { border-radius: 0 !important; }
.pill { border-radius: 0 !important; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; font-weight: 400; }
.tile h3, .tile b { font-weight: 400; letter-spacing: -.02em; }

/* Formulario de contacto: campos con solo una línea inferior, sin cajas redondeadas */
.contact-card { border-radius: 0; padding-left: 0; padding-right: 0; }
.contact .field label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.contact .field input, .contact .field textarea {
  padding: 10px 0; border-radius: 0; background: transparent; border-bottom: 1px solid rgba(0, 0, 0, .25);
  font-size: 18px; font-weight: 300;
}
.contact .field input:focus, .contact .field textarea:focus { background: transparent; box-shadow: none; border-bottom-color: var(--sea); }
.contact .field input[aria-invalid="true"] { box-shadow: none; border-bottom-color: #a4453a; }
.contact .form .btn { height: auto; padding: 14px 26px; border-radius: 0; font-size: 14px; background: transparent; color: var(--sea); border: 1px solid var(--sea); }
.contact .form .btn:hover { background: var(--sea); color: #fff; }

/* Integraciones: banda de nombres de apps que gira sola (dos filas en sentidos opuestos) */
.tools .eyebrow { font-size: clamp(26px, 2.6vw, 40px); font-weight: 300; letter-spacing: -.03em; text-transform: none; color: var(--ink); text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.marquee { width: 100vw; margin-left: calc(50% - 50vw); display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row.rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee-track span { padding: 0 clamp(18px, 2.4vw, 36px); font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.marquee-row.rev .marquee-track span { color: var(--ink-2); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee-row { overflow-x: auto; } }

/* Botón de cierre de las páginas interiores ("Hablemos") */
.closing .pill, .closing .pill--light, .closing .pill--white { background: transparent !important; color: var(--sea) !important; border: 1px solid var(--sea) !important; padding: 14px 26px; }
.closing .pill:hover { background: var(--sea) !important; color: #fff !important; }

/* Preguntas frecuentes (portada): lista desplegable sin líneas, separada por espacio */
.faq { padding: clamp(40px, 6vw, 90px) 0 clamp(60px, 8vw, 120px); }
.home .faq .h2 { margin: 0 0 clamp(28px, 3vw, 44px); max-width: none; text-align: left; }
.faq-list { display: grid; gap: 6px; max-width: 900px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 300; letter-spacing: -.02em; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 300; color: var(--sea); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--sea); }
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible { outline: 1px solid var(--sea); outline-offset: 4px; }
.faq-more { margin: 32px 0 0; font-size: 15px; color: var(--ink-2); }
.faq-more a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.faq-item p { margin: 0 0 18px; max-width: 70ch; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Vídeo ampliado (tarjeta "Qué hacemos") */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(16px, 4vw, 64px); background: rgba(0, 0, 0, .88); }
.lightbox video { width: min(1280px, 100%); max-height: 86vh; background: #000; }
.lightbox-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.lightbox-x::before, .lightbox-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; background: #fff; }
.lightbox-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Botón flotante de contacto (assets/contacto.js) */
.fab { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--grot); }
.fab-btn { display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px; border: 0; border-radius: 0; background: var(--ink); color: #fff; font: 400 14px/1 var(--grot); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: background .25s; }
.fab-btn:hover { background: var(--sea); }
.fab-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.fab-x { position: relative; width: 12px; height: 12px; display: none; }
.fab-x::before, .fab-x::after { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 12px; background: currentColor; }
.fab-x::before { transform: translateX(-50%) rotate(45deg); }
.fab-x::after { transform: translateX(-50%) rotate(-45deg); }
.fab.is-open .fab-x { display: block; }
.fab-panel { width: min(340px, calc(100vw - 32px)); padding: 10px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.16); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.fab-panel.on { opacity: 1; transform: none; }
.fab-item { display: flex; align-items: center; gap: 16px; padding: 12px; color: var(--ink); transition: background .2s; }
.fab-item:hover { background: var(--mist); }
.fab-ico { flex: 0 0 44px; height: 44px; display: grid; place-items: center; background: var(--mist); color: var(--sea); }
.fab-item:hover .fab-ico { background: var(--sea); color: #fff; }
.fab-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fab-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fab-txt b { font-weight: 400; font-size: 17px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab-txt small { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .fab-btn { height: 46px; padding: 0 18px; } }
@media (prefers-reduced-motion: reduce) { .fab-panel { transition: none; } }

/* Cierre: blanco, onda de partículas en azul mar, botón recto con borde */
.closing { background: #fff; color: var(--ink); }
.closing .display a { transition: color .2s; }
.closing .display a:hover { color: var(--sea); }
.closing .display { margin: 0 0 40px; font-weight: 300; letter-spacing: -.04em; }
.closing-btn { background: transparent; color: var(--sea); border: 1px solid var(--sea); padding: 14px 26px; }
.closing-btn:hover { background: var(--sea); color: #fff; }

/* Proyectos: menos texto, la historia del negocio primero */
.home .projects .proj-note { font-size: 14px; }
.proj-text h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.08; }
.proj-text p { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
@media (prefers-reduced-motion: reduce) { .case-img img { transition: none; } }

/* Enlaces dentro de las respuestas de las preguntas frecuentes */
.faq-item p a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Palabras clave destacadas en el texto de la misión (negrita en azul mar) */
.story .hl { font-weight: 500; color: var(--sea); }
