/* ==========================================================================
   Plomeros Medellín — hoja de estilos principal
   Mobile-first · tema azul profundo con fondo de estrellas
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050d24;
  --bg-2: #0a1a3f;
  --bg-3: #0f2553;
  --surface: rgba(140, 180, 255, 0.06);
  --surface-2: rgba(140, 180, 255, 0.1);
  --line: rgba(160, 195, 255, 0.14);
  --line-2: rgba(160, 195, 255, 0.26);
  --text: #eaf0fc;
  --muted: #a3b4d4;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-ink: #03211e;
  --danger: #e11d48;
  --wa: #25d366;
  --wa-ink: #032511;
  --warn: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(45, 212, 191, 0.35), 0 18px 50px -18px rgba(45, 212, 191, 0.45);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --header-h: 68px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(900px 560px at -15% 35%, rgba(14, 116, 144, 0.28), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(30, 64, 175, 0.3), transparent 60%),
    linear-gradient(180deg, #061233 0%, var(--bg) 45%, #040a1d 100%);
}
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #5eead4; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-l { margin-top: 2.5rem; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.3em; border-radius: 999px;
  font: 600 1rem/1.1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 0 1.6em; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 0 1.05em; font-size: 0.95rem; }
.btn--primary { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); box-shadow: var(--glow); }
.btn--danger { background: var(--danger); color: #fff; box-shadow: 0 10px 30px -10px rgba(225, 29, 72, 0.7); }
.btn--danger:hover { color: #fff; background: #f43f5e; }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { color: var(--wa-ink); box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.7); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: var(--text); border-color: var(--accent); background: var(--surface-2); }
.btn--call { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn--call:hover { color: var(--text); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) { .hero .btn-row .btn, .cta-band .btn { width: 100%; } }

/* ---------- Topbar + header ---------- */
.topbar { font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(3, 8, 24, 0.55); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.topbar__live { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); border-radius: 8px; }
.topbar__social a:hover { color: var(--accent); background: var(--surface); }
@media (max-width: 559px) { .topbar__social { display: none; } .topbar__live { font-size: 0.8rem; } }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 13, 36, 0.72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.15rem; }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; }
.brand__txt strong { color: var(--accent); font-weight: 700; }
.nav__toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.nav__toggle .i { width: 24px; height: 24px; }
.nav__close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__close { display: block; }
.nav__menu {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 12px var(--gutter) 20px;
  background: rgba(5, 13, 36, 0.97);
  border-bottom: 1px solid var(--line);
  display: none;
}
.nav__menu.is-open { display: block; animation: drop 0.25s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.nav__links { list-style: none; margin: 0 0 12px; padding: 0; }
.nav__links a { display: block; padding: 14px 6px; font-size: 1.1rem; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__cta { width: 100%; }
@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu { position: static; display: flex !important; align-items: center; gap: 24px; padding: 0; background: none; border: 0; animation: none; }
  .nav__links { display: flex; gap: 4px; margin: 0; }
  .nav__links a { padding: 8px 14px; border: 0; border-radius: 999px; font-size: 1rem; color: var(--muted); }
  .nav__links a:hover { color: var(--text); background: var(--surface); }
  .nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
  .nav__cta { width: auto; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section__head--row h2 { margin: 0; }
.eyebrow { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line-2); }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { max-width: 58ch; margin-bottom: 1.6em; }
.hero__trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .i { color: var(--accent); width: 20px; height: 20px; }
.hero__trust strong { color: var(--text); font-weight: 600; }

.hero__media { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.02; margin-inline: auto; }
.hero__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(45, 212, 191, 0.35); animation: spin 60s linear infinite; }
.hero__ring::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__img { position: absolute; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-2); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--a { left: 12%; top: 6%; width: 64%; height: 72%; animation: float 7s ease-in-out infinite; }
.hero__img--b { right: 0; top: 30%; width: 38%; aspect-ratio: 1; animation: float 8s ease-in-out -2s infinite; }
.hero__img--c { left: 0; bottom: 2%; width: 34%; aspect-ratio: 1; animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero__badge {
  position: absolute; right: 4%; bottom: 6%;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 16px; background: rgba(8, 20, 52, 0.85); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.hero__badge .i { width: 28px; height: 28px; color: var(--accent); }
.hero__badge strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.hero__badge span { font-size: 0.8rem; color: var(--muted); }

.hero--page { padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.hero--page h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 22ch; }
.hero--page .lead { max-width: 62ch; margin-bottom: 1.4em; }
.hero--article h1 { max-width: none; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.facts .i { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 0.95rem; }
.meta .i { color: var(--accent); }

.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Marquee de zonas ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(3, 8, 24, 0.4); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
#main:has(> .marquee) { display: flex; flex-direction: column; }
#main:has(> .marquee) > .marquee { order: -1; }
.marquee__track { display: flex; width: max-content; gap: 36px; padding-block: 16px; animation: marquee 50s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.marquee__track .i { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(140, 180, 255, 0.08), rgba(140, 180, 255, 0.03));
  border: 1px solid var(--line); color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card--link { text-decoration: none; }
.card--link:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.5); box-shadow: var(--glow); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; color: var(--accent); background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.25); }
.card__icon .i { width: 26px; height: 26px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.95rem; color: var(--accent); }
.card__more .i { transition: transform 0.2s ease; }
.card--link:hover .card__more .i:last-child { transform: translateX(4px); }
.tag { display: inline-block; align-self: flex-start; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.25); }
.post-card h3, .post-card h2 { font-size: 1.15rem; }
.post-card--lg h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

/* ---------- Paneles expandibles ---------- */
.panels { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.panels::-webkit-scrollbar { display: none; }
@media (max-width: 899px) {
  .panels { padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--accent) var(--line); touch-action: pan-x; }
  .panels::-webkit-scrollbar { display: block; height: 7px; }
  .panels::-webkit-scrollbar-track { background: var(--line); border-radius: 4px; }
  .panels::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
}
.panel { position: relative; margin: 0; flex: 0 0 82%; height: 360px; border-radius: var(--radius); overflow: hidden; scroll-snap-align: center; border: 1px solid var(--line); cursor: pointer; }
.panel picture, .panel img { width: 100%; height: 100%; }
.panel img { object-fit: cover; transition: transform 0.8s ease; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3, 8, 24, 0.9)); }
.panel figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.panel figcaption strong { display: block; font-size: 1.3rem; }
.panel figcaption span { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 768px) {
  .panels { overflow: visible; height: 460px; }
  .panel { flex: 1 1 0; height: auto; transition: flex 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .panel.is-active { flex: 4 1 0; }
  .panel figcaption { opacity: 0; transform: translateY(10px); transition: 0.4s ease; white-space: nowrap; }
  .panel.is-active figcaption { opacity: 1; transform: none; transition-delay: 0.25s; }
  .panel.is-active img { transform: scale(1.04); }
}

/* ---------- Beneficios ---------- */
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px -10px rgba(45, 212, 191, 0.7); }
.feature__icon .i { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; font-weight: 800; font-size: 1.2rem; color: var(--accent); background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.3); }
.step p { color: var(--muted); margin: 0; }

/* ---------- Carrusel de trabajos ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
@media (min-width: 640px) { .rail { grid-auto-columns: 34%; } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
.rail__item { display: block; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); background: var(--bg-2); }
.rail__item img, .gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; }
.rail__item:hover img, .gallery__item:hover img { transform: scale(1.06); filter: brightness(1.08); }

/* ---------- Cobertura / mapa ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--rev > :first-child { order: 2; } }
.chips { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: 0.92rem; background: var(--surface); border: 1px solid var(--line); }
.zone-links, .related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.zone-links a, .related a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s; }
.zone-links a:hover, .related a:hover { color: var(--text); border-color: var(--accent); background: rgba(45, 212, 191, 0.1); }
.zone-links .i, .related .i { color: var(--accent); }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.15), transparent 50%), var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--text); font: 500 1rem var(--font); cursor: pointer; }
.map__btn .i { width: 44px; height: 44px; color: var(--accent); }

/* ---------- Testimonios ---------- */
.quote { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote blockquote { margin: 14px 0 18px; font-size: 1.05rem; }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: 0.95rem; }
.quote figcaption strong { color: var(--text); }
.stars-row { display: flex; gap: 3px; color: var(--warn); }
.stars-row .i { width: 18px; height: 18px; fill: currentColor; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq__item[open] { border-color: rgba(45, 212, 191, 0.4); background: var(--surface-2); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { transition: transform 0.25s ease; color: var(--accent); }
.faq__item[open] summary .i { transform: rotate(180deg); }
.faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq__a p { margin: 0; }
.visit-brief { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.visit-brief summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; color: var(--text); font-weight: 700; cursor: pointer; list-style: none; }
.visit-brief summary::-webkit-details-marker { display: none; }
.visit-brief summary .i { color: var(--accent); transition: transform 0.25s ease; }
.visit-brief[open] summary .i { transform: rotate(180deg); }
.visit-brief__body { padding: 0 20px 20px; color: var(--muted); }
.visit-brief__body p { margin-bottom: 10px; }
.visit-brief__body ul { margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 26px; overflow: hidden;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.16), rgba(56, 189, 248, 0.1) 50%, rgba(37, 99, 235, 0.18));
  border: 1px solid rgba(45, 212, 191, 0.35);
}
.cta-band::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 70%); }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr auto; } }

/* ---------- Páginas de servicio ---------- */
.media-frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-2); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.prose p, .prose li { color: #cfdaf0; }
.prose strong { color: var(--text); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } .terms .checklist { grid-template-columns: 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.checklist .i { color: var(--accent); margin-top: 3px; }
.alert { margin-top: 24px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.45); }
.alert__title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--warn); }
.alert ol { margin: 0; display: grid; gap: 6px; }
.terms { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.terms .checklist li { background: none; border: 0; padding: 4px 0; }

/* Catálogo de servicios */
.svc { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(140, 180, 255, 0.08), rgba(140, 180, 255, 0.03)); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.svc:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.45); box-shadow: var(--glow); }
.svc__img { overflow: hidden; background: var(--bg-2); }
.svc__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease; }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.svc__body h2 { font-size: 1.2rem; margin-bottom: 0.4em; }
.svc__body p { color: var(--muted); font-size: 0.98rem; }
.svc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Nosotros */
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; font-weight: 800; }
.stats span { color: var(--muted); font-size: 0.92rem; }
.story { display: grid; gap: clamp(48px, 7vw, 88px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; } }
.gallery__item { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }

/* ---------- Blog ---------- */
.article { font-size: 1.1rem; }
.article h2 { margin-top: 2em; color: var(--accent); font-size: clamp(1.4rem, 3vw, 1.8rem); }
.article h3 { margin-top: 1.6em; }
.article li { margin-bottom: 0.4em; }
.callout { margin: 1.5em 0; padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(45, 212, 191, 0.08); border-left: 4px solid var(--accent); color: #d7e3f7; }
.callout--warn { background: rgba(225, 29, 72, 0.1); border-left-color: var(--danger); }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.article table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 520px; }
.article th, .article td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.article th { background: rgba(45, 212, 191, 0.12); color: var(--text); font-weight: 600; }
.article tr:last-child td { border-bottom: 0; }
.article__cta { margin-top: 3em; padding: clamp(22px, 4vw, 34px); border-radius: var(--radius); background: var(--surface-2); border: 1px solid rgba(45, 212, 191, 0.35); }
.article__cta h2 { margin-top: 0; color: var(--text); }
.article__cta .muted { margin: 16px 0 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(48px, 6vw, 72px); background: linear-gradient(180deg, transparent, rgba(2, 6, 20, 0.85) 30%); border-top: 1px solid var(--line); font-size: 0.97rem; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer__brand p { color: var(--muted); margin: 16px 0; max-width: 40ch; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.footer__list, .footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer__list a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; }
.footer__list a:hover { color: var(--accent); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: var(--muted); }
.footer__contact .i { color: var(--accent); margin-top: 4px; }
.footer__contact a { color: var(--text); text-decoration: none; word-break: break-word; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-block: 22px 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer__bottom p { margin: 0; }
@media (min-width: 768px) { .footer__bottom { padding-bottom: 28px; } }

.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--accent); }
.footer__note { flex-basis: 100%; font-size: 0.8rem; opacity: 0.85; }

/* ---------- Imágenes de referencia (IA) ---------- */
.svc__img, .media-frame { position: relative; }
.ai-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: rgba(3, 8, 24, 0.72); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
}

/* ---------- Términos y condiciones ---------- */
.toc { margin-bottom: 36px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.toc li { padding: 4px 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.legal section { padding-top: 8px; }
.legal h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.legal h3 { margin-top: 1.2em; font-size: 1.1rem; }

/* ---------- Botones flotantes ---------- */
.call-fab {
  position: fixed; left: 16px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  color: var(--accent-ink); background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -8px rgba(45, 212, 191, 0.6);
}
.call-fab:hover { color: var(--accent-ink); }
@media (min-width: 768px) { .call-fab { display: none; } }
.wa-fab {
  position: fixed; right: 16px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  color: #fff; background: var(--wa); box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.65);
  transition: transform 0.25s ease; animation: pop 0.5s ease both;
}
.wa-fab:hover { color: #fff; transform: scale(1.08); }
.wa-fab .i { width: 32px; height: 32px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 760px; margin-inline: auto; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(5, 13, 36, 0.96); box-shadow: var(--shadow); }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.cookie-banner__actions { display: flex; flex: none; gap: 8px; }
@media (max-width: 639px) { .cookie-banner { display: block; } .cookie-banner__actions { margin-top: 12px; } .cookie-banner__actions .btn { flex: 1; } }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }
@media (min-width: 768px) { .wa-fab { right: 24px; bottom: 24px; width: 64px; height: 64px; } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 6, 20, 0.94); color: var(--text); }
.lightbox::backdrop { background: rgba(2, 6, 20, 0.7); }
.lightbox__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 12px 24px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; border-radius: 12px; }
.lightbox__fig figcaption { color: var(--muted); text-align: center; font-size: 0.95rem; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 26, 63, 0.8); color: var(--text); cursor: pointer; }
.lightbox button:hover { border-color: var(--accent); }
.lightbox button .i { width: 24px; height: 24px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__prev .i { transform: rotate(180deg); }
.lightbox__next { right: 12px; }

/* ---------- Animación de aparición ---------- */
/* main.js solo oculta lo que está fuera de pantalla: sin JS todo se ve normal. */
.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal-pending.is-visible { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
