/* IA Benidorm — estilos de la web pública (sin dependencias)
   Identidad: la de Agencia IA Benidorm (mismos colores, tipografías y símbolo); solo cambia el nombre. */

/* Tipografías de Agencia IA Benidorm, autoalojadas (OFL): DM Sans (texto) y Space Grotesk (títulos) */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/dm-sans-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;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/space-grotesk-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;
}

:root {
  /* Colores de Agencia IA Benidorm (tokens oklch de su web, con equivalente hex) */
  --brand-ink: #05122E;        /* --ink        oklch(19% .06 262) */
  --brand-electric: #142F5B;   /* --electric   oklch(31% .085 260) */
  --brand-turquoise: #12B0B6;  /* --turquoise  oklch(69% .115 199) */
  --gradient-accent: linear-gradient(100deg, var(--brand-electric), var(--brand-turquoise));
  --gradient-ink: linear-gradient(160deg, #07183A, #01081D);

  --navy-900: #01081D;
  --navy: var(--brand-ink);
  --navy-700: var(--brand-electric);
  --teal: var(--brand-turquoise);
  --teal-dark: #0A7D82;        /* turquesa oscurecido solo para texto sobre fondo claro (contraste AA) */
  --teal-light: var(--brand-turquoise);
  --ink: #020618;
  --muted: #56677F;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F1F5F9;
  --bg-tint: #E7F7F8;
  --header-bg: #EAF5FF;       /* azul claro suave, tono del azul eléctrico de la agencia: oklch(96.5% .018 245) */
  --radius: 16px;
  --radius-sm: 10px;           /* = --radius .625rem de la agencia */
  --shadow: 0 1px 2px rgba(5, 18, 46, .06), 0 8px 24px rgba(5, 18, 46, .07);
  --shadow-hover: 0 2px 4px rgba(5, 18, 46, .08), 0 16px 40px rgba(5, 18, 46, .12);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --container: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Foco visible */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--brand-electric) var(--gradient-accent); background-origin: border-box; color: #fff; box-shadow: 0 6px 18px rgba(5, 18, 46, .2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 18, 46, .26); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-tint); }

.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-electric); margin-bottom: .9em;
}

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-top: 2px solid transparent;
  border-image: var(--gradient-accent) 1;
  border-image-width: 2px 0 0 0;
  background: rgba(234, 245, 255, .94); /* --header-bg con leve transparencia para el desenfoque */
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(5, 18, 46, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

/* Logotipo: símbolo original de la agencia + nombre, como en la cabecera de agenciaiabenidorm.com */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { height: 36px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: .69rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-electric); white-space: nowrap; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 999px; white-space: nowrap;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, .8); color: var(--navy); }
/* Sección activa: azul eléctrico (contraste 12:1 sobre el azul claro) + subrayado degradado como en la agencia */
.site-nav a[aria-current="true"] { color: var(--brand-electric); background-image: var(--gradient-accent); background-size: calc(100% - 24px) 2px; background-position: center calc(100% - 6px); background-repeat: no-repeat; }
.site-nav .nav-cta { background: var(--brand-electric) var(--gradient-accent); color: #fff; padding-inline: 18px; margin-left: 6px; }
.site-nav .nav-cta:hover { color: #fff; background: var(--brand-electric) var(--gradient-accent); box-shadow: 0 6px 16px rgba(5, 18, 46, .2); }
.site-nav .nav-cta[aria-current="true"] { color: #fff; background: var(--brand-electric) var(--gradient-accent); background-size: auto; background-position: 0 0; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 14px; width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .25s, opacity .2s; content: "";
}
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before { left: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--header-bg); border-bottom: 1px solid #D3E3F3;
    box-shadow: 0 16px 30px rgba(5, 18, 46, .1);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; }
  .site-nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(20, 179, 191, .14), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(91, 123, 216, .10), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal-dark); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.network { width: 100%; height: auto; overflow: visible; }
.network .faint { opacity: .35; stroke-dasharray: 4 6; }
.network .nodes > circle { fill: var(--teal); opacity: .6; }
.network .node-card circle { fill: #fff; stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 6px 12px rgba(5, 18, 46, .1)); }
.network .node-card text { font: 600 12px var(--font-display); fill: var(--navy); text-anchor: middle; }
.network .node-core circle { fill: var(--navy); filter: drop-shadow(0 12px 24px rgba(5, 18, 46, .3)); }
.network .node-core text { font: 600 26px var(--font-display); fill: #fff; text-anchor: middle; letter-spacing: .04em; }
.network .node-core text.small { font-size: 10px; font-weight: 600; letter-spacing: .25em; fill: var(--teal-light); }
.network .node-card { animation: float 6s ease-in-out infinite; }
.network .node-card:nth-of-type(2) { animation-delay: -1.5s; }
.network .node-card:nth-of-type(3) { animation-delay: -3s; }
.network .node-card:nth-of-type(4) { animation-delay: -4.5s; }
@keyframes float { 50% { translate: 0 -6px; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 380px; margin-inline: auto; width: 100%; }
}

/* Secciones */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.note {
  border-left: 3px solid var(--teal); padding: 6px 0 6px 14px; color: var(--ink) !important;
  font-weight: 600; font-size: .98rem;
}
.disclaimer { font-size: .9rem; color: var(--muted); margin-top: 24px; }
.examples-label { font-weight: 700; color: var(--navy); margin: 40px 0 16px; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted);
  border: 1px solid var(--line); margin-bottom: 14px;
}
.badge-pilot { background: #FFF4DE; color: #7A4B00; border-color: #F3D9A4; }
.badge-dev { background: #E8EEFC; color: #233F8F; border-color: #C9D5F4; }
.badge-lab { background: #F3EAFB; color: #5E2D86; border-color: #DEC9EF; }
.badge-own { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* Áreas */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.area-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.area-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); margin-bottom: 18px;
}
.area-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { text-decoration: underline; }
@media (max-width: 1020px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .area-grid { grid-template-columns: 1fr; } }

/* Hoteles */
.hotels { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.split .section-head { margin-bottom: 0; }
.split .btn { margin-top: 8px; }
.tiers { display: grid; gap: 16px; counter-reset: none; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); position: relative;
}
.tier + .tier::before {
  content: ""; position: absolute; left: 47px; top: -17px; width: 2px; height: 16px; background: var(--teal);
}
.tier-top { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.tier-step {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700;
}
.tier h3 { margin: 0; }
.persona { color: var(--teal-dark); font-weight: 600; }
.tier-tag { margin: 2px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tier > p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Negocios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefits li {
  background: var(--bg-tint); border-radius: var(--radius); padding: 20px 22px; color: var(--ink);
}
.benefits strong { display: block; color: var(--navy); font-size: 1.1rem; }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.sector-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.business .center .btn { margin-top: 16px; }
@media (max-width: 1020px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .benefits, .sector-grid { grid-template-columns: 1fr; } }

/* Voz */
.voice { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.voice-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.voice-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start;
}
.voice-card p { color: var(--muted); }
.voice-card.featured {
  background: radial-gradient(ellipse at 100% 0%, rgba(44, 208, 219, .25), transparent 60%), var(--navy);
  color: #fff; border: 0;
}
.voice-card.featured h3 { color: #fff; font-size: 1.5rem; }
.voice-card.featured p { color: #D5DEEE; }
.voice-card.featured .btn { margin-top: auto; }
@media (max-width: 1020px) {
  .voice-grid { grid-template-columns: 1fr 1fr; }
  .voice-card.featured { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .voice-grid { grid-template-columns: 1fr; } }

/* I+D */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.process li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -21px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.process-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--teal-dark); margin-bottom: 8px; }
.process h3 { font-size: 1.08rem; }
.process p { color: var(--muted); font-size: .96rem; margin: 0; }
.examples { max-width: 820px; margin: 0 auto; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li {
  padding: 10px 18px; border-radius: 999px; background: var(--bg-tint);
  color: var(--navy); font-weight: 600; font-size: .95rem;
}
.rnd .center .btn { margin-top: 24px; }
@media (max-width: 1020px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Sobre */
.about { background: var(--navy-900) var(--gradient-ink); color: #D5DEEE; }
.about h2 { color: #fff; }
.about .eyebrow { color: var(--brand-turquoise); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.about-copy p { font-size: 1.12rem; }
.values { display: grid; gap: 12px; margin-top: 28px; }
.values li { padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm); }
.values strong { color: #fff; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 0; } }

/* Contacto */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow);
}
.form-notice {
  background: #FFF4DE; border: 1px solid #F3D9A4; color: #5C3900;
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 22px; font-size: .95rem;
}
.form-notice.is-hidden { display: none; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #B9C4D6; border-radius: var(--radius-sm); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid rgba(20, 179, 191, .45); outline-offset: 1px; border-color: var(--teal-dark);
}
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.privacy-note { font-size: .88rem; color: var(--muted); }
.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.form-status p { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status .is-info { background: #FFF4DE; color: #5C3900; border: 1px solid #F3D9A4; }
.form-status .is-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F5C2BC; }
.form-status .is-ok { background: #E6F6EC; color: #145C2E; border: 1px solid #B6E2C4; }
.contact-form .btn { width: 100%; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 8px; } }

/* Pie */
.site-footer { background: var(--navy-900); color: #B7C3D9; padding: 56px 0 28px; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-tile { display: inline-grid; place-items: center; width: 44px; height: 36px; border-radius: 12px; background: #fff; flex: none; }
.brand-tile .brand-mark { height: 24px; }
.brand-footer .brand-sub { color: var(--brand-turquoise); }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: #D5DEEE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Aparición suave al hacer scroll (solo si JS está activo) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .network .pulses { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Contacto por correo y enlaces legales */
.mail-direct { margin: 18px 0 0; font-size: .95rem; color: var(--muted); text-align: center; }
.mail-direct a { font-weight: 700; overflow-wrap: anywhere; }
.site-footer p a { overflow-wrap: anywhere; }
.legal-links { display: flex !important; flex-wrap: wrap; gap: 6px 18px !important; }

/* Páginas legales */
.legal-page { padding: clamp(40px, 7vw, 80px) 0; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal-page h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--ink); }
.legal-page ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal-page dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
.legal-page dt { font-weight: 700; color: var(--navy); }
.legal-page dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal-page dl { grid-template-columns: 1fr; } .legal-page dd { margin-bottom: 8px; } }
.draft-banner {
  background: #FFF4DE; border: 1px solid #F3D9A4; color: #5C3900;
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px;
}
.pending { background: #FDECEA; color: #8A1C12; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: .92em; }
.back-link { display: inline-block; margin-top: 32px; font-weight: 700; }
.btn-back { min-height: 42px; padding: 8px 18px; white-space: nowrap; font-size: .92rem; }
@media (max-width: 440px) { .btn-back { padding-inline: 12px; } .header-inner:has(.btn-back) .brand-text { display: none; } }
.contact-form .btn-otro { width: 100%; margin-top: 12px; }
.contact-form .btn-otro[hidden] { display: none; }
.contact-form .btn:disabled { cursor: default; opacity: .7; transform: none; }

/* Menú de escritorio en una sola línea: por debajo de 1180 px pasa a desplegable (los textos en español e
   inglés no caben en una fila con el selector de idioma). */

/* Selector de idioma ES / EN, siempre visible en la cabecera (modelo de Agencia IA Benidorm):
   escritorio → a la derecha del menú; móvil → junto al botón del menú, fuera del desplegable.
   Banderas: los mismos dibujos SVG de la agencia (assets/img/bandera-*.svg). */
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 999px; background: #fff; border: 1px solid #D3E3F3;
}
.site-header .lang-switch a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px;
  border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); text-decoration: none; opacity: .75;
  transition: background-color .2s, opacity .2s, box-shadow .2s;
}
.site-header .lang-switch a:hover { background: var(--bg-soft); opacity: 1; color: var(--navy); }
/* Idioma activo: fondo azul claro, anillo azul eléctrico y texto en negrita */
.site-header .lang-switch a[aria-current="true"] {
  opacity: 1; color: var(--brand-electric); font-weight: 800;
  background: var(--header-bg); box-shadow: inset 0 0 0 2px var(--brand-electric);
}
.lang-flag { width: 22px; height: 15px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
@media (min-width: 1181px) {
  /* Escritorio: marca | menú | selector (en el código, el selector va antes del menú para el móvil).
     La cabecera tiene como máximo ~1112 px útiles: selector compacto y enlaces algo más juntos. */
  .site-nav { order: 1; margin-left: auto; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding-inline: 10px; }
  .header-tools { order: 2; margin-left: 8px; }
  .site-header .lang-switch a { gap: 5px; padding-inline: 8px; }
  .lang-flag { width: 20px; height: 14px; }
}
@media (max-width: 1180px) {
  /* Cabecera móvil: selector compacto junto al botón del menú */
  .site-header .lang-switch a { min-height: 40px; gap: 4px; padding-inline: 6px; }
  .header-tools { gap: 6px; }
}
@media (max-width: 440px) {
  /* Para que quepan logotipo, selector ES / EN y menú: la marca muestra solo el nombre */
  .header-inner > .brand .brand-sub { display: none; }
  .header-inner > .brand .brand-name { font-size: .95rem; }
}
@media (max-width: 368px) {
  /* Pantallas muy estrechas: solo el símbolo (el nombre sigue en el aria-label del enlace) */
  .header-inner > .brand .brand-text { display: none; }
}

/* Cabecera de las páginas legales: selector de idioma + volver */
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 600px) {
  /* El texto de «volver» queda para lectores de pantalla; se ve solo la flecha (deja sitio al selector con banderas) */
  .btn-back .back-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-back { min-width: 44px; padding-inline: 12px; }
}
