/* =========================================================
   JMV AutoGlass — colores del logo: azul marino, rojo y dorado
   ========================================================= */
:root {
  --navy-950: #050c22;
  --navy-900: #0b1b3f;
  --navy-800: #122655;
  --navy-700: #1b3470;
  --blue: #1f3a93;
  --blue-400: #4f7de0;
  --sky: #9fd0ff;
  --red: #c8102e;
  --red-600: #a50d26;
  --red-glow: rgba(200, 16, 46, .45);
  --gold: #d4a02a;
  --gold-300: #f0c75e;
  --ink: #0e1630;
  --text: #33405e;
  --muted: #66728d;
  --line: #e3e8f2;
  --paper: #f6f8fc;
  --white: #fff;
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .16);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(11, 27, 63, .45);
  --shadow-lg: 0 40px 80px -30px rgba(5, 12, 34, .6);
  --font: 'Inter Variable', 'Inter', system-ui, sans-serif;
  --display: 'Outfit Variable', 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
  /* Curva del parabrisas del logo: más ancho abajo, arco arriba */
  --windshield: polygon(7% 12%, 20% 6%, 35% 3%, 50% 2%, 65% 3%, 80% 6%, 93% 12%, 100% 96%, 50% 92%, 0% 96%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.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; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: .01em; background: var(--bg); color: var(--fg);
  border: 1.5px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-red { --bg: var(--red); box-shadow: 0 14px 30px -12px var(--red-glow); }
.btn-red:hover { --bg: #d81436; box-shadow: 0 20px 40px -14px var(--red-glow); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); }
.btn-glass { --bg: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { --bg: rgba(255, 255, 255, .18); }
.btn-outline { --bg: transparent; --fg: var(--ink); border-color: rgba(14, 22, 48, .2); }
.btn-outline:hover { border-color: var(--ink); --bg: var(--ink); --fg: var(--white); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.04rem; }
.btn-sm { padding: .6em 1.1em; font-size: .86rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-family: var(--display); font-weight: 600; color: var(--blue); }
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover .icon, a:hover .text-link .icon { transform: translateX(4px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker-gold { color: var(--gold-300); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(14, 22, 48, .06); transition: background .35s, border-color .35s, height .35s; }
.has-hero .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-scrolled, .site-header.is-scrolled { background: rgba(8, 18, 45, .82); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: rgba(255, 255, 255, .08); --header-h: 72px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); transition: height .35s; }
.is-scrolled .brand img { height: 44px; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { position: relative; display: block; padding: 8px 12px; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: .96rem; color: var(--ink); transition: color .2s, background .2s; }
.main-nav ul a:hover { background: rgba(31, 58, 147, .08); }
.main-nav ul a.is-active { color: var(--red); }
.has-hero .main-nav ul a, .is-scrolled .main-nav ul a { color: rgba(255, 255, 255, .86); }
.has-hero .main-nav ul a:hover, .is-scrolled .main-nav ul a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.has-hero .main-nav ul a.is-active, .is-scrolled .main-nav ul a.is-active { color: var(--gold-300); }
.nav-extra { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.nav-phone .icon { color: var(--red); }
.has-hero .nav-phone, .is-scrolled .nav-phone { color: var(--white); }
.has-hero .nav-phone .icon, .is-scrolled .nav-phone .icon { color: var(--gold-300); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(14, 22, 48, .15); font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
.lang-switch:hover { border-color: var(--blue); background: rgba(31, 58, 147, .06); }
.lang-current { color: var(--ink); }
.lang-sep, .lang-other { color: var(--muted); }
.has-hero .lang-switch, .is-scrolled .lang-switch { color: var(--white); border-color: rgba(255, 255, 255, .25); }
.has-hero .lang-current, .is-scrolled .lang-current { color: var(--white); }
.has-hero .lang-sep, .has-hero .lang-other, .is-scrolled .lang-sep, .is-scrolled .lang-other { color: rgba(255, 255, 255, .55); }
.lang-switch:hover .lang-other { color: var(--gold); }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(14, 22, 48, .15); background: transparent; position: relative; cursor: pointer; margin-left: auto; color: var(--ink); }
.has-hero .nav-toggle, .is-scrolled .nav-toggle { color: var(--white); border-color: rgba(255, 255, 255, .25); }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 28px; right: 19px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; right: 13px; transform: rotate(-45deg); }
@media (max-width: 1180px) { .nav-phone span { display: none; } .main-nav ul a { padding: 8px 9px; font-size: .92rem; } }
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; z-index: 2; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 34px; margin: 0; background: radial-gradient(circle at 70% 20%, #1b3470, var(--navy-950) 65%); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 2px; }
  .main-nav ul a, .has-hero .main-nav ul a, .is-scrolled .main-nav ul a { color: var(--white); font-size: 1.7rem; font-weight: 600; padding: 8px 20px; }
  .nav-extra { flex-direction: column; gap: 18px; }
  .nav-phone, .has-hero .nav-phone { color: var(--white); font-size: 1.2rem; }
  .nav-phone span { display: inline; }
  .lang-switch { color: var(--white); border-color: rgba(255, 255, 255, .3); }
  .lang-current { color: var(--white); }
  .nav-open { overflow: hidden; }
  .nav-open .brand { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; color: var(--white); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 80% 60% at 75% 40%, #1d3a8a 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 10% 90%, #3a0f2a 0%, transparent 60%), linear-gradient(180deg, #0b1b3f, #050c22); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb-a { width: 460px; height: 460px; right: 8%; top: 12%; background: #2f5fd0; }
.orb-b { width: 360px; height: 360px; left: -6%; bottom: -8%; background: var(--red); opacity: .28; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.12); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); font-size: .86rem; font-weight: 500; color: rgba(255, 255, 255, .85); margin-bottom: 26px; }
.flag-dot { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 200deg, var(--red) 0 33%, #fff 0 45%, var(--blue) 0 100%); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.hero-title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; color: var(--white); margin-bottom: 26px; }
.hero-rotator { display: grid; }
.hero-line { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s; }
.hero-line.is-active { opacity: 1; transform: none; filter: none; }
.hero-line em { display: block; font-style: normal; background: linear-gradient(100deg, var(--gold-300), var(--gold) 45%, #fff3cf 60%, var(--gold)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.hero-lead { font-size: 1.12rem; max-width: 560px; color: rgba(255, 255, 255, .78); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--gold-300); width: 20px; height: 20px; }
.hero-visual { position: relative; }
.windshield { position: relative; aspect-ratio: 4 / 3; clip-path: var(--windshield); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.windshield::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 12, 34, 0) 45%, rgba(5, 12, 34, .55)); }
.windshield img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: slowzoom 20s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.14) translateX(-2%); } }
.glare { position: absolute; inset: -20%; z-index: 2; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .08) 52%, transparent 60%); transform: translateX(-70%); animation: glare 6.5s var(--ease) infinite; mix-blend-mode: screen; }
@keyframes glare { 0%, 55% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
.hero-visual::before { content: ''; position: absolute; inset: -14px; clip-path: var(--windshield); background: linear-gradient(140deg, var(--gold-300), var(--gold) 40%, #7a5a14 70%, var(--gold)); z-index: -1; transform: translateY(6px); opacity: .95; }
.hero-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(11, 27, 63, .72); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.hero-float strong { display: block; font-family: var(--display); color: var(--white); }
.hero-float small { color: rgba(255, 255, 255, .65); font-size: .78rem; }
.hero-float-a { left: -26px; bottom: 16%; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero-float-b { right: -18px; top: 16%; animation-delay: -2.5s; }
.hero-float-b > .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--red); color: var(--white); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 20px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: var(--gold-300); transform: translateX(-50%); animation: scroll 1.8s infinite; }
@keyframes scroll { 60% { transform: translate(-50%, 12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 30px); }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero-float-a { left: 4px; } .hero-float-b { right: 4px; }
  .hero-scroll { display: none; }
}

/* ---------- Estrellas ---------- */
.stars { display: inline-flex; gap: 2px; color: #fbbc04; }
.stars .icon { width: 17px; height: 17px; }
.stars .star-off { color: rgba(125, 140, 170, .35); }

/* ---------- Cifras ---------- */
.stats { position: relative; z-index: 2; margin-top: -54px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 30px 26px; display: grid; gap: 4px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat:nth-child(odd) strong { color: var(--blue); }
.stat:nth-child(2) strong { color: var(--red); }
.stat > span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-navy { background: radial-gradient(ellipse 70% 60% at 85% 0%, #1b3470 0%, transparent 60%), var(--navy-900); color: rgba(255, 255, 255, .8); overflow: hidden; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-soft { background: var(--paper); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-navy .section-head p { color: rgba(255, 255, 255, .7); }
.section-head-left { text-align: left; margin-left: 0; }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; text-align: left; }
.section-head-split h2 { margin: 0; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.service-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(140deg, var(--navy-800), var(--blue)); color: var(--gold-300); box-shadow: 0 12px 24px -12px rgba(31, 58, 147, .8); }
.service-icon .icon { width: 30px; height: 30px; }
.service-card h3 { margin: 6px 0 0; font-size: 1.4rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; flex: 1; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.check-list .icon { color: var(--red); margin-top: 4px; }
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Por qué + selector ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.why-grid .section-head { margin-bottom: 36px; }
.why-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { display: flex; gap: 16px; padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); transition: background .3s, transform .3s var(--ease); }
.why-item:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.why-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(212, 160, 42, .16); color: var(--gold-300); }
.why-icon .icon { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.why-item p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .68); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .why-list { grid-template-columns: 1fr; } }

.picker { padding: 30px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); text-align: center; }
.picker-kicker { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.picker h3 { font-size: 1.6rem; margin-bottom: 6px; }
.picker-help { font-size: .9rem; color: rgba(255, 255, 255, .65); margin-bottom: 10px; }
.picker .car-diagram { max-height: 360px; margin: 0 auto 10px; }
.picker-selected { min-height: 3.2em; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 6px; font-size: .88rem; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }

/* ---------- Esquema del vehículo ---------- */
.car-diagram { width: 100%; height: auto; display: block; overflow: visible; }
.car-wheels rect { fill: #0a1330; }
.car-body { fill: url(#carBody); stroke: rgba(255, 255, 255, .25); stroke-width: 2; }
.car-line { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 2; }
.car-roof { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .12); }
.car-mirror { fill: #1a2c5c; stroke: rgba(255, 255, 255, .25); }
.car-light { fill: none; stroke: var(--gold-300); stroke-width: 4; stroke-linecap: round; }
.car-light-rear { stroke: var(--red); }
.car-label { font: 700 11px var(--display); letter-spacing: .2em; fill: rgba(255, 255, 255, .45); }
.car-glass path { fill: url(#glassFill); stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; cursor: pointer; transition: fill .25s, stroke .25s, filter .25s; outline: none; }
.car-glass path:hover { fill: rgba(240, 199, 94, .55); stroke: var(--gold-300); }
.car-glass path:focus-visible { stroke: var(--gold-300); stroke-width: 3; }
.car-glass path.is-selected { fill: rgba(200, 16, 46, .82); stroke: #ff9aa9; filter: drop-shadow(0 0 10px rgba(200, 16, 46, .9)); animation: crack .6s var(--ease); }
@keyframes crack { 30% { transform: scale(1.03); } }
.glass-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 999px; background: rgba(200, 16, 46, .18); border: 1px solid rgba(255, 120, 140, .45); color: var(--white); font-size: .82rem; font-weight: 500; }
.glass-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; display: grid; place-items: center; opacity: .7; }
.glass-chip button:hover { opacity: 1; }
.glass-chip .icon { width: 14px; height: 14px; }

/* ---------- Trabajos ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.work-grid-home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .work-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid-home { grid-template-columns: 1fr; } }
.work-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover img { transform: scale(1.07); }
.work-card figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.work-card:hover figure::after { transform: translateX(100%); }
.work-count { position: absolute; right: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(5, 12, 34, .7); backdrop-filter: blur(6px); color: var(--white); font-size: .78rem; font-weight: 600; }
.work-body { padding: 18px 20px 22px; }
.work-meta { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.work-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.work-services { margin: 0; font-size: .88rem; color: var(--muted); }
.work-card.is-hidden { display: none; }

/* ---------- Marcas ---------- */
.brands { padding: 44px 0; background: var(--paper); border-block: 1px solid var(--line); }
.brands-title { text-align: center; font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; padding: 10px 0 24px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.marquee-brands .marquee-track { gap: 14px; padding: 4px 0; animation-duration: 45s; }
.brand-chip { padding: 12px 26px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--navy-800); white-space: nowrap; transition: color .2s, border-color .2s, transform .2s; }
.brand-chip:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }

/* ---------- Reseñas ---------- */
.reviews-section { background: var(--paper); }
.rating { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rating strong { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.rating-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--ink); }
.rating > span:last-child { color: var(--muted); font-size: .9rem; }
.review { width: 390px; margin: 0; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.review-top { display: flex; justify-content: space-between; align-items: center; }
.review-quote { width: 34px; height: 34px; color: rgba(31, 58, 147, .12); }
.review blockquote { margin: 0; flex: 1; color: var(--text); white-space: pre-line; }
.review figcaption { display: flex; gap: 12px; align-items: center; }
.review figcaption strong { display: block; color: var(--ink); font-family: var(--display); }
.review small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--white); background: linear-gradient(140deg, var(--blue), var(--red)); }
@media (max-width: 560px) { .review { width: 300px; } }
.reviews-verify { display: flex; justify-content: center; margin: 6px 0 0; padding: 0 16px; }
.reviews-verify a { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 10px 8px 8px; border-radius: 999px; font-size: .86rem; color: var(--text); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.reviews-verify a:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.reviews-verify a > span:nth-child(2) { font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-color: rgba(31, 58, 147, .3); text-underline-offset: 3px; }
.rv-google, .rv-arrow { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.rv-google { background: var(--paper); color: var(--ink); }
.rv-arrow { background: var(--red); color: var(--white); transition: transform .25s var(--ease); }
.reviews-verify a:hover .rv-arrow { transform: rotate(45deg); }
.rv-google .icon, .rv-arrow .icon { width: 15px; height: 15px; }

/* ---------- Zona de servicio ---------- */
.area-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.area-text { font-size: 1.08rem; color: rgba(255, 255, 255, .72); }
.area-cities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.area-cities li { padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .85rem; color: rgba(255, 255, 255, .85); }
.area-map svg { width: 100%; height: auto; overflow: visible; }
.area-coast { fill: none; stroke: rgba(159, 208, 255, .18); stroke-width: 26; stroke-linecap: round; filter: blur(2px); }
.area-route { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 8 10; stroke-linecap: round; animation: route 30s linear infinite; }
@keyframes route { to { stroke-dashoffset: -900; } }
.area-node circle { fill: var(--red); stroke: var(--white); stroke-width: 2.5; }
.area-node .area-pulse { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }
.area-node text { font: 600 15px var(--display); fill: rgba(255, 255, 255, .9); paint-order: stroke; stroke: var(--navy-900); stroke-width: 5px; }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(140deg, var(--navy-800), var(--blue)); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover img { transform: scale(1.06); }
.post-placeholder { height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.post-placeholder .icon { width: 64px; height: 64px; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post-body h3 { font-size: 1.2rem; }
.post-excerpt { font-size: .93rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Banda final y pie ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--red-600), var(--red) 45%, #e0314d); color: var(--white); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 22px); }
.cta-band-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: 60px 0; }
.cta-band h2 { color: var(--white); margin: 0 0 10px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.cta-band .kicker-gold { color: #ffe6a6; }
.cta-hours { margin: 0; display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); }
.cta-actions { display: grid; gap: 16px; justify-items: end; }
.cta-phone { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.cta-phone small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-red { --bg: var(--navy-900); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
@media (max-width: 760px) { .cta-actions { justify-items: start; } }
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .65); padding: 72px 0 26px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 50px; padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand img { height: 74px; width: auto; margin-bottom: 18px; }
.site-footer h3 { color: var(--white); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .25s var(--ease); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero, .post-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: rgba(255, 255, 255, .8); padding: calc(var(--header-h) + 70px) 0 80px; margin-top: calc(var(--header-h) * -1); }
.page-hero h1, .post-hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 4rem); max-width: 900px; margin-bottom: 14px; }
.page-lead { font-size: 1.12rem; max-width: 680px; color: rgba(255, 255, 255, .72); margin: 0; }
.page-hero::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: max(140%, 1800px); height: 70px; transform: translateX(-50%); background: var(--white); clip-path: polygon(0 100%, 0 70%, 12% 45%, 30% 25%, 50% 18%, 70% 25%, 88% 45%, 100% 70%, 100% 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: rgba(255, 255, 255, .55); margin-bottom: 20px; }
.crumbs a { color: var(--gold-300); }
.crumbs a:hover { text-decoration: underline; }
body:not(.has-hero) .site-header { background: rgba(8, 18, 45, .86); border-color: rgba(255, 255, 255, .06); }
body:not(.has-hero) .main-nav ul a { color: rgba(255, 255, 255, .86); }
body:not(.has-hero) .main-nav ul a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
body:not(.has-hero) .main-nav ul a.is-active { color: var(--gold-300); }
body:not(.has-hero) .nav-phone { color: var(--white); }
body:not(.has-hero) .nav-phone .icon { color: var(--gold-300); }
body:not(.has-hero) .lang-switch { color: var(--white); border-color: rgba(255, 255, 255, .25); }
body:not(.has-hero) .lang-current { color: var(--white); }
body:not(.has-hero) .lang-sep, body:not(.has-hero) .lang-other { color: rgba(255, 255, 255, .55); }
body:not(.has-hero) .nav-toggle { color: var(--white); border-color: rgba(255, 255, 255, .25); }
.section-tight { padding: 50px 0 100px; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ''; position: absolute; inset: -12px; clip-path: var(--windshield); background: linear-gradient(140deg, var(--gold-300), var(--gold)); z-index: -1; transform: translateY(6px); }
.about-badge { position: absolute; right: -10px; bottom: 6%; display: grid; padding: 18px 22px; border-radius: 18px; background: var(--red); color: var(--white); box-shadow: 0 20px 40px -18px var(--red-glow); }
.about-badge strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.about-badge span { font-size: .82rem; opacity: .85; }
.about-text .lead { font-size: 1.25rem; color: var(--ink); font-family: var(--display); line-height: 1.45; }
.signature { font-family: var(--display); font-weight: 600; color: var(--blue); margin: 24px 0 30px; }
.why-list-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr; gap: 50px; } .why-list-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-list-4 { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services-list { display: grid; gap: 22px; }
.service-row { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 36px; align-items: center; padding: 34px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.service-row-head { display: flex; align-items: center; gap: 18px; }
.service-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.service-num { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px rgba(31, 58, 147, .35); }
.service-row .check-list { margin: 0; }
@media (max-width: 960px) { .service-row { grid-template-columns: 1fr; gap: 20px; } }
.service-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.service-type { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); font-family: var(--display); font-weight: 600; color: var(--ink); transition: border-color .2s, transform .25s var(--ease); }
.service-type .icon { width: 26px; height: 26px; color: var(--red); }
.service-type:hover { border-color: var(--blue); transform: translateY(-3px); }

/* ---------- Formularios ---------- */
.form-card { padding: 36px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.8rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(31, 58, 147, .14); }
.field.has-error input, .field.has-error textarea, .has-error input { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--red); margin-top: 2px; flex: none; }
.check a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .94rem; font-weight: 600; background: #fdecee; color: var(--red-600); }
.field-error { color: var(--red); font-size: .88rem; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
@media (max-width: 620px) { .field-grid, .field-grid-3 { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
a.contact-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.contact-card h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 2px 0 4px; color: var(--muted); font-family: var(--font); font-weight: 600; }
.contact-card p { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-card p a { color: var(--blue); }
.contact-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--navy-900); color: var(--gold-300); }
.contact-icon-wa { background: #25d366; color: var(--white); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Presupuesto ---------- */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.wizard { padding: 34px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); scroll-margin-top: calc(var(--header-h) + 20px); }
.wizard h2 { font-size: 1.7rem; margin-bottom: 6px; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border: 0; border-radius: 18px; background: var(--paper); margin: 0 0 24px; }
.type-switch label { cursor: pointer; }
.type-switch input { position: absolute; opacity: 0; }
.type-switch span { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; border-radius: 13px; font-family: var(--display); font-weight: 600; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.type-switch input:checked + span { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow); }
.type-switch input:checked + span .icon { color: var(--gold-300); }
.type-switch input:focus-visible + span { outline: 3px solid var(--gold); }
.steps-dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; counter-reset: s; }
.steps-dots li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--line); transition: border-color .3s, color .3s; }
.steps-dots li[hidden] { display: none; }
.steps-dots span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-size: .74rem; color: var(--ink); }
.steps-dots .is-current { color: var(--ink); border-color: var(--red); }
.steps-dots .is-current span { background: var(--red); color: var(--white); }
.steps-dots .is-done { color: var(--ink); border-color: var(--blue); }
.steps-dots .is-done span { background: var(--blue); color: var(--white); }
.wizard:not(.is-enhanced) .steps-dots { display: none; }
.wizard-step { display: grid; gap: 18px; }
.wizard-step + .wizard-step { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.wizard.is-enhanced .wizard-step { display: none; margin: 0; padding: 0; border: 0; animation: stepIn .45s var(--ease); }
.wizard.is-enhanced .wizard-step.is-current { display: grid; }
.wizard:not(.is-enhanced) .wizard-nav { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.chip-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group legend { width: 100%; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .2s; }
.chip-radio input:checked + span { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--gold); }
.glass-picker { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.glass-diagram { padding: 18px; border-radius: 22px; background: radial-gradient(circle at 50% 30%, #1b3470, var(--navy-950)); }
.glass-diagram .car-diagram { max-height: 470px; }
.glass-selected-title { font-size: .8rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.picker-selected-light { justify-content: flex-start; min-height: 2.4em; color: var(--muted); margin-bottom: 14px; }
.picker-selected-light .glass-chip { background: #fdecee; border-color: #f5b7c1; color: var(--red-600); }
.glass-checks { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.glass-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.glass-check input { width: 17px; height: 17px; accent-color: var(--red); }
.upload { display: block; cursor: pointer; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-box { display: grid; justify-items: center; gap: 4px; padding: 20px; border-radius: 16px; border: 2px dashed #c9d3e6; background: var(--paper); text-align: center; transition: border-color .2s, background .2s; }
.upload-box .icon { width: 30px; height: 30px; color: var(--blue); }
.upload-box strong { font-size: .92rem; color: var(--ink); }
.upload-box small { color: var(--muted); }
.upload:hover .upload-box, .upload input:focus-visible + .upload-box { border-color: var(--blue); background: #eef3fd; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.quote-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.quote-help { padding: 28px; border-radius: var(--radius); background: var(--navy-900); color: rgba(255, 255, 255, .8); display: grid; gap: 16px; }
.quote-help h2 { color: var(--white); font-size: 1.4rem; margin: 0; }
.quote-help .btn-outline { --fg: var(--white); border-color: rgba(255, 255, 255, .3); }
.quote-help .check-list li { color: rgba(255, 255, 255, .8); }
.cta-phone-dark { color: var(--gold-300); }
@media (max-width: 1080px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { position: static; } }
@media (max-width: 700px) { .wizard { padding: 24px 18px; } .glass-picker { grid-template-columns: 1fr; } .glass-diagram { max-width: 300px; margin: 0 auto; } .field-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Portafolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: all .2s; }
.chip span { font-size: .74rem; padding: 1px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.chip.is-active span { background: var(--gold); color: var(--ink); }
.work-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .work-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid-3 { grid-template-columns: 1fr; } }
.work-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.work-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work-gallery-item { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.work-gallery-item.is-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.work-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-gallery-item:hover img { transform: scale(1.05); }
.work-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.spec-card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.spec-card h2 { font-size: 1.2rem; }
.spec-list { margin: 0 0 18px; display: grid; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-list dt { color: var(--muted); font-size: .9rem; }
.spec-list dd { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); text-align: right; }
.spec-list dd a { color: var(--blue); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #eef3fd; color: var(--blue); font-size: .85rem; font-weight: 600; }
.spec-note { margin: 16px 0 0; color: var(--muted); font-size: .94rem; }
.spec-cta { padding: 26px; border-radius: var(--radius); background: var(--navy-900); display: grid; gap: 10px; }
.spec-cta h3 { color: var(--white); font-size: 1.15rem; }
.spec-cta .btn-outline { --fg: var(--white); border-color: rgba(255, 255, 255, .3); }
@media (max-width: 960px) { .work-layout { grid-template-columns: 1fr; } .work-aside { position: static; } }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 60px 70px; background: rgba(5, 12, 34, .94); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }
@media (max-width: 600px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 16px; } }

/* ---------- Blog ---------- */
.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 44px; padding: 16px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); transition: box-shadow .4s; }
.post-featured:hover { box-shadow: var(--shadow-lg); }
.post-featured figure { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-800); }
.post-featured img { width: 100%; height: 100%; object-fit: cover; }
.post-featured h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.post-featured > div { padding: 10px 20px 10px 0; }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; gap: 20px; } .post-featured > div { padding: 0 10px 10px; } }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 50px; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; }
.pager a.is-active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.post-hero { padding-bottom: 60px; }
.post-hero .post-meta { color: rgba(255, 255, 255, .65); display: flex; align-items: center; gap: 8px; margin: 0; }
.post-cover { margin: -30px auto 0; position: relative; z-index: 1; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.prose { max-width: 780px; color: var(--text); font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose img { border-radius: 16px; margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--paper); border-radius: 0 14px 14px 0; font-style: italic; }
.prose strong { color: var(--ink); }
.prose code { background: #eef3fd; padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px 38px; border-radius: 26px; background: var(--navy-900); color: rgba(255, 255, 255, .75); margin-bottom: 40px; }
.post-cta h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 6px; }
.post-cta p { margin: 0; max-width: 620px; }

/* ---------- Ofertas ---------- */
.offers-grid { columns: 4 260px; column-gap: 20px; }
.offer-card { break-inside: avoid; margin-bottom: 20px; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.offer-card img { width: 100%; }
.offer-body { padding: 16px 18px 20px; }
.offer-body h2 { font-size: 1.1rem; margin-bottom: 6px; }
.offer-body p { font-size: .9rem; color: var(--muted); }
.offer-date { font-size: .8rem !important; }

/* ---------- Gracias / 404 ---------- */
.thanks { padding-top: calc(var(--header-h) + 100px); min-height: 70vh; }
.thanks-inner { display: grid; justify-items: center; text-align: center; gap: 10px; max-width: 640px; }
.thanks-inner .hero-actions { justify-content: center; }
.thanks-icon { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--navy-900)); color: var(--gold-300); box-shadow: var(--shadow-lg); margin-bottom: 14px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.thanks-icon .icon { width: 44px; height: 44px; }
.thanks-icon-muted { background: var(--paper); color: var(--blue); }
@media (max-width: 600px) { .hero-float-b { display: none; } .hero-float-a { left: 8px; bottom: 10%; } }
.quote-help .cta-phone { font-size: 1.9rem; white-space: nowrap; }
.lang-tag { display: inline-flex; align-items: center; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #eef3fd; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.post-notice { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px; border-radius: 999px; background: rgba(212, 160, 42, .16); border: 1px solid rgba(240, 199, 94, .35); color: var(--gold-300); font-size: .88rem; font-weight: 600; }

/* Logos de marcas (dos filas en sentidos opuestos) */
.marquee-logos .marquee-track { list-style: none; margin: 0; gap: 16px; padding: 8px 0; animation-duration: 70s; }
.marquee-logos.is-reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee-logos + .marquee-logos { margin-top: 6px; }
.brand-logo { display: grid; place-items: center; width: 170px; height: 92px; padding: 16px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.brand-logo img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .62; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.brand-logo:hover { border-color: rgba(31, 58, 147, .35); box-shadow: var(--shadow); transform: translateY(-3px); }
.brand-logo:hover img, .brand-logo:focus-visible img { filter: none; opacity: 1; transform: scale(1.04); }
@media (max-width: 600px) { .brand-logo { width: 130px; height: 74px; padding: 12px 16px; } .brand-logo img { max-height: 44px; } }

/* ---------- Hero en móvil: titular, foto y botón en la primera pantalla (escritorio sin cambios) ---------- */
@media (max-width: 700px) {
  .hero { padding: calc(var(--header-h) + 18px) 0 44px; }
  .hero-inner { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-kicker { order: 1; align-self: flex-start; margin-bottom: 16px; padding: 6px 12px 6px 8px; font-size: .78rem; }
  .flag-dot { width: 18px; height: 18px; }
  .hero-title { order: 2; font-size: clamp(2.3rem, 11vw, 3rem); margin-bottom: 20px; }
  .hero-visual { order: 3; width: 100%; max-width: none; margin: 0 0 22px; }
  .hero-visual::before { inset: -8px; transform: translateY(4px); }
  .windshield { aspect-ratio: 16 / 10; }
  .hero-float-a { left: 10px; bottom: 12%; padding: 8px 12px; border-radius: 14px; }
  .hero-float-a strong { font-size: .9rem; }
  .hero-float-a small { font-size: .7rem; }
  .hero-float-a .stars .icon { width: 13px; height: 13px; }
  .hero-actions { order: 4; display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 22px; }
  .hero-actions .btn-lg { padding: 1em 1.2em; }
  .hero-call { width: 58px; height: 58px; padding: 0 !important; border-radius: 50%; }
  .hero-call .icon { width: 22px; height: 22px; }
  .hero-call-num { display: none; }
  .hero-lead { order: 5; font-size: .98rem; margin-bottom: 20px; color: rgba(255, 255, 255, .72); }
  .hero-trust { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .8rem; }
  .hero-trust li { padding: 9px 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); }
  .hero-trust .icon { width: 17px; height: 17px; }
  .stats { margin-top: -24px; }
}
@media (max-width: 700px) {
  .hero-actions { width: 100%; grid-template-columns: minmax(0, 1fr) 58px; }
  .hero-actions .btn-red { width: 100%; }
}
/* El degradado del texto solo se pinta dentro de su caja: se amplía por abajo para no cortar la «g» y la «y». */
.hero-line em { padding-bottom: .16em; margin-bottom: -.16em; }

/* ---------- Servicios: estructura común (escritorio igual que antes) ---------- */
.service-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.service-body { flex: 1; display: grid; }
.service-body > div { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.service-body .check-list { flex: 1; }
.fold-chevron { display: none; }

/* ---------- Servicios en móvil: carpetas plegables ---------- */
@media (max-width: 700px) {
  .services-grid { gap: 30px; }
  .service-card[data-fold] { overflow: visible; padding: 18px 20px; gap: 0; border-top-left-radius: 0; margin-top: 12px; }
  .service-card[data-fold]::before { content: ''; position: absolute; left: -1px; top: -15px; width: 46%; height: 16px; inset-inline-end: auto; background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; transform: none; transition: background .3s, border-color .3s; }
  .service-card[data-fold]:hover { transform: none; }
  .service-card.is-open::before { background: linear-gradient(90deg, var(--blue), var(--red)); border-color: transparent; }
  .service-card.is-open { box-shadow: var(--shadow-lg); }
  .service-head[role="button"] { flex-direction: row; align-items: center; gap: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 12px; }
  .service-head .service-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; }
  .service-head .service-icon .icon { width: 24px; height: 24px; }
  .service-head h3 { margin: 0; font-size: 1.14rem; line-height: 1.2; }
  .fold-chevron { display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .35s var(--ease), background .3s, color .3s; }
  .fold-chevron .icon { width: 18px; height: 18px; }
  .service-card.is-open .fold-chevron { transform: rotate(180deg); background: var(--navy-900); color: var(--gold-300); }
  .service-card.is-collapsible .service-body { grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
  .service-card.is-collapsible.is-open .service-body { grid-template-rows: 1fr; }
  .service-card.is-collapsible .service-body > div { overflow: hidden; }
  .service-card.is-collapsible .check-list { padding-top: 18px; }
  .service-card.is-collapsible .text-link { padding-bottom: 4px; }
}

/* Menú móvil: el desenfoque de la cabecera (backdrop-filter) encierra dentro de ella a los elementos «fixed»;
   con el menú abierto se quita para que el panel ocupe toda la pantalla con su fondo. */
@media (max-width: 1020px) {
  .nav-open .site-header, .nav-open.has-hero .site-header, .nav-open .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .main-nav { height: 100vh; height: 100dvh; overflow-y: auto; padding: calc(var(--header-h) + 20px) 20px 40px; }
}
.nav-quote { display: none; }
@media (max-width: 1020px) { .nav-quote { display: inline-flex; order: -1; min-width: 240px; } }

/* ---------- Últimos trabajos en móvil: carrusel (escritorio: cuadrícula) ---------- */
.carousel-dots { display: none; }
@media (max-width: 700px) {
  .work-grid-home { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; margin: 0 -20px; padding: 6px 20px 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .work-grid-home::-webkit-scrollbar { display: none; }
  .work-grid-home > .work-card { flex: 0 0 86%; scroll-snap-align: center; scroll-snap-stop: always; }
  .js .work-grid-home > .work-card.reveal { opacity: 1; transform: none; }
  .js .work-grid-home.is-carousel > .work-card { transition: transform .6s var(--ease), opacity .6s var(--ease), box-shadow .6s; }
  .js .work-grid-home.is-carousel > .work-card:not(.is-current) { transform: scale(.93); opacity: .5; box-shadow: none; }
  .work-grid-home.is-carousel > .work-card.is-current { box-shadow: var(--shadow-lg); }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cfd6e4; cursor: pointer; transition: width .35s var(--ease), background .35s; }
  .carousel-dots button[aria-selected="true"] { width: 26px; background: var(--red); }
  .section-head-split .btn-outline { order: 2; }
}

/* ---------- Blog de la portada en móvil: una noticia cada vez con fundido (escritorio: 3 tarjetas) ---------- */
@media (max-width: 700px) {
  .post-grid.is-fader { display: grid; grid-template-columns: 1fr; }
  .post-grid.is-fader > .post-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: none; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
  .post-grid.is-fader > .post-card.is-current { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
  .post-grid.is-fader > .post-card.is-current img { animation: kenburns 6s ease-out both; }
  .fader-dots { margin-top: 18px; }
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 700px) {
  .post-grid.is-fader .post-excerpt { flex: none; }
  .post-grid.is-fader .post-body .text-link { margin-top: auto; }
}

/* ---------- Pie: crédito y versión móvil compacta ---------- */
.made-by a { color: var(--gold-300); font-weight: 600; }
.made-by a:hover { text-decoration: underline; }
.footer-bottom { align-items: center; }
@media (max-width: 860px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom ul { order: 3; }
}
@media (max-width: 700px) {
  .site-footer { padding: 56px 0 24px; }
  .footer-grid { gap: 30px; padding-bottom: 32px; }
  .footer-brand img { height: 64px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .footer-contact { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .footer-contact .fc-wide { grid-column: 1 / -1; }
  .footer-contact li { min-width: 0; }
  .footer-contact a { overflow-wrap: anywhere; }
  .footer-bottom { padding-bottom: 76px; font-size: .82rem; }
}
@media (max-width: 700px) {
  .footer-contact { grid-template-columns: auto auto; justify-content: space-between; font-size: .88rem; }
  .footer-contact .fc-phone a, .footer-contact .fc-mail a { white-space: nowrap; overflow-wrap: normal; }
  .footer-contact li { gap: 8px; }
}
@media (max-width: 350px) { .footer-contact { grid-template-columns: 1fr; } }

/* ---------- Aviso de cookies (base de Duran adaptada a JMV) ---------- */
.cc {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(600px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--ink); color: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); font-size: .9rem; line-height: 1.6;
  opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cc.is-visible { opacity: 1; transform: none; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 0; }
.cc-head h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 800; color: var(--white); margin: 0; letter-spacing: 0; }
.cc-close { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .6); cursor: pointer; transition: background .2s, color .2s; }
.cc-close:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.cc-close .icon { width: 18px; height: 18px; }
.cc-text { margin: 10px 24px 18px; }
.cc-text strong { color: rgba(255, 255, 255, .9); font-weight: 600; }
.cc-prefs { margin: 0 24px 18px; display: grid; gap: 10px; }
.cc-cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
label.cc-cat { cursor: pointer; }
.cc-cat strong { color: var(--white); display: block; font-size: .92rem; }
.cc-cat p { margin: 2px 0 0; font-size: .8rem; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.cc-always { flex: none; font-size: .75rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.cc-switch { flex: none; position: relative; width: 44px; height: 24px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background .2s; pointer-events: none; }
.cc-switch span[aria-hidden]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.cc-switch input:checked + span { background: var(--green); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.cc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 24px 22px; }
.cc.is-expanded [data-cc-accept] { display: none; }
.cc-btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s;
}
.cc-btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .35); }
.cc-btn:active { transform: scale(.98); }
.cc-btn-primary { background: var(--green); border-color: var(--green); color: var(--ink); }
.cc-btn-primary:hover { background: #93cfa0; border-color: #93cfa0; }
.cc-btn[hidden] { display: none; }
.cc-chevron { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.cc-btn[aria-expanded="true"] .cc-chevron { transform: rotate(180deg); }
.cc-links { display: flex; justify-content: center; gap: 24px; padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.cc-links a { color: rgba(255, 255, 255, .65); text-decoration: underline; text-underline-offset: 3px; }
.cc-links a:hover { color: var(--white); }
.cc-tab {
  position: fixed; left: 24px; bottom: 0; z-index: 39; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 9px;
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--white); background: var(--ink); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  border-radius: 12px 12px 0 0; box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .5); cursor: pointer; transform: translateY(4px); transition: transform .2s var(--ease), background .2s;
}
.cc-tab:hover, .cc-tab:focus-visible { transform: none; background: var(--ink-700); }
.cc-tab .icon { width: 16px; height: 16px; color: var(--green); }
.cc-tab[hidden] { display: none; }
@media (max-width: 600px) {
  .cc { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .cc-actions { grid-template-columns: 1fr; }
  .cc-head { padding: 20px 18px 0; }
  .cc-text, .cc-prefs { margin-left: 18px; margin-right: 18px; }
  .cc-actions { padding: 0 18px 18px; }
  .cc-tab { left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cc, .cc-tab { transition: none; } }
.cc-prefs[hidden] { display: none; }
/* Colores de JMV: botón principal rojo, pestaña con icono dorado, categorías no usadas atenuadas. */
.cc { background: var(--navy-900); }
.cc-btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.cc-btn-primary:hover { background: #d81436; border-color: #d81436; }
.cc-switch input:checked + span { background: var(--red); }
.cc-always { color: var(--gold-300); }
.cc-tab { background: var(--navy-900); }
.cc-tab .icon { color: var(--gold-300); }
.cc-cat.is-unused { opacity: .6; }
.cc-unused { flex: none; font-size: .75rem; font-weight: 700; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.cc-note { margin: 0 24px 18px; font-size: .82rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 600px) { .cc-note { margin-left: 18px; margin-right: 18px; } }
