:root{
  /* Identidad visual solicitada */
  --brand-primary: #C1121F;   /* rojo títulos / CTA */
  --brand-secondary: #780000; /* rojo profundo (hover / detalles) */

  --bg: #EAF2FF;              /* fondo azul claro */
  --panel: #ffffff;
  --panel-2: #F6FAFF;
  --stroke: #D7E6FF;

  --text: #111111;            /* texto negro */
  --muted: #444444;

  --shadow: 0 18px 60px rgba(0,0,0,.12);
  --radius: 18px;
  --container: 1120px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
.container{
  width:min(var(--container), calc(100% - 48px));
  margin-inline:auto;
}

h1,h2,h3{ color: var(--brand-primary); }

.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;
}

.scroll-progress{
  position:fixed;
  top:0; left:0;
  height:3px;
  width:0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  z-index: 9999;
}

/* Header */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid{
  background: rgba(234, 242, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--stroke);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand__mark{
  width:40px; height:40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.brand__logo{
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
@media (min-width: 860px){
  .brand__logo{ width: 28px; height: 28px; }
}
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__text strong{ color: var(--brand-primary); }
.brand__text small{ color: var(--muted); font-weight: 600; margin-top: 2px; }

/* Nav */
.nav{ display:flex; align-items:center; }
.nav__toggle{
  display:none;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}
.burger{
  display:block; width:20px; height:2px; background: var(--text);
  position: relative; border-radius: 3px;
}
.burger::before,.burger::after{
  content:"";
  position:absolute; left:0; width:20px; height:2px;
  background: var(--text); border-radius:3px;
}
.burger::before{ top:-6px; }
.burger::after{ top:6px; }

.nav__menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap:18px;
  margin:0; padding:0;
}
.nav__link{
  color: #222;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover{
  background: var(--panel-2);
  color: var(--brand-primary);
}
.nav__cta{ margin-left: 6px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor:pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.btn:hover{ transform: translateY(-1px); border-color: #cfe0ff; }
.btn:active{ transform: translateY(0px); }

.btn--primary{
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.btn--primary:hover{
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.btn--ghost{
  background: #fff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.btn--ghost:hover{
  background: rgba(193,18,31,.06);
}
.btn--icon{
  background: #fff;
  border-color: var(--stroke);
}
.btn--icon .btn__text{ font-weight: 800; }

/* Hero */
.hero{
  position:relative;
  min-height: 100vh;
  display:grid;
  place-items:center;
  padding-top: 86px;
  overflow:hidden;
}
.hero__media{ position:absolute; inset:0; z-index:-2; }
.hero__video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transform: translateZ(0) scale(1.02);
  will-change: transform, filter;
  filter: contrast(1.18) saturate(1.10) brightness(1.03);
  backface-visibility: hidden;
}
.hero__overlay{
  position:absolute; inset:0;
  /* overlay más ligero para que el video destaque + texto legible */
  background:
    linear-gradient(180deg, rgba(234,242,255,.70), rgba(234,242,255,.78)),
    radial-gradient(900px 520px at 15% 20%, rgba(193,18,31,.16), transparent 60%),
    radial-gradient(900px 520px at 85% 30%, rgba(193,18,31,.10), transparent 60%);
}
.hero__grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(rgba(193,18,31,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193,18,31,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 420px at 50% 38%, #000 35%, transparent 72%);
  opacity: .35;
}

.hero__content{
  text-align:left;
  padding: 40px 0 60px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  color: #222;
  font-weight: 700;
}
.dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(193,18,31,.14);
}

.hero h1{
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.hero__lead{
  max-width: 70ch;
  margin: 0;
  color: #111;
  font-size: 16px;
  line-height: 1.7;
}
.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero__trust{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  max-width: 820px;
}
.trust-card{
  padding: 14px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.trust-card strong{ display:block; font-size: 14px; color: var(--brand-primary); }
.trust-card span{ color: var(--muted); font-weight: 700; font-size: 13px; }

.hero__scroll{
  position:absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}
.mouse{
  width: 26px; height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.35);
  display:block;
  position: relative;
  background: rgba(255,255,255,.70);
}
.mouse::after{
  content:"";
  position:absolute;
  top: 9px; left: 50%;
  width: 4px; height: 8px;
  border-radius: 99px;
  background: rgba(0,0,0,.45);
  transform: translateX(-50%);
  animation: wheel 1.4s var(--ease) infinite;
}
@keyframes wheel{
  0%{ transform: translate(-50%, 0); opacity:.9; }
  60%{ transform: translate(-50%, 10px); opacity:.2; }
  100%{ transform: translate(-50%, 0); opacity:.9; }
}

/* Sections */
.section{ padding: 86px 0; }
.section--alt{ background: #F2F7FF; }
.section__header{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-bottom: 22px;
}
.section__header p{
  margin:0;
  max-width: 78ch;
  color: #111;
  line-height: 1.7;
}

.grid{ display:grid; gap: 14px; }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 18px 18px;
  overflow:hidden;
}
.card__icon{
  width: 42px; height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  color: #fff;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
.card p{ margin: 0; color: #111; line-height: 1.65; }

.service__img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  margin-bottom: 12px;
}

.list{
  margin: 14px 0 0;
  padding-left: 18px;
  color: #111;
  line-height: 1.7;
  font-weight: 700;
}
.list li{ margin: 6px 0; color: #111; }

.cta{
  margin-top: 18px;
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  border: 1px solid rgba(193,18,31,.18);
  background: rgba(193,18,31,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.cta__copy p{ margin:0; color: #111; line-height: 1.6; }
.cta__actions{ display:flex; gap: 10px; flex-wrap:wrap; }

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.stat{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.stat__num{
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}
.stat__label{
  color: #111;
  font-weight: 700;
  margin-top: 4px;
}

.quote{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.quote p{ margin: 0 0 10px; line-height: 1.7; color: #111; }
.quote span{ color: var(--muted); font-weight: 800; }

.muted{ color: var(--muted); }

/* Social grid */
.social-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.embed-card{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.embed-card__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--stroke);
  background: #F2F7FF;
}
.embed-card iframe{
  width: 100%;
  height: 700px;
  display:block;
}

/* Forms */
.form__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 12px;
}
.form__grid label{ display:flex; flex-direction:column; gap: 6px; }
.form__grid label span{ font-weight: 800; color: #111; font-size: 13px; }
.form__grid .full{ grid-column: 1 / -1; }

input, textarea{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-weight: 700;
  transition: border-color .2s var(--ease);
}
input:focus, textarea:focus{ border-color: rgba(193,18,31,.55); }

.contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}
.divider{
  height: 1px;
  background: var(--stroke);
  margin: 16px 0;
}
.mini{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.mini__row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  color: #111;
  font-weight: 800;
}
.mini__k{ color: var(--muted); }

/* Footer */
.footer{
  padding: 26px 0 40px;
  border-top: 1px solid var(--stroke);
  background: #fff;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
  flex-wrap:wrap;
}
.footer__brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.footer__links{
  display:flex;
  gap: 14px;
  color: #111;
  font-weight: 800;
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Floating buttons */
.float-actions{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.fab{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: #111;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  font-weight: 900;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fab:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.fab--call{
  border-color: rgba(193,18,31,.28);
  color: var(--brand-primary);
}
.fab--whatsapp{
  border-color: rgba(37,211,102,.35);
  color: #128C7E;
}

/* Responsive */
@media (max-width: 980px){
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .hero__trust{ grid-template-columns: 1fr; max-width: 560px; }
  .stats{ grid-template-columns: 1fr; }
  .cta{ flex-direction:column; align-items:flex-start; }

  .social-grid{ grid-template-columns: 1fr; }
  .embed-card iframe{ height: 560px; }
}

@media (max-width: 860px){
  .nav__toggle{ display:inline-flex; }
  .nav__menu{
    position:absolute;
    top: 64px;
    right: 24px;
    left: 24px;
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    padding: 12px;
    background: rgba(234,242,255,.96);
    backdrop-filter: blur(14px);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events:none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav__menu.is-open{
    opacity: 1;
    transform: translateY(0px);
    pointer-events:auto;
  }
  .nav__cta{ margin-left: 0; }
  .nav__link{ width:100%; }
  .form__grid{ grid-template-columns: 1fr; }

  .fab span{ display:none; }
  .fab{ padding: 12px; border-radius: 16px; }
}