:root {
  --blue: #0b3a82;
  --blue-dark: #082c64;
  --navy: #061a3a;
  --red: #d7141a;
  --red-dark: #b01015;
  --ink: #0d1b33;
  --text: #33405a;
  --muted: #62708a;
  --line: #e3e8f0;
  --tint: #f3f6fb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 58, 130, .08);
  --shadow-lg: 0 24px 60px rgba(11, 58, 130, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.35em;
  border: 2px solid var(--blue); border-radius: var(--radius-sm);
  background: var(--blue); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn--small { padding: .5em 1em; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--wa { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--wa svg { fill: var(--red); }
.btn--wa:hover { background: #fff; border-color: var(--red); color: var(--red); }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; }
.btn--light:hover { background: #eaf0fa; border-color: #eaf0fa; }
.btn--call { background: var(--red); border-color: var(--red); }
.btn--call:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo__mark { display: block; height: 38px; width: auto; }
.logo--light { color: #fff; }
.logo__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; }
.logo__badge .logo__mark { height: 32px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--text); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.22rem; color: var(--muted); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0 2.2em; }
.hero__points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; }
.hero__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.hero__points li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: #eaf0fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230b3a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Imagen con revelado bajo el cursor */
.reveal {
  --mx: 50%; --my: 50%; --spot: 0px;
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal__badge {
  position: absolute; left: 18px; bottom: 18px; right: 18px; width: fit-content;
  padding: .6em 1em; border-radius: 999px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  color: var(--ink); font-weight: 700; font-size: .9rem;
}
.reveal__badge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; }

/* Entrada del hero (único momento animado) */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .reveal { animation: enter .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__text > :nth-child(4) { animation-delay: .24s; }
  .reveal { animation-delay: .12s; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

/* Secciones */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head p { color: var(--muted); font-size: 1.12rem; }

/* Eventos: sección protagonista */
.events {
  padding: 120px 0;
  color: #d6e0f2;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 70%);
}
.events__head { max-width: 720px; margin-bottom: 56px; }
.events__head h2 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.events__head p { font-size: 1.15rem; }
.events__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.ev {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .25s, transform .25s var(--ease);
}
.ev:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.ev h3 { color: #fff; }
.ev p { margin: 0; color: #c3d0e8; }
.ev__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 12px; background: #fff; }
.ev__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev--photo { overflow: hidden; }
.ev--photo img { display: block; width: calc(100% + 60px); margin: -30px -30px 22px; aspect-ratio: 16 / 9; object-fit: cover; }
.ev--feature { grid-row: span 2; padding: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 0; }
.ev--feature:hover { background: #fff; }
.ev--feature img { width: 100%; flex: 1; min-height: 240px; object-fit: cover; display: block; }
.ev--feature .ev__body { padding: 30px; }
.ev--feature h3 { color: var(--ink); font-size: 1.5rem; }
.ev--feature p { color: var(--muted); }
.ev--feature .ev__icon { background: #fdecec; }

/* Proceso: línea de tiempo */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--blue), #9fb6de); }
.timeline li { position: relative; }
.timeline__num {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); color: var(--blue);
  font-weight: 800; font-size: 1.2rem; box-shadow: 0 0 0 8px #fff;
}
.timeline li:last-child .timeline__num { background: var(--blue); color: #fff; }
.timeline p { color: var(--muted); margin: 0; max-width: 26em; }

/* Galería masonry */
.masonry { columns: 3; column-gap: 20px; }
.masonry__item { position: relative; margin: 0 0 20px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.masonry__item img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.masonry__item:hover img { transform: scale(1.03); }
.masonry__item figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: .45em .9em; border-radius: 999px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  color: var(--ink); font-weight: 700; font-size: .88rem;
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.svc {
  grid-column: span 2;
  padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: box-shadow .25s, transform .25s var(--ease), border-color .25s;
}
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.svc p { margin: 0; color: var(--muted); }
.svc:nth-last-child(-n+2) { grid-column: span 3; }
.svc--feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 44px; border: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #d6e0f2;
}
.svc--feature h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.svc--feature p { color: #c9d6ee; margin-bottom: 1.6em; font-size: 1.08rem; }
.svc--feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); display: block; }

/* Clientes */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.clients li {
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .95rem;
}

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact__info { position: sticky; top: 110px; }
.contact__info h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.contact__info > p { font-size: 1.12rem; }
.contact__list { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 16px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list span { font-size: .88rem; color: var(--muted); }
.contact__list a { color: var(--ink); font-weight: 700; font-size: 1.08rem; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: #fdf0f0; font-size: .95rem; }
.notice strong { color: var(--red); }
.notice a { color: var(--red); font-weight: 700; }

.form { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; align-content: start; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em .95em;
  border: 1px solid #d3dae6; border-radius: var(--radius-sm);
  background: #fbfcfe; font: inherit; font-size: .96rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 58, 130, .12); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.form__status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; text-align: center; }
.form__status.is-error { color: var(--red); }
.form__status.is-ok { color: #1a7f4b; }

/* Footer */
.footer { background: var(--navy); color: #a9b7d0; padding: 80px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin: 16px 0 20px; max-width: 22em; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:not(.btn):not(.logo) { color: #a9b7d0; }
.footer a:not(.btn):not(.logo):hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.social svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 64px; padding: 24px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }

/* Responsive */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero__inner, .contact { grid-template-columns: 1fr; gap: 40px; }
  .reveal { aspect-ratio: 4 / 3; }
  .contact__info { position: static; }
  .events__grid { grid-template-columns: 1fr 1fr; }
  .ev--feature { grid-column: 1 / -1; grid-row: auto; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), #9fb6de); }
  .timeline li { padding-left: 84px; }
  .timeline__num { position: absolute; left: 0; top: 0; margin: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .svc, .svc:nth-last-child(-n+2) { grid-column: span 1; }
  .svc--feature { grid-column: 1 / -1; grid-template-columns: 1fr; padding: 32px; }
  .clients { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section, .events { padding: 72px 0; }
  .hero__points { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .events__grid, .services, .clients { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 26, 58, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(6, 26, 58, .34); }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 640px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }
