/* SPRING · estilos compartidos (portada, casos, 404)
   Breakpoints: móvil < 640 · tablet 640–1023 · escritorio ≥ 1024 */

/* ── Fuentes autoalojadas (Google Sans Flex, OFL 1.1 · Material Symbols, Apache 2.0) ── */
/* math */
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/google-sans-flex-math.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/google-sans-flex-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}
/* latin */
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/google-sans-flex-latin.woff2) format('woff2');
  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;
}
/* Material Symbols Rounded: solo automation, campaign, query_stats */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/material-symbols-rounded-subset.woff2) format('woff2');
}

:root {
  --azul: #0B57D0;
  --azul-claro: #A8C7FA;
  --azul-texto: #062E6F;
  --violeta: #5B3DB8;
  --naranja: #F56B2A;
  --fondo: #F8F9FC;
  --oscuro: #131314;
  --sup-1: #1E1F20;
  --sup-2: #2A2B2D;
  --texto: #1F1F1F;
  --texto-2: #444746;
  --texto-3: #5F6368;
  --texto-osc: #E3E3E3;
  --texto-osc-2: #A8ABAE;
  --sep: #DADCE0;
  --sep-2: #ECEFF5;
  --fuente: 'Google Sans Flex', 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --t: .2s ease;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--fuente); overflow-x: hidden; }
img, video, svg { max-width: 100%; }
a { color: inherit; }
a:hover { opacity: .85; }
button { font-family: inherit; }
h1, h2, h3, p { overflow-wrap: break-word; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--azul); outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--azul); color: #FFFFFF; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.saltar:focus { top: 12px; }
.material-symbols-rounded { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; }

.contenedor { max-width: 1328px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ── Logo ─────────────────────────────────────────────── */
.logo { display: inline-flex; color: var(--texto); text-decoration: none; }
.logo svg { display: block; height: 30px; width: auto; }
.logo--blanco { color: #FFFFFF; }

/* ── Microdetalles ────────────────────────────────────── */
.sp-idx { display: block; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-3); line-height: 1.4; }
.sp-idx--oscuro { color: var(--texto-osc-2); }
.sp-linea { display: block; width: 32px; height: 2px; background: var(--naranja); }
.sp-linea--duo { width: 40px; background: linear-gradient(90deg, var(--azul) 0 50%, var(--naranja) 50% 100%); }
.sp-linea--activa { transition: opacity var(--t); }
.sp-card { position: relative; transition: transform var(--t); }
.sp-card::before { content: ""; position: absolute; top: 0; left: 32px; width: 0; height: 2px; background: var(--naranja); transition: width var(--t); }
.sp-card:hover, .sp-card:focus-within { transform: translateY(-4px); }
.sp-card:hover::before, .sp-card:focus-within::before { width: 32px; }
.sp-intro { border-left: 1px solid #C4C7C5; padding-left: 24px; display: flex; flex-direction: column; gap: 16px; }

/* ── Botones ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color var(--t), color var(--t), border-color var(--t); }
.btn--claro { background: var(--azul-claro); color: var(--azul-texto); }
.btn--violeta { background: var(--violeta); color: #FFFFFF; }
.btn--gris { background: var(--sep-2); color: var(--texto); }
.btn--azul { background: var(--azul); color: #FFFFFF; }

/* ── Cabecera de la portada ───────────────────────────── */
.cabecera { position: relative; z-index: 20; }
.cabecera__nav { max-width: 1328px; margin: 0 auto; height: 88px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sp-nav { display: flex; gap: 4px; align-items: center; font-size: 15px; background: var(--sep-2); padding: 6px; border-radius: 999px; }
.sp-nav a { position: relative; text-decoration: none; padding: 10px 18px; border-radius: 999px; transition: background-color var(--t); }
.sp-nav a::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 20px; height: 2px; margin-left: -10px; background: var(--naranja); opacity: 0; transition: opacity var(--t); }
.sp-nav a[aria-current="true"]::after { opacity: 1; }
.sp-nav a:hover { background: #FFFFFF; opacity: 1; }
.cabecera__cta { text-decoration: none; background: var(--azul); color: #FFFFFF; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }
/* Selector de idioma */
.idioma { display: inline-flex; gap: 2px; background: var(--sep-2); padding: 4px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.idioma a { text-decoration: none; padding: 8px 10px; border-radius: 999px; color: var(--texto-2); min-width: 36px; text-align: center; }
.idioma a[aria-current="page"] { background: #FFFFFF; color: var(--texto); }
.idioma a:hover { opacity: 1; color: var(--texto); }
.cabecera__acciones, .caso-cabecera__acciones { display: flex; align-items: center; gap: 12px; }
.idioma--menu { align-self: flex-start; margin-top: 24px; font-size: 15px; }
.idioma--menu a { padding: 10px 14px; }
.cabecera__menu { display: none; width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--sep-2); color: var(--texto); font-size: 18px; cursor: pointer; align-items: center; justify-content: center; }

/* Panel del menú móvil */
.menu-movil { position: fixed; inset: 0; z-index: 50; background: var(--fondo); display: flex; flex-direction: column; padding: 0 20px 32px; overflow-y: auto; }
.menu-movil[hidden] { display: none; }
.menu-movil__barra { height: 68px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.menu-movil__barra .logo svg { height: 24px; }
.menu-movil__lista { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; }
.menu-movil__lista a { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; border-top: 1px solid var(--sep); text-decoration: none; font-size: 32px; font-weight: 450; letter-spacing: -0.025em; }
.menu-movil__lista li:last-child a { border-bottom: 1px solid var(--sep); }
.menu-movil__lista .sp-idx { font-size: 12px; letter-spacing: .12em; }
.menu-movil__cta { margin-top: 32px; min-height: 52px; font-size: 16px; padding: 0 28px; }
body.menu-abierto { overflow: hidden; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { max-width: 1328px; margin: 0 auto; padding: 56px var(--gutter) 120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.hero__texto { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { margin: 0; font-weight: 850; font-size: clamp(56px, 5.6vw, 80px); line-height: .94; letter-spacing: -0.045em; text-wrap: balance; }
.hero h1 .x { color: var(--naranja); }
.hero__bajada { margin: 0; max-width: 500px; font-size: 19px; line-height: 1.55; color: var(--texto-2); }
.hero__cta { align-self: flex-start; background: var(--sep-2); color: var(--texto); padding: 15px 26px; border-radius: 999px; text-decoration: none; font-weight: 500; text-align: center; }
.mosaico { --r: 40px; --r-xl: 160px; display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: 16px; height: clamp(400px, 33vw, 480px); align-self: center; }
.mosaico img { display: block; width: 100%; object-fit: cover; }
.mosaico__portatil { height: 100%; object-position: center 45%; border-radius: var(--r); }
.mosaico__col { display: flex; flex-direction: column; gap: inherit; min-height: 0; }
.mosaico__collage { height: auto; aspect-ratio: 1536 / 1024; flex: 0 0 auto; border-radius: var(--r-xl) var(--r-xl) var(--r) var(--r); }
.mosaico__grafica { flex: 1 1 auto; min-height: 0; object-position: center 60%; border-radius: var(--r) var(--r) var(--r-xl) var(--r); }

/* ── Secciones de la portada ──────────────────────────── */
.seccion-titulo { margin: 0; font-weight: 450; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
.oscuro { background: var(--oscuro); color: var(--texto-osc); }

/* Servicios */
.servicios { max-width: 1328px; margin: 0 auto; padding: 24px var(--gutter) 112px; display: flex; flex-direction: column; gap: 24px; }
.servicio { border-top: 1px solid var(--sep); padding: 28px 0; display: flex; flex-direction: column; gap: 24px; }
.servicios__fin { border-top: 1px solid var(--sep); }
.servicio__boton { position: relative; width: 100%; background: transparent; border: none; padding: 0; text-align: left; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 24px; }
.servicio__acento { position: absolute; left: -24px; top: 50%; width: 3px; height: 56px; margin-top: -28px; border-radius: 2px; background: var(--c); }
.servicio__icono { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--c-suave); color: var(--c); }
.servicio__icono .material-symbols-rounded { font-size: 26px; width: 26px; overflow: hidden; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.servicio__cuerpo { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.servicio__num { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: .06em; color: var(--texto); font-variant-numeric: tabular-nums; }
.servicio__num .sp-linea { width: 20px; background: var(--c); opacity: 0; }
.servicio__nombre { font-size: 36px; font-weight: 450; letter-spacing: -0.025em; line-height: 1.1; }
.servicio__sub { font-size: 17px; color: var(--texto-2); line-height: 1.4; }
.sp-burbuja { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: transparent; color: var(--texto-2); box-shadow: inset 0 0 0 1px var(--sep); transition: background-color var(--t), color var(--t), box-shadow var(--t); }
.servicio__boton:hover .sp-burbuja, .servicio__boton[aria-expanded="true"] .sp-burbuja { background: var(--sep-2); color: var(--texto); box-shadow: inset 0 0 0 1px #C4C7C5; }
.servicio__boton[aria-expanded="true"] .servicio__num .sp-linea { opacity: 1; }
.servicio--1 { --c: #0B57D0; --c-suave: rgba(11, 87, 208, 0.08); }
.servicio--2 { --c: #5B3DB8; --c-suave: rgba(91, 61, 184, 0.10); }
.servicio--3 { --c: #F56B2A; --c-suave: rgba(245, 107, 42, 0.12); }
.servicio__panel { display: flex; flex-direction: column; gap: 12px; padding-left: 72px; }
.servicio__panel[hidden] { display: none; }
.servicio__tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tarjeta { background: #FFFFFF; border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tarjeta--oscura { background: var(--oscuro); color: var(--texto-osc); }
.tarjeta__rotulo { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }
.tarjeta--oscura .tarjeta__rotulo { color: var(--azul-claro); }
.tarjeta p { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
.tarjeta__enlace { margin-top: auto; padding-top: 8px; color: var(--azul-claro); font-weight: 500; font-size: 15px; }
.tarjeta .btn { margin-top: auto; align-self: flex-start; }

/* Simulador */
.sim { background: rgba(91, 61, 184, 0.08); color: var(--texto); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 24px; --nodo: 84px; }
.sim[hidden] { display: none; }
.sim__cabeza { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sim__cabeza strong { font-size: 20px; font-weight: 500; }
.sim__escenarios { display: flex; gap: 8px; }
.sim__escenarios button { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; background: transparent; color: var(--violeta); border: 1px solid rgba(91, 61, 184, 0.35); }
.sim__escenarios button[aria-pressed="true"] { background: var(--violeta); color: #FFFFFF; border-color: var(--violeta); }
.sim__pista { position: relative; }
.sim__linea { position: absolute; left: 16.66%; right: 16.66%; top: calc(var(--nodo) / 2); height: 3px; background: rgba(91, 61, 184, 0.25); border-radius: 3px; }
.sp-punto { position: absolute; top: calc(var(--nodo) / 2 - 14px); left: 16.66%; transform: translateX(-50%); height: 28px; padding: 0 12px; border-radius: 999px; background: var(--violeta); color: #FFFFFF; display: flex; align-items: center; font-size: 15px; z-index: 2; animation: spViaje 9s infinite; }
.sim__nodos { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sim__nodos li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sp-nodo { width: var(--nodo); height: var(--nodo); border-radius: 999px; background: #FFFFFF; color: var(--violeta); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 500; position: relative; z-index: 1; animation: spNodo 9s infinite; }
.sim__etiqueta { font-size: 16px; font-weight: 500; line-height: 1.25; }
.sim__textos { display: grid; background: #FFFFFF; border-radius: 20px; padding: 20px 24px; min-height: 28px; }
.sp-txt { grid-area: 1 / 1; margin: 0; font-size: 18px; line-height: 1.45; opacity: 0; animation: spTxt 9s infinite; }
.sim__nota { font-size: 13px; color: var(--texto-2); }
.sim [data-paso="2"] { animation-delay: 3s; }
.sim [data-paso="3"] { animation-delay: 6s; }
@keyframes spNodo { 0%, 30% { background: #5B3DB8; color: #FFFFFF; transform: scale(1.06); } 36%, 100% { background: #FFFFFF; color: #5B3DB8; transform: scale(1); } }
@keyframes spTxt { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes spViaje { 0% { left: 16.66%; opacity: 1; } 26%, 33% { left: 50%; opacity: 1; } 59%, 66% { left: 83.33%; opacity: 1; } 90% { left: 83.33%; opacity: 1; } 95% { left: 83.33%; opacity: 0; } 96% { left: 16.66%; opacity: 0; } 100% { left: 16.66%; opacity: 1; } }

/* Trabajos */
.trabajos__in { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 40px; }
.trabajos__cabeza { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.trabajos__titulo { grid-column: span 7; display: flex; flex-direction: column; gap: 14px; }
.trabajos__intro { grid-column: 8 / span 5; margin: 0; color: var(--texto-osc-2); line-height: 1.55; font-size: 17px; }
.trabajos__controles { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pestanas { display: flex; gap: 8px; flex-wrap: wrap; }
.pestana { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; background: transparent; color: var(--texto-osc); border: 1px solid var(--texto-3); transition: background-color var(--t), color var(--t); }
.pestana[aria-selected="true"] { border-color: transparent; }
.pestana[data-grupo="mkt"][aria-selected="true"] { background: var(--azul-claro); color: var(--azul-texto); }
.pestana[data-grupo="ia"][aria-selected="true"] { background: var(--violeta); color: #FFFFFF; }
.flechas { display: flex; justify-content: flex-end; gap: 8px; }
.flecha { width: 48px; height: 48px; border-radius: 999px; border: none; background: var(--sup-1); color: var(--texto-osc); font-size: 18px; cursor: pointer; }
.flecha--sig { background: var(--azul-claro); color: var(--azul-texto); }
.trabajos[data-grupo="ia"] .flecha--sig { background: var(--violeta); color: #FFFFFF; }
.flecha:disabled { opacity: .4; cursor: default; }
.carrusel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-top: 6px; margin-top: -6px; }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel[hidden] { display: none; }
.trabajo { flex: 0 0 380px; scroll-snap-align: start; background: var(--sup-1); border-radius: 32px; padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.trabajo__visual { height: 280px; border-radius: 24px; overflow: hidden; }
.trabajo__visual--foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trabajo__visual--logo { background: var(--fondo); display: flex; align-items: center; justify-content: center; padding: 40px; }
.trabajo__visual--logo img { display: block; width: auto; height: auto; max-width: 70%; max-height: 60%; object-fit: contain; filter: brightness(0); }
.trabajo__visual--marca { background: var(--fondo); color: var(--texto); display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.trabajo__info { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 10px; }
.trabajo__marca { font-size: 13px; color: var(--azul-claro); }
.trabajo h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.trabajo .btn { align-self: flex-start; margin-top: 6px; }

/* Estudio */
.estudio { max-width: 1328px; margin: 0 auto; padding: 112px var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.estudio__foto { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 1536; object-fit: cover; border-radius: 40px; }
.estudio__texto { display: flex; flex-direction: column; gap: 20px; }
.estudio__lead { margin: 0; font-size: 24px; font-weight: 450; line-height: 1.35; letter-spacing: -0.01em; color: var(--texto); }
.estudio__p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--texto-2); }
.estudio__cta { align-self: flex-start; font-size: 26px; font-weight: 450; line-height: 1.25; letter-spacing: -0.02em; color: var(--texto); text-decoration: none; }
.firma { display: flex; flex-direction: column; gap: 2px; }
.firma strong { font-size: 18px; font-weight: 500; }
.firma span { font-size: 15px; color: var(--texto-2); }

/* Contacto */
.contacto__in { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.contacto__titulo { margin: 0; font-weight: 450; font-size: 64px; line-height: 1.05; letter-spacing: -0.035em; }
.contacto__bajada { margin: 0; color: var(--texto-osc-2); font-size: 18px; }
.contacto__abrir { min-height: 52px; padding: 0 28px; font-size: 16px; }
.formulario { width: 100%; max-width: 560px; background: var(--sup-1); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.formulario[hidden] { display: none; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #C4C7C5; }
.campo input, .campo textarea { min-height: 48px; padding: 0 16px; border-radius: 16px; border: 1px solid #3C4043; background: var(--sup-1); color: var(--texto-osc); font-family: inherit; font-size: 16px; }
.campo textarea { padding: 14px 16px; background: var(--oscuro); resize: vertical; }
.campo [aria-invalid="true"] { border-color: #F2B8B5; }
.campo__error { color: #F2B8B5; font-size: 13px; }
.campo__error:empty { display: none; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario__enviar { min-height: 52px; border-radius: 999px; border: none; background: var(--azul-claro); color: var(--azul-texto); font-size: 16px; font-weight: 500; cursor: pointer; }
.formulario__enviar[disabled] { opacity: .7; cursor: progress; }
.formulario__error { margin: 0; color: #F2B8B5; font-size: 15px; line-height: 1.5; }
.formulario__error a { color: var(--azul-claro); }
.aviso { background: var(--sup-1); border-radius: 24px; padding: 20px 28px; font-size: 17px; }
.aviso:focus { outline: none; }

/* Pie */
.pie { max-width: 1328px; margin: 0 auto; padding: 28px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--sup-2); font-size: 14px; color: var(--texto-osc-2); }
.pie .logo svg { height: 22px; }

/* ── Casos ────────────────────────────────────────────── */
.caso-cabecera { max-width: 1328px; margin: 0 auto; height: 88px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.caso-cabecera__volver { text-decoration: none; background: var(--sep-2); padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g12 > * { grid-column: var(--col, auto); }
.c-hero { min-height: 760px; }
.c-hero > img { min-height: 0; }
.cal-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.flujo { grid-template-columns: 1fr auto 1fr auto 1fr; }
.cal-m { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }

/* ReelMockup */
.reel { width: min(300px, 100%); aspect-ratio: 9 / 19; background: var(--oscuro); border-radius: 48px; padding: 10px; flex: 0 0 auto; }
.reel__pantalla { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--oscuro); }
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.6) 100%); pointer-events: none; }
.reel__isla { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 999px; background: var(--oscuro); }
.reel__pie { position: absolute; left: 14px; right: 60px; bottom: 16px; display: flex; flex-direction: column; gap: 3px; color: #FFFFFF; text-align: left; }
.reel__pie strong { font-size: 12px; font-weight: 600; }
.reel__pie span { font-size: 11px; line-height: 1.35; color: var(--texto-osc); }
.reel__controles { position: absolute; right: 10px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.reel__btn { width: 44px; height: 44px; border-radius: 999px; border: none; background: rgba(19, 19, 20, 0.6); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel__btn svg { width: 20px; height: 20px; fill: currentColor; }
.reel__btn[hidden] { display: none; }
.reel__btn--play { display: none; }
.reel[data-sin-autoplay] .reel__btn--play { display: flex; }
.reel__btn .ico-on, .reel__btn[aria-pressed="true"] .ico-off { display: none; }
.reel__btn[aria-pressed="true"] .ico-on { display: block; }
.reel-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; background: #E2E6EE; display: flex; align-items: center; justify-content: center; }
.reel-tile .reel { width: auto; height: 88%; }
.reel-tile__enlace { position: absolute; left: 24px; bottom: 22px; font-size: 14px; color: var(--texto); background: #FFFFFF; padding: 8px 14px; border-radius: 999px; text-decoration: none; }

/* ── 404 ──────────────────────────────────────────────── */
.e404 { min-height: calc(100vh - 88px); max-width: 1328px; margin: 0 auto; padding: 48px var(--gutter) 120px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.e404 h1 { margin: 0; font-weight: 850; font-size: clamp(56px, 12vw, 168px); line-height: .9; letter-spacing: -0.055em; }
.e404 h1 span { color: var(--naranja); }
.e404 p { margin: 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--texto-2); max-width: 520px; }
.e404__acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.e404 .btn { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* ── Tablet y móvil (< 1024) ──────────────────────────── */
@media (max-width: 1023px) {
  .cabecera__nav { height: 68px; }
  .cabecera__nav .logo svg, .caso-cabecera .logo svg { height: 24px; }
  .sp-nav, .cabecera__cta, .idioma--escritorio { display: none; }
  .cabecera__menu { display: inline-flex; }
  .caso-cabecera { height: 68px; }
  .caso-cabecera__volver { padding: 10px 16px; font-size: 14px; }

  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; padding-bottom: 56px; }
  .hero__texto { gap: 20px; }
  .hero h1 { font-size: clamp(52px, 8vw, 72px); }
  .mosaico { --r: clamp(28px, 3.6vw, 40px); --r-xl: clamp(88px, 14vw, 140px); gap: 12px; height: clamp(400px, 52vw, 480px); width: 100%; }

  .servicios { padding-top: 40px; padding-bottom: 64px; gap: 16px; }
  .seccion-titulo { font-size: clamp(36px, 6vw, 48px); }
  .servicio__panel { padding-left: 0; }
  .servicio__nombre { font-size: clamp(24px, 4vw, 32px); }

  .trabajos__in { padding-top: 64px; padding-bottom: 64px; gap: 24px; }
  .trabajos__cabeza { grid-template-columns: 1fr; gap: 14px; }
  .trabajos__titulo, .trabajos__intro { grid-column: auto; }
  .trabajos__intro { font-size: 15px; }
  .carrusel { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scroll-padding-right: var(--gutter); }
  .trabajo { flex-basis: 330px; }
  .trabajo__visual { height: 240px; }

  .estudio { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .estudio__foto { border-radius: 32px; }
  .contacto__in { padding-top: 88px; padding-bottom: 88px; }
  .contacto__titulo { font-size: clamp(40px, 7vw, 56px); }

  /* Casos: lectura vertical */
  .g12 { grid-template-columns: minmax(0, 1fr); }
  .g12 > * { grid-column: 1 / -1; }
  .g4, .cal-q { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-m { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .c-hero { min-height: 0; padding: clamp(24px, 4vw, 40px) !important; gap: 28px !important; }
  .c-hero > img { height: auto !important; aspect-ratio: 4 / 3; }
  .reel-tile { aspect-ratio: auto; padding: 32px 16px 76px; }
  .reel-tile .reel { height: auto; width: min(280px, 100%); }
  .c-hero > div:last-child:not(:first-child) { min-height: clamp(240px, 40vw, 360px); }
}

@media (max-width: 767px) {
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .flujo { grid-template-columns: minmax(0, 1fr); }
  .flujo > [aria-hidden="true"] { transform: rotate(90deg); line-height: 1; }
  .servicio__tarjetas { grid-template-columns: 1fr; }
  .estudio { grid-template-columns: 1fr; gap: 24px; }
  .estudio__foto { max-width: 560px; }
}

/* ── Móvil (< 640) ────────────────────────────────────── */
@media (max-width: 639px) {
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero__bajada { font-size: 17px; }
  .hero__cta { align-self: stretch; }
  .mosaico { height: clamp(340px, 96vw, 400px); }

  .servicio { padding: 18px 0; gap: 16px; }
  .servicio__boton { gap: 14px; }
  .servicio__acento { left: -12px; height: 44px; margin-top: -22px; }
  .servicio__icono { width: 40px; height: 40px; }
  .servicio__icono .material-symbols-rounded { font-size: 22px; width: 22px; }
  .servicio__nombre { font-size: 24px; }
  .servicio__sub { font-size: 15px; }
  .tarjeta p { font-size: 17px; }
  .sim { padding: 18px; gap: 18px; --nodo: 64px; }
  .sim__cabeza strong { font-size: 17px; }
  .sp-nodo { font-size: 20px; }
  .sim__etiqueta { font-size: 13px; }
  .sim__textos { padding: 16px; min-height: 48px; }
  .sp-txt { font-size: 16px; }

  .trabajo { flex-basis: 290px; }
  .trabajo__visual { height: 220px; }
  .trabajo__visual--marca { font-size: 24px; }
  .estudio__lead { font-size: 21px; }
  .estudio__p { font-size: 17px; }
  .estudio__cta { font-size: 22px; }
  .estudio__foto { border-radius: 28px; }

  .contacto__in { padding-top: 72px; padding-bottom: 72px; align-items: stretch; text-align: left; }
  .contacto__in > .contacto__flor { align-self: flex-start; }
  .contacto__in > .sp-linea { align-self: center; }
  .contacto__titulo { font-size: 40px; }
  .contacto__abrir { align-self: stretch; }
  .formulario { padding: 20px; }
  .pie { flex-direction: column; align-items: flex-start; gap: 14px; }

  .g4 { gap: 16px !important; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .cal-q { grid-template-columns: minmax(0, 1fr); }
  .cal-m { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-m > * { min-height: 110px !important; }
  .c-hero { border-radius: 28px !important; }
}

@media (max-width: 420px) {
  .caso-cabecera__acciones { gap: 8px; }
  .caso-cabecera .idioma a { padding: 6px 8px; min-width: 0; }
  .caso-cabecera__volver { padding: 10px 12px; }
}

@media (max-width: 380px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
}

/* ── Movimiento reducido ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sp-nodo, .sp-txt, .sp-punto { animation: none; }
  .sp-txt { opacity: 1; grid-area: auto; }
  .sim__textos { gap: 8px; }
  .sp-card, .sp-card::before, .sp-nav a::after, .sp-burbuja, .sp-linea--activa, .btn, .pestana { transition: none; }
  .sp-card:hover, .sp-card:focus-within { transform: none; }
}
