/* =========================================================
   Setcam · Página de inicio
   Colores definidos como variables: modo claro y modo oscuro
   ========================================================= */

:root {
  --navy: #0B3954;
  --brand: #0B3954;
  --teal: #1C7C9C;
  --accent: #1C7C9C;
  --red: #E4572E;
  --red-hover: #CC4622;
  --wa: #25D366;

  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --line: #E3EAF0;
  --ink: #0F2233;
  --muted: #5B6B7B;
  --head: #0B3954;
  --sky: #E6F3F8;
  --glass: rgba(255, 255, 255, .86);
  --glow: #D7EEF6;
  --foot: #071F2F;
  --shadow: rgba(11, 57, 84, .14);
  --logo-chip: transparent;
  --hover-card: #0B3954;

  --radius: 20px;
  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #0A2B40;
  --accent: #4FB8D8;
  --bg: #0A141C;
  --surface: #0E1B25;
  --card: #132431;
  --line: #1F3443;
  --ink: #E3ECF3;
  --muted: #9AB0C1;
  --head: #F1F7FB;
  --sky: #173647;
  --glass: rgba(14, 27, 37, .86);
  --glow: rgba(28, 124, 156, .28);
  --foot: #050E15;
  --shadow: rgba(0, 0, 0, .45);
  --logo-chip: #FFFFFF;
  --hover-card: #13405C;
  color-scheme: dark;
}

/* Transición suave al cambiar de tema (se activa sólo durante el cambio) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease) !important;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -.02em; line-height: 1.12; margin: 0; color: var(--head); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font: 700 15px/1.2 'Inter', sans-serif; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(228, 87, 46, .32); }
.btn--primary:hover { background: var(--red-hover); box-shadow: 0 14px 30px rgba(228, 87, 46, .4); }
.btn--ghost { background: var(--card); color: var(--head); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Tipografía de secciones ---------- */
.section { padding: 96px 0; background: var(--surface); }
.section--alt { background: var(--bg); }
.eyebrow { font: 700 12px/1 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow--light { color: #7FD3E8; }
.title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.title--light { color: #fff; }
.lead { color: var(--muted); font-size: 17px; max-width: 680px; }
.lead--light { color: #D3E8F1; }

/* =========================================================
   1. Barra superior + menú
   ========================================================= */
.topbar { background: var(--brand); color: #CFE3EE; font-size: 13.5px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__info a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .25s, transform .25s; }
.social a:hover { background: var(--red); transform: translateY(-2px); }
.social .ic { width: 14px; height: 14px; }

.header { position: sticky; top: 0; z-index: 100; background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.header.is-scrolled { box-shadow: 0 10px 30px var(--shadow); }
.header.is-scrolled .header__in { height: 66px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 58px; width: auto; transition: height .3s var(--ease); }
.logo__img--claro { display: none; }
[data-theme="dark"] .logo__img--color { display: none; }
[data-theme="dark"] .logo__img--claro { display: block; }
.header.is-scrolled .logo img { height: 44px; }

.nav { display: flex; align-items: center; }
.nav ul { display: flex; gap: 30px; }
.nav a:not(.btn) { position: relative; font-weight: 600; font-size: 15px; color: var(--muted); padding: 6px 0; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--head); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.theme-switch { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.theme-switch button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; transition: background-color .25s, color .25s; }
.theme-switch button .ic { width: 17px; height: 17px; transition: transform .5s var(--ease); }
.theme-switch button[aria-pressed="true"] { background: var(--card); color: var(--head); box-shadow: 0 2px 8px var(--shadow); }
.theme-switch button[aria-pressed="true"] .ic { transform: rotate(360deg); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--head); place-items: center; }
.burger .ic { width: 22px; height: 22px; }

/* =========================================================
   2. Portada con slider
   ========================================================= */
.hero { background: radial-gradient(900px 520px at 85% 15%, var(--glow) 0, transparent 60%), linear-gradient(180deg, var(--surface), var(--bg)); padding: 72px 0 88px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--head); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse-dot 2s infinite; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; margin: 22px 0 12px; }
.hero h1 span { color: var(--accent); }
.hero__sub { font: 600 20px/1.3 'Plus Jakarta Sans', sans-serif; color: var(--accent); margin-bottom: 16px; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; font-weight: 600; font-size: 14px; }
.facts__ic { width: 32px; height: 32px; border-radius: 9px; background: var(--sky); color: var(--accent); display: grid; place-items: center; }

.hero__visual { position: relative; padding: 24px 0 24px 32px; }
.slider { position: relative; aspect-ratio: 4 / 4.2; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #164E6C, #0B3954 60%, #06263A); box-shadow: 0 30px 60px var(--shadow); }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.slide.is-active { opacity: 1; }
.slide.is-active img { animation: kenburns 7s linear forwards; }
.slider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 26, 40, .55)); pointer-events: none; }
.slider__dots { position: absolute; left: 22px; bottom: 22px; z-index: 2; display: flex; gap: 8px; }
.slider__dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .45); overflow: hidden; transition: width .35s var(--ease); }
.slider__dots button[aria-selected="true"] { width: 34px; }
.slider__dots button[aria-selected="true"]::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dot-progress var(--slide-time, 5s) linear forwards; }
.slider.is-paused .slider__dots button[aria-selected="true"]::after { animation-play-state: paused; }
.slider__arrows { position: absolute; right: 18px; bottom: 14px; z-index: 2; display: flex; gap: 8px; }
.slider__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background-color .25s; }
.slider__btn:hover { background: rgba(255, 255, 255, .3); }

.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px var(--shadow); font-size: 13.5px; animation: float 6s ease-in-out infinite; }
.float b { display: block; color: var(--head); }
.float small { display: block; color: var(--muted); font-size: 12px; }
.float__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--sky); color: var(--accent); display: grid; place-items: center; }
.float__ic--red { background: rgba(228, 87, 46, .14); color: var(--red); }
.float--a { left: 0; top: 56px; }
.float--b { right: -12px; top: 46%; animation-delay: -3s; }

/* =========================================================
   3. Servicios
   ========================================================= */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 44px; }
.card { flex: 0 1 calc((100% - 40px) / 3); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.card__ic { width: 56px; height: 56px; border-radius: 16px; background: var(--sky); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; transition: background-color .35s, color .35s; }
.card__ic .ic { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; transition: color .35s; }
.card p { color: var(--muted); font-size: 15px; transition: color .35s; }
.card:hover { background: var(--hover-card); border-color: var(--hover-card); transform: translateY(-8px); box-shadow: 0 26px 50px var(--shadow); }
.card:hover h3 { color: #fff; }
.card:hover p { color: #BFD5E2; }
.card:hover .card__ic { background: var(--red); color: #fff; }

/* =========================================================
   4. Agenda tu visita
   ========================================================= */
.agenda { padding: 88px 0; background: linear-gradient(120deg, #0B3954, #1C7C9C); color: #fff; }
[data-theme="dark"] .agenda { background: linear-gradient(120deg, #071D2B, #0F4A63); }
.agenda__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.agenda .title { font-size: clamp(32px, 4vw, 46px); }
.agenda__info { display: grid; gap: 14px; margin-top: 28px; font-weight: 600; }
.agenda__info li, .agenda__info a { display: flex; align-items: center; gap: 12px; }
.agenda__info span { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }

.form { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--head); }
.field input, .field textarea { width: 100%; font: 15px 'Inter', sans-serif; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28, 124, 156, .16); }
.field.is-valid input { border-color: #22C55E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.field.is-valid input[type="date"] { background-image: none; padding-right: 14px; }
.field.is-invalid input { border-color: var(--red); animation: shake .35s; }
.field__msg { font-size: 12.5px; color: var(--red); min-height: 0; }
.field__msg:empty { display: none; }
.field__msg--check { display: block; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.check__box .ic { width: 13px; height: 13px; stroke-width: 3; }
.check input:checked + .check__box { background: var(--teal); border-color: var(--teal); color: #fff; }
.check input:focus-visible + .check__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--accent); text-decoration: underline; }
.form .btn--block { margin-top: 18px; }
.form__note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.form.is-sending .btn--block { opacity: .7; pointer-events: none; }

.form__done { position: absolute; inset: 0; z-index: 2; background: var(--surface); border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 10px; animation: pop .45s var(--ease); }
.form__done[hidden] { display: none; }
.form__done-ic { width: 72px; height: 72px; border-radius: 50%; background: rgba(34, 197, 94, .15); color: #16A34A; display: grid; place-items: center; margin-bottom: 6px; }
.form__done-ic .ic { width: 36px; height: 36px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
.form__done h3 { font-size: 22px; }
.form__done.is-error .form__done-ic { background: rgba(228, 87, 46, .15); color: var(--red); }
.form__done p { color: var(--muted); max-width: 380px; }
.form__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

/* =========================================================
   5. Acerca de
   ========================================================= */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__img { border-radius: 26px; overflow: hidden; box-shadow: 0 26px 50px var(--shadow); aspect-ratio: 4 / 3.4; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.areas li { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 700 15px 'Plus Jakarta Sans', sans-serif; color: var(--head); }
.areas span { width: 38px; height: 38px; border-radius: 10px; background: var(--sky); color: var(--accent); display: grid; place-items: center; }

/* =========================================================
   6. Proceso
   ========================================================= */
.process { background: var(--brand); color: #fff; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; }
.steps__line { position: absolute; top: 27px; left: 28px; right: 28px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.steps__line span { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, #7FD3E8, var(--red)); transition: width .15s linear; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; }
.step__num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 18px 'Plus Jakarta Sans', sans-serif; background: #123F5C; color: #BFD5E2; border: 6px solid var(--brand); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: background-color .4s, color .4s, transform .4s var(--ease); }
.step.is-lit .step__num { background: var(--red); color: #fff; transform: scale(1.06); }
.step h3 { color: #fff; font-size: 21px; margin: 20px 0 8px; }
.step p { color: #BFD5E2; font-size: 15px; }
.step ul { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: #E6F3F8; }
.step li { display: flex; gap: 8px; }
.step li::before { content: "✓"; color: #7FD3E8; font-weight: 800; }
.step__more { margin-top: 12px; font-size: 14px; color: #BFD5E2; }
.step__more summary { cursor: pointer; color: #7FD3E8; font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.step__more summary::-webkit-details-marker { display: none; }
.step__more summary::after { content: "+"; font-size: 16px; transition: transform .3s; }
.step__more[open] summary::after { transform: rotate(45deg); }
.step__more p { margin-top: 8px; font-size: 14px; }
.step__img { margin-top: auto; padding-top: 20px; }
.step__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); }

/* =========================================================
   7. Galería
   ========================================================= */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; margin-top: 40px; }
.gallery__item { position: relative; border-radius: 18px; overflow: hidden; background: var(--card); }
.gallery__item:first-child { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 57, 84, .42); opacity: 0; transition: opacity .35s; }
.gallery__zoom .ic { width: 54px; height: 54px; padding: 15px; border-radius: 50%; background: #fff; color: var(--navy); transform: scale(.7); transition: transform .35s var(--ease); }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; }
.gallery__item:hover .gallery__zoom .ic { transform: scale(1); }
.gallery__cap { position: absolute; left: 14px; bottom: 14px; background: var(--glass); color: var(--head); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3, 10, 16, .92); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .35s var(--ease); }
.lightbox figcaption { color: #E3ECF3; font-weight: 600; }
.lightbox__nav, .lightbox__close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; justify-self: center; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }

/* =========================================================
   8. Contacto
   ========================================================= */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.ccard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .35s var(--ease), background-color .35s, box-shadow .35s, border-color .35s; }
.ccard__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; transition: background-color .35s, color .35s; }
.ccard h3 { font-size: 16px; margin-bottom: 6px; transition: color .35s; }
.ccard p { color: var(--muted); font-size: 15px; transition: color .35s; }
.ccard__link { display: block; margin-top: 10px; font-weight: 700; font-size: 13.5px; color: var(--accent); }
a.ccard:hover { background: var(--hover-card); border-color: var(--hover-card); transform: translateY(-6px); box-shadow: 0 20px 40px var(--shadow); }
a.ccard:hover h3 { color: #fff; }
a.ccard:hover p { color: #BFD5E2; }
a.ccard:hover .ccard__ic { background: var(--red); color: #fff; }
a.ccard:hover .ccard__link { color: #7FD3E8; }

/* =========================================================
   9. Footer + WhatsApp
   ========================================================= */
.footer { background: var(--foot); color: #A9BFCD; padding: 64px 0 28px; font-size: 14.5px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer li { line-height: 2; }
.footer a:hover { color: #fff; }
.footer__logo { display: inline-block; margin-bottom: 14px; }
.footer__logo img { height: 56px; width: auto; }
.social--footer { margin-bottom: 18px; }
.footer__bottom { margin-top: 40px; padding: 20px 84px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer__bottom a { text-decoration: underline; }
.appearance { display: flex; align-items: center; gap: 10px; }
.footer .theme-switch { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.footer .theme-switch button { color: #A9BFCD; }
.footer .theme-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: wa-pulse 3s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }

/* =========================================================
   Animaciones de aparición (sólo si hay JavaScript)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--mask { opacity: 1; transform: none; clip-path: inset(0 100% 0 0 round 26px); transition: clip-path 1.1s var(--ease); }
.js .reveal--mask.is-in { clip-path: inset(0 0 0 0 round 26px); }

@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes dot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); } 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .08); } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal--mask { opacity: 1; transform: none; clip-path: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .header__cta { display: none; }
  .nav ul { gap: 22px; }
  .float--b { right: 0; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .topbar__info li:first-child { display: none; }
  .burger { display: grid; }
  .logo img { height: 48px; }
  .nav { position: fixed; inset: calc(var(--header-h) + 40px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 20px 24px 28px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .header.is-scrolled .nav { top: 66px; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a:not(.btn) { display: block; padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; }
  .hero__in, .agenda__in, .about { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero__visual { padding: 16px 0 0; max-width: 560px; }
  .float--a { left: -6px; top: 30px; }
  .card { flex-basis: calc((100% - 20px) / 2); }
  .contact { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 0; }
  .steps__line { top: 28px; bottom: 28px; left: 27px; right: auto; width: 3px; height: auto; }
  .steps__line span { width: 100% !important; height: var(--p, 0%); }
  .step { padding-left: 80px; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 12px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar__info { gap: 14px; }
  .topbar__info li:nth-child(2) { display: none; }
  .header__actions { gap: 8px; }
  .hero h1 { font-size: 40px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .facts li { flex: 1 1 100%; }
  .float { display: none; }
  .card { flex-basis: 100%; }
  .contact, .areas { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: auto; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
