:root {
  --navy: #061b4d;
  --blue: #123fa9;
  --blue-bright: #245fd7;
  --cyan: #17b8ca;
  --cyan-soft: #dff8fb;
  --ice: #f3fbff;
  --white: #ffffff;
  --text: #14243b;
  --muted: #607089;
  --line: #dce9f4;
  --shadow: 0 20px 55px rgba(9, 52, 120, 0.13);
  --shadow-soft: 0 12px 32px rgba(9, 52, 120, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1em; height: 1em; fill: currentColor; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 88px 0; }
.kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker-light { color: #91eef5; }

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,233,244,.9);
  box-shadow: 0 8px 24px rgba(6,27,77,.04);
}
.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--navy); }
.brand img { width: 60px; height: 54px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 800; }
.menu > a:not(.menu-whatsapp) { color: #334962; }
.menu > a:not(.menu-whatsapp):hover { color: var(--blue); }
.menu-whatsapp {
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  box-shadow: 0 10px 26px rgba(18,63,169,.22);
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--ice);
  cursor: pointer;
}
.menu-button span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--navy); transition: .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(23,184,202,.18), transparent 28%),
    linear-gradient(135deg, #f9fdff 0%, #eef8ff 52%, #eafcfd 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,63,169,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,63,169,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 54px;
  padding: 82px 0;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(3.2rem, 6vw, 6.1rem);
  line-height: .93;
  letter-spacing: -.055em;
}
.hero h1 span {
  display: block;
  color: var(--cyan);
}
.hero-text { max-width: 650px; margin: 26px 0 20px; color: #3f5673; font-size: clamp(1.08rem, 1.8vw, 1.34rem); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-pills span {
  padding: 9px 13px;
  border: 1px solid rgba(18,63,169,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--blue);
  font-weight: 800;
  font-size: .9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue-bright), var(--cyan)); box-shadow: 0 14px 30px rgba(18,63,169,.22); }
.button-secondary { color: var(--blue); background: #fff; border: 1px solid var(--line); }
.button-white { color: var(--blue); background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.button-full { width: 100%; }

.hero-logo-wrap {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
}
.hero-ring {
  position: absolute;
  width: 94%;
  height: 94%;
  border-radius: 50%;
  border: 1px solid rgba(18,63,169,.14);
  box-shadow: inset 0 0 0 26px rgba(23,184,202,.05);
}
.hero-logo-card {
  position: relative;
  width: 85%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 4%;
  border-radius: 40%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 34px 80px rgba(7,45,111,.20);
}
.hero-logo-card img { width: 100%; height: 100%; object-fit: contain; }
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-shape-one { width: 320px; height: 320px; left: -170px; top: 90px; background: rgba(36,95,215,.07); }
.hero-shape-two { width: 260px; height: 260px; right: -100px; bottom: 30px; background: rgba(23,184,202,.10); }

.intro { padding-top: 54px; padding-bottom: 54px; }
.intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff, #f3fbff);
  box-shadow: var(--shadow-soft);
}
.intro-card h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.inline-contact {
  min-width: 235px;
  display: grid;
  gap: 2px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--cyan-soft);
  color: var(--navy);
}
.inline-contact span { color: var(--blue); font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.inline-contact strong { font-size: 1.25rem; }

.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 18px; }
.service-card {
  grid-column: span 2;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #f8fcff 100%);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(23,184,202,.42); box-shadow: var(--shadow); }
.service-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: .83rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(18,63,169,.18);
}
.service-card h3 { margin: 34px 0 0; color: var(--navy); font-size: 1.12rem; line-height: 1.32; }

.professional { position: relative; overflow: hidden; padding: 88px 0; color: #fff; background: linear-gradient(135deg, var(--navy), #0d3f96 56%, #087d9e); }
.professional::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  border: 70px solid rgba(255,255,255,.04);
}
.professional-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px; }
.professional h2 { margin: 0; max-width: 760px; font-size: clamp(2.25rem, 4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; }
.professional-names { display: grid; gap: 14px; }
.name-card { padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: rgba(255,255,255,.08); font-weight: 900; }

.information { background: var(--ice); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.info-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--cyan-soft); color: var(--blue); font-size: 1.55rem; }
.info-card h3 { margin: 18px 0; color: var(--navy); font-size: 1.4rem; }
.schedule { display: grid; gap: 2px; }
.schedule > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.schedule > div:first-child { border-top: 0; }
.schedule span { color: var(--muted); grid-row: 1 / span 2; }
.schedule strong { color: var(--blue); text-align: right; }
address { font-style: normal; color: #40556f; font-size: 1.05rem; line-height: 1.85; }
.phone { margin: 0 0 20px; color: var(--blue); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 900; }

.facebook-section { padding-top: 58px; padding-bottom: 58px; }
.facebook-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 30px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff, #f0f9ff);
  box-shadow: var(--shadow-soft);
}
.facebook-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; background: #1877f2; color: #fff; font-size: 2.5rem; font-weight: 900; }
.facebook-card h2 { margin: 0; color: var(--navy); font-size: clamp(1.9rem, 3vw, 3rem); }

.final-contact { padding: 70px 0; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.final-contact-grid { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.final-contact h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.03; }
.final-contact p { margin: 6px 0; color: rgba(255,255,255,.9); }

.footer { padding: 38px 0; color: rgba(255,255,255,.78); background: #04153c; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand img { width: 58px; height: 52px; object-fit: contain; }
.footer p { margin: 5px 0; }

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 14px 30px rgba(17,112,53,.28);
  transition: transform .2s ease;
}
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.03); }

/* El contenido queda visible aun si JavaScript no carga. */
.js-ready .service-card,
.js-ready .info-card,
.js-ready .intro-card,
.js-ready .facebook-card,
.js-ready .name-card {
  animation: enter .55s ease both;
}
@keyframes enter {
  from { opacity: .01; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .service-card { grid-column: span 2; }
  .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
}

@media (max-width: 900px) {
  .nav { min-height: 74px; }
  .menu-button { display: block; }
  .menu {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .menu.is-open { display: grid; gap: 4px; }
  .menu a { padding: 12px 14px; border-radius: 12px; }
  .menu-whatsapp { text-align: center; }
  .menu-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button.is-open span:nth-child(2) { opacity: 0; }
  .menu-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 64px 0 86px; }
  .hero-content { text-align: center; }
  .hero-pills, .hero-actions { justify-content: center; }
  .hero-logo-wrap { width: min(92vw, 510px); margin: 0 auto; }
  .professional-grid { grid-template-columns: 1fr; text-align: center; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 70px 0; }
  .brand span { font-size: .88rem; }
  .brand img { width: 52px; height: 47px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
  .hero-text { font-size: 1.04rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-logo-card { width: 92%; border-radius: 36%; }
  .intro-card { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .inline-contact { min-width: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: auto; min-height: 170px; }
  .facebook-card { flex-direction: column; text-align: center; padding: 28px 20px; }
  .final-contact-grid { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .floating-whatsapp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

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