:root {
  --navy: #07182c;
  --navy-2: #0b2340;
  --ink: #102038;
  --muted: #657186;
  --yellow: #ffd129;
  --red: #d8272f;
  --paper: #f7f8fa;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { flex: none; }
.container { width: min(100% - 48px, 1216px); margin-inline: auto; }

.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 860px; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .68); }
.hero__photo, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__photo { background: url('../images/hero-cdmx-dia.jpg') center 53% / cover no-repeat; transform: scale(1.015); }
.hero__shade { background: linear-gradient(90deg, rgba(3, 12, 25, .16) 0%, rgba(3, 12, 25, .68) 34%, rgba(3, 12, 25, .68) 66%, rgba(3, 12, 25, .16) 100%), linear-gradient(180deg, rgba(3, 12, 25, .08), rgba(3, 12, 25, .22)); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 6px; background: var(--yellow); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-block: 46px 58px; }
.hero__online { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 19px; padding: 9px 16px; border: 1px solid rgba(69, 232, 127, .45); border-radius: 999px; background: rgba(3, 24, 24, .75); color: #eaffef; font-size: 13px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 7px 24px rgba(0, 0, 0, .22); }
.hero__online-dot { width: 11px; height: 11px; border-radius: 50%; background: #32e975; box-shadow: 0 0 0 4px rgba(50, 233, 117, .18), 0 0 15px rgba(50, 233, 117, .85); animation: online-pulse 1.6s ease-in-out infinite; }
@keyframes online-pulse { 50% { opacity: .45; box-shadow: 0 0 0 8px rgba(50, 233, 117, .08), 0 0 7px rgba(50, 233, 117, .45); } }
.hero__logo { width: clamp(220px, 23vw, 290px); height: auto; margin-bottom: 20px; filter: drop-shadow(0 9px 22px rgba(0, 0, 0, .3)); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 22px; font-size: clamp(50px, 7vw, 95px); line-height: .99; letter-spacing: -.07em; font-weight: 800; text-wrap: balance; text-shadow: 0 3px 12px rgba(0, 0, 0, .8), 0 7px 28px rgba(0, 0, 0, .35); }
.hero h1 span { color: var(--yellow); }
.availability { display: inline-flex; align-items: center; gap: 9px; min-height: 39px; margin: 0 0 24px; padding: 8px 17px; border-radius: 5px; background: var(--red); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .015em; box-shadow: 0 7px 22px rgba(89, 8, 16, .28); }
.availability svg { width: 19px; height: 19px; }
.hero__description { width: min(100%, 660px); margin-bottom: 30px; color: #e5ebf1; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.65; font-weight: 500; text-wrap: pretty; }
.hero__description p { margin: 0 0 10px; }
.hero__description p:last-child { margin-bottom: 0; }
.hero__description strong { color: #fff; font-weight: 800; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; padding: 14px 22px; border-radius: 7px; text-decoration: none; font-size: 17px; font-weight: 800; line-height: 1.25; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, .service-card__link:focus-visible, .footer a:focus-visible, .mobile-action:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.service-card__link:focus-visible, .mobile-action:focus-visible { outline-color: var(--navy); }
.button--primary { background: var(--yellow); color: var(--navy); box-shadow: 0 12px 30px rgba(0, 0, 0, .24); }
.hero .button--primary { text-shadow: 0 1px 1px rgba(255, 255, 255, .4); }
.button--primary:hover { background: #ffe06b; box-shadow: 0 16px 35px rgba(0, 0, 0, .3); }
.button svg, .mobile-action svg { width: 22px; height: 22px; }
.button__arrow { padding-left: 10px; font-size: 20px; line-height: 1; }
.hero__note { margin: 14px 0 0; color: #c8d3de; font-size: 12px; font-weight: 600; }

.services { padding: 100px 0 114px; background: var(--paper); }
.section-heading { max-width: 740px; margin: 0 auto 65px; text-align: center; }
.section-heading h2 { margin-bottom: 19px; color: var(--navy); font-size: clamp(35px, 4.3vw, 59px); line-height: 1.09; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.section-heading h2 em, .closing h2 em { color: #cc2932; font-style: normal; }
.section-heading > p:last-child { max-width: 575px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.75; }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 47px 34px; }
.service-card { min-width: 0; padding: 18px 18px 24px; border: 1px solid #e4e8ed; border-radius: 17px; background: #fff; box-shadow: 0 16px 42px rgba(11, 35, 64, .065); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(11, 35, 64, .12); }
.service-card__visual { position: relative; }
.service-card__image-wrap { position: relative; overflow: hidden; border-radius: 9px; aspect-ratio: 1.63; background: #dce3eb; }
.service-card__image-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(3, 17, 34, .24)); pointer-events: none; }
.service-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover img { transform: scale(1.045); }
.service-card__number { position: absolute; z-index: 1; bottom: -15px; left: 16px; display: grid; place-items: center; width: 49px; height: 49px; border: 4px solid #fff; border-radius: 8px; background: var(--navy); color: var(--yellow); font-size: 14px; font-weight: 800; }
.service-card__body { padding: 28px 12px 0; }
.service-card h3 { margin-bottom: 9px; color: var(--navy); font-size: clamp(22px, 2.1vw, 27px); line-height: 1.2; letter-spacing: -.035em; font-weight: 800; }
.service-card p { max-width: 440px; min-height: 55px; margin-bottom: 19px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.service-card__link { display: inline-flex; align-items: center; gap: 8px; color: #bd242b; text-decoration: none; font-size: 14px; font-weight: 800; }
.service-card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-card__link span { font-size: 19px; }

.closing { position: relative; overflow: hidden; padding: 86px 0 92px; background: var(--navy); color: #fff; text-align: center; }
.closing::before, .closing::after { content: ''; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; pointer-events: none; }
.closing::before { top: -210px; left: -120px; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.closing::after { right: -170px; bottom: -275px; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.closing__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.closing__spark { margin-bottom: 9px; color: var(--yellow); font-size: 30px; }
.closing__label { margin-bottom: 15px; color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.closing h2 { margin-bottom: 14px; font-size: clamp(35px, 4.5vw, 58px); line-height: 1.1; letter-spacing: -.055em; }
.closing h2 em { color: var(--yellow); }
.closing__inner > p:not(.closing__label) { max-width: 540px; margin-bottom: 26px; color: #ced9e3; font-size: 16px; line-height: 1.7; }
.footer { padding: 24px 0; background: #03101f; color: #aab8c7; font-size: 13px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer a { color: #fff; text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; }
.mobile-actions { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: grid; grid-template-columns: repeat(2, 175px); gap: 10px; visibility: hidden; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.mobile-actions.is-visible { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-action { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 55px; padding: 8px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, .25); text-decoration: none; font-size: 15px; font-weight: 800; white-space: nowrap; }
.mobile-action--call { background: var(--yellow); color: var(--navy); }
.mobile-action--whatsapp { background: #25d366; color: #073d20; }

@media (max-width: 760px) {
  .container { width: min(100% - 36px, 560px); }
  .hero { min-height: 780px; }
  .hero__photo { background-position: 66% center; }
  .hero__shade { background: rgba(3, 12, 25, .68); }
  .hero__content { padding-block: 38px 54px; }
  .hero__logo { width: 220px; margin-bottom: 18px; }
  .hero h1 { margin-bottom: 20px; font-size: clamp(47px, 11.5vw, 68px); }
  .availability { margin-bottom: 20px; font-size: 13px; }
  .hero__description { margin-bottom: 23px; font-size: 16px; line-height: 1.6; }
  .button { width: 100%; max-width: 365px; min-height: 60px; padding-inline: 14px; font-size: 15px; }
  .button__arrow { padding-left: 0; }
  .services { padding: 72px 0 83px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2 { font-size: clamp(35px, 9vw, 48px); }
  .services__grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card { padding: 14px 14px 22px; }
  .service-card__body { padding: 28px 9px 0; }
  .service-card h3 { font-size: 23px; }
  .service-card p { min-height: 0; }
  .closing { padding: 76px 0 82px; }
  .footer { padding: 27px 0 95px; }
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
  .mobile-actions { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; grid-template-columns: 1fr 1fr; gap: 8px; }
}

@media (max-width: 380px) {
  .hero { min-height: 750px; }
  .hero__logo { width: 190px; }
  .hero h1 { font-size: 46px; }
  .hero__description { font-size: 15px; }
  .mobile-action { font-size: 14px; }
}

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