/* ============================================================
   Grupo 414 — Core (identidad compartida por los 6 sitios)
   Tokens, reset, nav, footer, botones, formulario, acordeón,
   banner de cookies, legales. Lo propio de cada sitio vive en
   assets/css/site.css y solo redefine --line-* y sus secciones.
   ============================================================ */

/* ====== TOKENS ====== */
:root {
  /* Marca del grupo (logo) */
  --navy: #2B3A5C;
  --navy-dark: #1E2D4D;
  --navy-deep: #141F36;
  --navy-light: #3A5A8C;
  --blue-accent: #4A7CC9;
  --blue-pale: #E8EEF6;
  --blue-wash: #F0F5FC;

  /* Acento de línea: cada site.css lo redefine. Default = grupo */
  --line-accent: #4A7CC9;
  --line-accent-soft: #EAF1FB;
  --line-ink: #24508F;

  /* Fondos */
  --bg-base: #FFFFFF;
  --bg-section: #F6F8FB;
  --bg-card: #FFFFFF;
  --bg-input: #F9FAFB;

  /* Texto */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #5B6472;
  --text-dim: #8A93A1;

  /* Bordes */
  --border-subtle: rgba(43, 58, 92, 0.08);
  --border-light: rgba(43, 58, 92, 0.14);
  --border-hover: rgba(43, 58, 92, 0.28);

  /* Sombras tintadas con navy, en capas */
  --shadow-xs: 0 1px 2px rgba(30, 45, 77, 0.05);
  --shadow-sm: 0 1px 2px rgba(30, 45, 77, 0.04), 0 2px 8px rgba(30, 45, 77, 0.06);
  --shadow-md: 0 2px 4px rgba(30, 45, 77, 0.04), 0 8px 24px rgba(30, 45, 77, 0.08);
  --shadow-lg: 0 4px 8px rgba(30, 45, 77, 0.05), 0 18px 48px rgba(30, 45, 77, 0.12);

  /* Tipografía */
  --font-display: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-body: 'Montserrat', 'Helvetica Neue', Helvetica, sans-serif;

  /* Espaciado */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 48px; --space-2xl: 80px; --space-3xl: 112px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1180px;

  /* Radios */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-fast: 0.2s; --duration-normal: 0.4s; --duration-slow: 0.7s;

  --nav-h: 64px;
}

/* ====== RESET ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg-base); color: var(--text-primary);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy-dark); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--line-accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 2000; padding: 10px 16px;
  background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 12px; letter-spacing: 1px;
  transition: transform var(--duration-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(64px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Motivo de marca: "esquineros" de contenedor (las piezas del cubo 414) */
.cast { position: relative; }
.cast::after {
  content: ''; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  --c: var(--cast-color, var(--navy));
  background:
    linear-gradient(var(--c), var(--c)) top left / 7px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 7px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 7px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 7px 7px no-repeat;
  opacity: 0.85;
}

/* ====== NAV ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow-sm); }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 38px; width: auto; }
.nav-brand-text { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--navy); }
.nav-brand-text em { font-style: normal; color: var(--blue-accent); }
.nav-line-tag {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--line-ink); padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--line-accent-soft); border: 1px solid color-mix(in srgb, var(--line-accent) 30%, transparent);
}
.nav-mid { display: flex; align-items: center; gap: 28px; }
.nav-mid > a, .nav-drop-btn {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase; padding: 8px 0; transition: color var(--duration-fast);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-mid > a:hover, .nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--navy); }
.nav-drop-btn svg { width: 10px; height: 10px; transition: transform var(--duration-fast); }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 330px;
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 769px) {
  .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.line-link {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-md); color: var(--text-secondary);
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.line-link:hover, .line-link:focus-visible { background: var(--ll-soft, var(--blue-wash)); color: var(--navy-dark); }
.line-link:active { transform: scale(0.99); }
.line-link .ll-icon {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ll-soft, var(--blue-wash)); color: var(--ll-ink, var(--navy));
}
.line-link .ll-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.line-link .ll-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.line-link .ll-num { font-family: var(--font-display); font-size: 10px; letter-spacing: 1px; color: var(--ll-ink, var(--text-dim)); }
.nav-drop-foot { border-top: 1px solid var(--border-subtle); margin-top: 6px; padding: 8px 12px 4px; }
.nav-drop-foot a { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.nav-drop-foot a:hover { color: var(--navy); }

.lang-toggle {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; color: var(--text-muted);
  padding: 7px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.lang-toggle:hover { border-color: var(--border-hover); color: var(--navy); }
.lang-toggle:active { transform: scale(0.97); }
.lang-toggle .flag { font-size: 14px; line-height: 1; }
.nav-cta {
  padding: 10px 22px; background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  transition: background-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.nav-cta:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-cta:active { transform: translateY(0); }

.nav-burger { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-burger span { width: 22px; height: 2px; background: var(--navy); display: block; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.99); overflow-y: auto;
  padding: var(--space-lg) var(--gutter) var(--space-xl);
  display: flex; flex-direction: column; gap: 4px;
}
.nav-mobile > a {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-secondary); padding: 14px 0; border-bottom: 1px solid var(--border-subtle);
}
.nav-mobile > a:hover { color: var(--navy); }
.nav-mobile-label { font-family: var(--font-display); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin: 18px 0 6px; }
.nav-mobile .line-link { padding: 10px 4px; }
.nav-mobile .lang-toggle { align-self: flex-start; margin-top: 20px; }

/* ====== BOTONES ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-line { background: var(--line-ink); color: #fff; }
.btn-line:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 1px solid var(--border-hover); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--navy); background: var(--blue-wash); }
.btn-wa { background: #1F9E52; color: #fff; }
.btn-wa:hover { background: #17803F; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31, 158, 82, 0.28); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
/* Sobre fondos oscuros (héroes de las landings) */
.btn-accent { background: var(--line-accent-soft); color: var(--line-ink); font-weight: 600; box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-accent) 40%, transparent); }
.btn-accent:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-accent), 0 14px 34px color-mix(in srgb, var(--line-accent) 35%, transparent); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.eyebrow.eyebrow--light { color: rgba(255, 255, 255, 0.82); }
.eyebrow.eyebrow--light::before { background: var(--line-accent); }

/* ====== ENCABEZADOS DE SECCIÓN ====== */
.section { padding: var(--space-3xl) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--line-ink);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--line-accent); }
.section-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 300; letter-spacing: -1px; margin-top: 14px; }
.section-title strong { font-weight: 700; }
.section-lead { font-size: 17px; color: var(--text-secondary); max-width: 620px; margin-top: 16px; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ====== ACORDEÓN ACCESIBLE ====== */
.acc { border-top: 1px solid var(--border-light); }
.acc-item { border-bottom: 1px solid var(--border-light); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 20px 4px; font-size: 16px; font-weight: 600; color: var(--navy-dark);
  transition: color var(--duration-fast);
}
.acc-trigger:hover { color: var(--line-ink); }
.acc-trigger .acc-num { font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; color: var(--line-ink); min-width: 26px; }
.acc-trigger .acc-icon {
  margin-left: auto; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--border-light); display: grid; place-items: center;
  transition: transform 0.3s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.acc-trigger .acc-icon::before { content: '+'; font-family: var(--font-display); font-size: 15px; line-height: 1; color: var(--line-ink); }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); background: var(--line-accent-soft); border-color: var(--line-accent); }
.acc-panel { padding: 0 4px 22px 46px; color: var(--text-secondary); font-size: 15px; line-height: 1.75; max-width: 760px; }

/* ====== CONTACTO / FORMULARIO ====== */
.contact { background: var(--bg-section); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.25fr; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--bg-card); box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle);
}
.contact-info { padding: var(--space-xl); background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%); color: #fff; position: relative; overflow: hidden; }
.contact-info::before {
  content: ''; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(160deg, #000 10%, transparent 70%); -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
}
.contact-info > * { position: relative; }
.contact-info h3 { color: #fff; font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.contact-info > p { color: rgba(255, 255, 255, 0.78); font-size: 15px; margin-bottom: 28px; }
.ci { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.ci strong { display: block; font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 500; margin-bottom: 3px; }
.ci a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.25); transition: border-color var(--duration-fast); }
.ci a:hover { border-color: #fff; }
.ci-social { display: flex; gap: 10px; margin-top: 22px; }
.ci-social a, .social-row a {
  width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.ci-social a:hover, .social-row a:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.ci-social svg, .social-row svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, 0.85); }

.contact-form { padding: var(--space-xl); }
.fr { margin-bottom: 18px; }
.fr-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.fr label { display: block; font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.fr label .req { color: var(--line-ink); }
.fr input, .fr textarea, .fr select {
  width: 100%; padding: 14px 16px; background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.fr input:focus, .fr textarea:focus, .fr select:focus { outline: none; border-color: var(--line-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--line-accent) 18%, transparent); }
.fr input[aria-invalid="true"] { border-color: #C53030; }
.fr textarea { resize: vertical; min-height: 110px; }
.fr select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232B3A5C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.form-note a { color: var(--line-ink); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-status.success { background: #E8F6EE; border: 1px solid #A7DDBE; color: #146C3C; }
.form-status.error { background: #FCECEC; border: 1px solid #F1B5B5; color: #A12626; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* ====== BANDA "OTRAS LÍNEAS" ====== */
.others { background: var(--navy-deep); color: #fff; padding: var(--space-2xl) 0; position: relative; overflow: hidden; }
.others .section-title { color: #fff; }
.others .eyebrow { color: rgba(255, 255, 255, 0.7); }
.others .section-lead { color: rgba(255, 255, 255, 0.7); }
.others-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.other-card {
  --cast-color: var(--oc-accent);
  display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out), border-color var(--duration-normal);
}
.other-card:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--oc-accent); transform: translateY(-4px); }
.other-card:active { transform: translateY(-1px); }
.other-card .oc-num { font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; color: var(--oc-accent); }
.other-card .oc-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.3; color: #fff; }
.other-card .oc-go { margin-top: auto; font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); transition: color var(--duration-fast); }
.other-card:hover .oc-go { color: #fff; }

/* ====== FOOTER ====== */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.72); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1.3fr 0.9fr 1fr; gap: 40px; padding: 64px var(--gutter) 44px; max-width: var(--maxw); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand span { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.footer-brand span em { font-style: normal; color: rgba(255, 255, 255, 0.6); }
.footer-col h4 { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; font-weight: 500; }
.footer-col p { font-size: 13px; color: rgba(255, 255, 255, 0.62); line-height: 1.75; }
.footer-col a, .footer-col button { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.66); padding: 5px 0; text-align: left; transition: color var(--duration-fast); }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-col .fl-num { font-family: var(--font-display); font-size: 10px; margin-right: 8px; opacity: 0.7; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--gutter); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom-links a, .footer-bottom-links button { font-size: 12px; color: rgba(255, 255, 255, 0.6); transition: color var(--duration-fast); }
.footer-bottom-links a:hover, .footer-bottom-links button:hover { color: #fff; }

/* ====== WHATSAPP FLOTANTE ====== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 990; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5); }
.wa-float:active { transform: scale(0.98); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float .wa-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(37, 211, 102, 0.45); animation: waPulse 2.4s ease-in-out infinite; }
@keyframes waPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.16); opacity: 0; } }

/* ====== BANNER DE COOKIES ====== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100; max-width: 620px;
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center;
  animation: cookieIn 0.5s var(--ease-out) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.cookie-banner p a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { padding: 11px 18px; font-size: 11px; letter-spacing: 1.5px; }

/* ====== MOTION ======
   Curvas fuertes (Emil Kowalski): entrar = ease-out, moverse = ease-in-out. */
.reveal { opacity: 0; transform: translateY(24px) scale(0.985); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Entrada del héroe: cascada al cargar (.intro con --i) */
.js .intro { animation: introUp 0.9s var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
@keyframes introUp { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Títulos palabra por palabra ([data-split]) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
[data-split].split-in .w > span { transform: none; }

/* Líneas que se dibujan ([data-draw]) */
[data-draw] { transform: scaleX(0); transform-origin: left center; transition: transform 1.4s var(--ease-in-out); }
[data-draw].drawn { transform: scaleX(1); }
[data-draw="y"] { transform: scaleY(0); transform-origin: top center; }
[data-draw="y"].drawn { transform: scaleY(1); }

/* Tarjetas con inclinación 3D y brillo que sigue al puntero ([data-tilt]) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.tilt-glow {
  position: absolute; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(255, 255, 255, 0.55)), transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ease-out); mix-blend-mode: soft-light; z-index: 0;
}
[data-tilt].tilting .tilt-glow { opacity: 1; }

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--line-accent), var(--navy-light)); pointer-events: none; }

/* Pulsación: todo lo pulsable responde */
.btn:active, .line-link:active, .nav-cta:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .js .intro { animation: none; }
  [data-split] .w > span, [data-draw] { transform: none; }
}

/* ====== LEGALES ====== */
.legal { padding: calc(var(--nav-h) + 56px) var(--gutter) var(--space-3xl); max-width: 820px; margin: 0 auto; }
.legal .back { display: inline-flex; gap: 6px; font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--line-ink); margin-bottom: 28px; }
.legal .back:hover { color: var(--navy); }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.legal .legal-site { font-family: var(--font-display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--line-ink); margin-bottom: 6px; }
.legal .updated { font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin: 34px 0 12px; color: var(--navy); }
.legal p, .legal li { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 8px 0 16px 22px; }
.legal li { list-style: disc; margin-bottom: 6px; }
.legal a { color: var(--line-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; color: var(--text-secondary); }
.legal th { font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.legal .table-scroll { overflow-x: auto; }
.legal .legal-address { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border-light); }

/* ====== 404 ====== */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; }
.notfound .nf-code { font-family: var(--font-display); font-size: clamp(72px, 14vw, 140px); font-weight: 700; color: var(--line-accent-soft); -webkit-text-stroke: 2px var(--line-accent); line-height: 1; }
.notfound p { margin: 16px auto 28px; color: var(--text-secondary); max-width: 440px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .nav-mid { gap: 20px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .others-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-mid, .nav-right .nav-cta, .nav-right .lang-toggle { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .fr-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 32px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cookie-actions .btn { width: auto; flex: 1; }
}
@media (max-width: 480px) {
  .nav-line-tag { display: none; }
  .others-grid { grid-template-columns: 1fr; }
  .acc-panel { padding-left: 4px; }
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .legal { padding-top: calc(var(--nav-h) + 32px); }
}
