/* ============================================================
   HOSPITAL MQA — Estilo Medigo
   Paleta: Azul #0D6EFD / #1565C0, Blanco, Gris claro
   Tipografía: Montserrat
   ============================================================ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --blue:        #1565C0;
  --blue-dark:   #0D47A1;
  --blue-light:  #1E88E5;
  --blue-pale:   #E3F2FD;
  --blue-mid:    #1976D2;
  --accent:      #00B0FF;
  --red:         #E53935;
  --green:       #25D366;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --gray-800:    #1E293B;
  --text:        #1E293B;
  --text-muted:  #64748B;

  --font: 'Montserrat', sans-serif;

  --sh-sm:  0 2px 8px rgba(0,0,0,.07);
  --sh-md:  0 6px 24px rgba(0,0,0,.10);
  --sh-lg:  0 16px 48px rgba(0,0,0,.13);
  --sh-xl:  0 24px 64px rgba(0,0,0,.16);
  --sh-blue:0 8px 32px rgba(21,101,192,.35);

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  --transition: .24s ease;
  --max-w: 1200px;
  --topbar-h: 40px;
  --header-h: 80px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; max-width: 100%; width: 100%; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
address { font-style: normal; }
button  { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── CONTENEDOR ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 20px; }

/* ─── TIPOGRAFÍA GENERAL ─────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--text); }

.section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}
.section-pretitle i { color: var(--blue-light); }
.section-pretitle--white { color: rgba(255,255,255,.85); }
.section-pretitle--white i { color: rgba(255,255,255,.7); }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.section-title span { color: var(--blue-light); }
.section-title--white { color: var(--white); }
.section-title--white span { color: var(--accent); }

.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 580px; line-height: 1.7; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .section-sub { margin-inline: auto; }

/* ─── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .88rem;
  padding: 12px 26px; border-radius: var(--r-full);
  border: 2px solid transparent; transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--sh-blue); }

.btn--outline-dark { background: transparent; color: var(--text); border-color: var(--gray-400); }
.btn--outline-dark:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn--outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline-blue:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

.btn--white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--white:hover { background: var(--blue-pale); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--sm  { padding: 8px 18px; font-size: .8rem; }
.btn--lg  { padding: 14px 34px; font-size: .95rem; }
.btn--full { width: 100%; justify-content: center; border-radius: var(--r-md); }

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--blue-dark);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: rgba(255,255,255,.75);
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__left i, .topbar__right i { margin-right: 4px; color: var(--accent); }
.topbar__right a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.topbar__right a:hover { color: var(--white); }

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 1000;
  background: var(--white);
  height: var(--header-h);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), top var(--transition);
}
.header.scrolled { box-shadow: var(--sh-md); top: 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

/* Logo imagen real */
.logo { display: flex; align-items: center; }
.logo__img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition), transform var(--transition);
}
.logo:hover .logo__img { opacity: .88; transform: scale(1.02); }

/* Logo footer — versión más grande y con fondo para contraste */
.logo__img--footer {
  height: 58px;
  width: auto;
  /* fondo blanco semitransparente para que el logo sea visible sobre fondo oscuro */
  background: rgba(255,255,255,.92);
  padding: 8px 16px;
  border-radius: var(--r-md);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* Mantener compatibilidad con logo__icon si se usa en otro lugar */
.logo__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.15rem; transition: transform var(--transition);
}
.logo__icon--sm { width: 36px; height: 36px; font-size: .95rem; border-radius: var(--r-sm); }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.logo__name strong { color: var(--blue); }
.logo__tagline { font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* Nav */
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  font-size: .83rem; font-weight: 600; color: var(--text-muted);
  padding: 8px 14px; border-radius: var(--r-sm); transition: all var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--blue); background: var(--blue-pale); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: var(--r-sm); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 990; backdrop-filter: blur(3px); }
.nav-overlay.active { display: block; }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--white) 0%, #EEF5FF 55%, #DBEAFE 100%);
  min-height: calc(100vh - var(--header-h) - var(--topbar-h));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  max-width: 100%;
}

/* Hexágonos decorativos de fondo */
.hero__deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hex {
  position: absolute;
  width: 320px; height: 320px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  opacity: .06;
  background: var(--blue);
}
.hex--1 { width: 420px; height: 420px; top: -120px; right: -80px; opacity: .07; }
.hex--2 { width: 260px; height: 260px; bottom: 60px; left: -60px; opacity: .05; }
.hex--3 { width: 180px; height: 180px; top: 60%; right: 30%; opacity: .04; }
.hex--4 { width: 120px; height: 120px; top: 20%; left: 30%; opacity: .04; }

.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding-block: 72px;
}

/* Texto */
.hero__pretitle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 18px; letter-spacing: -.02em;
}
.hero__title--blue { color: var(--blue); display: block; }
.hero__title--dark { color: var(--text); }
.hero__desc { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; max-width: 440px; }

/* Teléfono de emergencia */
.hero__emergency {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--r-full);
  padding: 10px 20px 10px 10px;
  box-shadow: var(--sh-md); margin-bottom: 28px;
  border: 2px solid var(--blue-pale);
}
.hero__emergency-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem; flex-shrink: 0;
}
.hero__emergency-text { display: flex; flex-direction: column; }
.hero__emergency-text span { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.hero__emergency-text a { font-size: 1.15rem; font-weight: 800; color: var(--blue); letter-spacing: -.01em; }
.hero__emergency-text a:hover { color: var(--blue-dark); }

.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; max-width: 100%; }

/* Visual / Diamante */
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }

/* Forma diamante principal */
.hero__diamond-wrap { position: relative; }
.hero__diamond {
  width: 340px; height: 340px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  overflow: hidden;
  border: 0;
  background: var(--blue-pale);
  box-shadow: var(--sh-xl);
}
.hero__diamond img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }

/* Diamante pequeño decorativo */
.hero__diamond-sm {
  position: absolute;
  bottom: -30px; left: -50px;
  width: 140px; height: 140px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--sh-lg);
}
.hero__diamond-sm img { width: 100%; height: 100%; object-fit: cover; }

/* Badge 24/7 */
.hero__badge-float {
  position: absolute;
  top: -24px; right: -24px;
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-blue);
  border: 4px solid var(--white);
  animation: rotate-badge 12s linear infinite;
}
.hero__badge-float-inner { text-align: center; color: var(--white); }
.hero__badge-float-num { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.hero__badge-float-lbl { font-size: .6rem; font-weight: 600; letter-spacing: .04em; opacity: .85; }

@keyframes rotate-badge {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Burbujas de estadísticas flotantes */
.hero__stat-bubble {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--sh-lg);
  font-size: .78rem;
  animation: float-y 4s ease-in-out infinite;
}
.hero__stat-bubble i { font-size: 1.3rem; color: var(--blue); }
.hero__stat-bubble div { display: flex; flex-direction: column; }
.hero__stat-bubble strong { font-weight: 700; color: var(--text); font-size: .82rem; line-height: 1.1; }
.hero__stat-bubble span  { font-size: .68rem; color: var(--text-muted); }
.hero__stat-bubble--1 { bottom: 60px; right: -20px; animation-delay: 0s; }
.hero__stat-bubble--2 { top: 30px; left: -20px; animation-delay: 1.5s; }

@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─── QUICK ACCESS ───────────────────────────────────────── */
.quick-access {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 10;
  margin-top: -2px;
}
.quick-access__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--sh-lg);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.qa-card {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.qa-card:last-child { border-right: none; }
.qa-card:hover { background: var(--blue); }
.qa-card:hover .qa-card__icon,
.qa-card:hover .qa-card__text h3,
.qa-card:hover .qa-card__text p,
.qa-card:hover .qa-card__arrow { color: var(--white) !important; }
.qa-card:hover .qa-card__icon { background: rgba(255,255,255,.2); }

.qa-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  transition: all var(--transition);
}
.qa-card__text { flex: 1; }
.qa-card__text h3 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; transition: color var(--transition); }
.qa-card__text p  { font-size: .72rem; color: var(--text-muted); transition: color var(--transition); }
.qa-card__arrow { color: var(--blue); font-size: .85rem; transition: all var(--transition); margin-left: auto; flex-shrink: 0; }
.qa-card:hover .qa-card__arrow { transform: translateX(4px); }

/* ─── SOBRE NOSOTROS ─────────────────────────────────────── */
.about { padding: 100px 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* Imagen con diamante */
.about__img-wrap { position: relative; padding: 30px 30px 60px 0; }
.about__img-main {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-xl);
}
.about__img-main img { width: 100%; height: 420px; object-fit: cover; transition: transform .5s; }
.about__img-main:hover img { transform: scale(1.04); }

.about__img-diamond {
  position: absolute;
  bottom: 0; right: -10px;
  width: 160px; height: 160px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--sh-lg);
}
.about__img-diamond img { width: 100%; height: 100%; object-fit: cover; }

.about__exp-badge {
  position: absolute;
  top: 10px; left: -20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  border-radius: var(--r-md); padding: 14px 20px;
  text-align: center; box-shadow: var(--sh-blue);
}
.about__exp-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about__exp-lbl { font-size: .7rem; font-weight: 600; opacity: .85; line-height: 1.3; }

/* Contenido */
.about__desc { color: var(--text-muted); font-size: .95rem; line-height: 1.8; margin-bottom: 24px; }
.about__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.about__list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); }
.about__list i { color: var(--blue); font-size: .9rem; }
.about__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── SERVICIOS ──────────────────────────────────────────── */
.services { padding: 100px 0; background: var(--gray-50); }
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.svc-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: var(--blue); }

.svc-card__img { position: relative; height: 200px; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card__img img { transform: scale(1.06); }
.svc-card__badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--red); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: var(--r-full);
}

.svc-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.svc-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-pale); color: var(--blue);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
  transition: all var(--transition);
}
.svc-card:hover .svc-card__icon { background: var(--blue); color: var(--white); }
.svc-card__body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.svc-card__body p  { font-size: .86rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.svc-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: .82rem; font-weight: 700;
  margin-top: 16px; transition: gap var(--transition);
}
.svc-card__link:hover { gap: 10px; }

/* ─── STATS ──────────────────────────────────────────────── */
.stats {
  padding: 72px 0; position: relative; overflow: hidden;
}
.stats__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
}
.stats__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.stat-item {
  text-align: center; padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-item__icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--white);
  margin: 0 auto 12px;
}
.stat-item__num {
  display: inline;
  font-size: 2.6rem; font-weight: 800;
  color: var(--white); letter-spacing: -.02em; line-height: 1;
}
.stat-item__plus { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-item p { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }

/* ─── ESPECIALIDADES ─────────────────────────────────────── */
.specialties { padding: 100px 0; background: var(--white); }
.specialties__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

.spec-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--gray-200);
  box-shadow: var(--sh-sm); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }

.spec-card__img { height: 180px; overflow: hidden; }
.spec-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.spec-card:hover .spec-card__img img { transform: scale(1.06); }

.spec-card__body {
  padding: 22px 20px; flex: 1; display: flex; flex-direction: column;
  border-bottom: 3px solid transparent; transition: border-color var(--transition);
}
.spec-card:hover .spec-card__body { border-bottom-color: var(--blue); }

.spec-card__icon {
  width: 48px; height: 48px;
  background: var(--blue-pale); color: var(--blue);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 12px;
  transition: all var(--transition);
}
.spec-card:hover .spec-card__icon { background: var(--blue); color: var(--white); }
.spec-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.spec-card__body p  { font-size: .83rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 14px; }
.spec-card__btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--blue);
  border: 1.5px solid var(--blue-pale);
  padding: 7px 14px; border-radius: var(--r-full);
  transition: all var(--transition); align-self: flex-start;
}
.spec-card__btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ─── WHY US ─────────────────────────────────────────────── */
.why-us {
  padding: 100px 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
}
.why-us__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* Horario */
.why-us__schedule {
  margin: 24px 0;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 20px;
}
.why-us__schedule h4 {
  font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.9);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.schedule-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  font-size: .82rem;
}
.schedule-grid span { color: rgba(255,255,255,.75); }
.schedule-highlight { color: var(--accent); font-weight: 700; }

/* Urgencias */
.why-us__emergency {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(229,57,53,.2); border: 1px solid rgba(229,57,53,.35);
  border-radius: var(--r-md); padding: 16px; margin-bottom: 28px;
}
.why-us__emergency-icon {
  width: 40px; height: 40px; background: var(--red); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem; flex-shrink: 0;
}
.why-us__emergency strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 3px; }
.why-us__emergency p { font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.5; margin: 0; }

/* Pilares */
.why-us__pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why-pillar {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,.1); border-radius: var(--r-md);
  padding: 14px; transition: background var(--transition);
}
.why-pillar:hover { background: rgba(255,255,255,.18); }
.why-pillar__icon {
  width: 36px; height: 36px; background: rgba(255,255,255,.15);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; color: var(--white); font-size: .95rem; flex-shrink: 0;
}
.why-pillar strong { display: block; font-size: .82rem; color: var(--white); font-weight: 700; margin-bottom: 2px; }
.why-pillar p { font-size: .72rem; color: rgba(255,255,255,.65); margin: 0; line-height: 1.4; }

/* Imagen derecha con diamante */
.why-us__visual { display: flex; justify-content: center; align-items: center; }
.why-us__diamond-wrap { position: relative; }
.why-us__diamond {
  width: 380px; height: 380px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.why-us__diamond img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.why-us__diamond-sm {
  position: absolute;
  top: -24px; right: -40px;
  width: 160px; height: 160px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.4);
  box-shadow: var(--sh-lg);
}
.why-us__diamond-sm img { width: 100%; height: 100%; object-fit: cover; }

/* ─── INSTALACIONES ──────────────────────────────────────── */
.facilities { padding: 100px 0; background: var(--gray-50); }
.facilities__gallery {
  display: grid; grid-template-columns: 1fr 150px;
  gap: 14px; height: 420px; margin-bottom: 40px;
}
.gallery__main { border-radius: var(--r-xl); overflow: hidden; position: relative; box-shadow: var(--sh-lg); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: var(--white); padding: 20px 20px 16px;
  font-weight: 600; font-size: .9rem;
}
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumb { flex: 1; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; transition: all var(--transition); cursor: pointer; opacity: .65; }
.gallery__thumb:hover { opacity: .9; }
.gallery__thumb.active { border-color: var(--blue); opacity: 1; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Amenidades */
.amenities__grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
.amenity-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--text-muted);
  padding: 14px 16px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); transition: all var(--transition);
}
.amenity-item:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.amenity-item i { color: var(--blue); font-size: 1.05rem; width: 20px; flex-shrink: 0; }

/* ─── CONTACTO ───────────────────────────────────────────── */
.contact { padding: 100px 0; background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: start; }

.contact__info-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--gray-50); border-radius: var(--r-md);
  padding: 18px; border: 1px solid var(--gray-200);
  margin-bottom: 14px; transition: all var(--transition);
}
.contact__info-card:hover { border-color: var(--blue); box-shadow: var(--sh-sm); }
.contact__info-card--primary { border-left: 4px solid var(--red); }
.contact__info-card > i {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue); color: var(--white);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.contact__info-card h4 { font-size: .76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; font-family: var(--font); }
.contact__phone { font-size: 1.4rem; font-weight: 800; color: var(--blue); display: block; }
.contact__phone:hover { color: var(--blue-dark); }
.contact__info-card a { color: var(--blue); font-weight: 600; font-size: .9rem; }
.contact__info-card a:hover { text-decoration: underline; }
.contact__info-card address, .contact__info-card span { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.contact__map { margin-top: 4px; }

/* Formulario */
.contact__form-wrap {
  background: var(--gray-50); border-radius: var(--r-xl);
  padding: 36px; box-shadow: var(--sh-md);
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--gray-200); border-radius: var(--r-md);
  font-size: .88rem; color: var(--text); background: var(--white);
  outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group input.error, .form-group textarea.error { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-error { display: block; font-size: .74rem; color: var(--red); margin-top: 3px; min-height: 16px; }
.form-privacy { text-align: center; font-size: .72rem; color: var(--text-muted); margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 4px; }

.contact__success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 20px; gap: 10px;
}
.contact__success i { font-size: 3rem; color: #22C55E; }
.contact__success h4 { font-size: 1.3rem; }
.contact__success p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.contact__success a { color: var(--blue); font-weight: 600; }

/* ─── EMERGENCIA CTA ─────────────────────────────────────── */
.emergency-cta {
  background: linear-gradient(135deg, var(--red) 0%, #C62828 100%);
  padding: 52px 0;
}
.emergency-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.emergency-cta__icon {
  width: 60px; height: 60px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--white); font-size: 1.7rem; flex-shrink: 0;
}
.emergency-cta__text h2 { font-size: 1.7rem; color: var(--white); margin-bottom: 4px; }
.emergency-cta__text p  { color: rgba(255,255,255,.8); font-size: .92rem; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer { background: #0F172A; }
.footer__top { padding: 60px 0 44px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer__col p { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.75; margin-top: 12px; }
.footer__col h4 { font-size: .75rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 18px; font-family: var(--font); }
.footer__col ul li { margin-bottom: 9px; }
.footer__col ul a { color: rgba(255,255,255,.55); font-size: .85rem; display: inline-flex; align-items: center; gap: 5px; transition: color var(--transition); }
.footer__col ul a::before { content: '›'; color: var(--blue-light); font-size: 1rem; }
.footer__col ul a:hover { color: var(--white); }
.footer__logo { display: flex; align-items: center; gap: 10px; }

.footer__social { display: flex; gap: 8px; margin-top: 16px; }
.footer__social a {
  width: 36px; height: 36px; background: rgba(255,255,255,.08);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.6); font-size: .9rem;
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }

.footer__contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: rgba(255,255,255,.55); font-size: .85rem; }
.footer__contact i { color: var(--blue-light); width: 16px; flex-shrink: 0; margin-top: 2px; }
.footer__contact a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer__contact a:hover { color: var(--white); }
.footer__contact address { color: rgba(255,255,255,.55); line-height: 1.5; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom p { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer__bottom div a { color: rgba(255,255,255,.35); font-size: .8rem; margin-left: 18px; transition: color var(--transition); }
.footer__bottom div a:hover { color: rgba(255,255,255,.8); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 16px;
  width: 54px; height: 54px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.5rem;
  box-shadow: 0 4px 18px rgba(37,211,102,.5);
  z-index: 1500; transition: all var(--transition);
  /* pulso animado para llamar la atención */
  animation: wa-pulse 2.8s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation: none; }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.35); }
  50%      { box-shadow: 0 4px 18px rgba(37,211,102,.5), 0 0 0 12px rgba(37,211,102,0); }
}

.whatsapp-float__tooltip {
  position: absolute; right: calc(100% + 10px);
  background: var(--gray-800); color: var(--white);
  font-size: .72rem; font-weight: 600; padding: 5px 10px;
  border-radius: var(--r-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.whatsapp-float__tooltip::after { content:''; position:absolute; left:100%; top:50%; transform:translateY(-50%); border:5px solid transparent; border-left-color: var(--gray-800); }
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

/* ─── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 86px; right: 16px;
  width: 40px; height: 40px; background: var(--blue); color: var(--white);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; font-size: .82rem; z-index: 1500;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all var(--transition); box-shadow: var(--sh-md);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .quick-access__grid { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .specialties__grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }
  .hamburger { display: flex; }
  .header__actions .btn--primary { display: none; }

  /* Evitar scroll horizontal en tablet */
  .hero__stat-bubble--1 { right: 0; }
  .hero__stat-bubble--2 { left: 0; }
  .about__img-diamond { right: 0; }
  .about__img-wrap { overflow: visible; }

  .nav {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100dvh;
    background: var(--white); box-shadow: var(--sh-xl); z-index: 995;
    padding: 80px 24px 32px; transition: right .3s ease;
  }
  .nav.open { right: 0; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 12px 16px; font-size: .95rem; border-radius: var(--r-md); }
  .nav__link:hover { background: var(--blue-pale); }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-block: 60px; text-align: center; width: 100%; max-width: 100%; overflow: hidden; }
  .hero__pretitle, .hero__btns, .hero__emergency { justify-content: center; }
  .hero__emergency { width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero__btns { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__btns .btn { width: 100%; text-align: center; justify-content: center; }
  .hero__desc { margin-inline: auto; max-width: 100%; }
  .hero__stat-bubble--2 { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__img-wrap { max-width: 480px; margin: 0 auto; }

  .services__grid { grid-template-columns: 1fr 1fr; }

  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.1); }

  .why-us__grid { grid-template-columns: 1fr; }
  .why-us__visual { display: none; }

  .facilities__gallery { grid-template-columns: 1fr; height: auto; }
  .gallery__main { height: 300px; }
  .gallery__thumbs { flex-direction: row; height: 80px; }

  .amenities__grid { grid-template-columns: repeat(2,1fr); }

  .contact__grid { grid-template-columns: 1fr; }

  .emergency-cta__inner { justify-content: center; text-align: center; }
  .emergency-cta__icon { display: none; }
}

@media (max-width: 600px) {
  /* Layout general */
  .quick-access__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .specialties__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .why-us__pillars { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 20px 16px; }

  /* Hero en móvil: ocultar elementos que salen del viewport */
  .hero__visual { display: none; }
  .hero__grid {
    grid-template-columns: 1fr;
    padding-block: 48px 40px;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .hero__text {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .hero__title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .hero__desc { font-size: .90rem; max-width: 100%; }

  /* Teléfono de emergencia: que no desborde */
  .hero__emergency {
    display: flex;
    flex-direction: row;
    width: calc(100% - 0px);
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 14px 8px 8px;
    margin-bottom: 20px;
  }
  .hero__emergency-text a { font-size: 1rem; }
  .hero__emergency-text span { font-size: .65rem; }

  /* Botones: columna centrada, ancho completo */
  .hero__btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .hero__btns .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  /* About: ocultar elemetos flotantes que desbordan */
  .about__img-diamond { display: none; }
  .about__exp-badge { left: 0; top: 0; }
  .about__img-wrap { padding: 40px 0 16px 0; }

  /* Secciones con posibles desbordamientos */
  .hero__stat-bubble { display: none; }
  .hero__diamond-sm { display: none; }
  .hero__badge-float { display: none; }

  /* Quick access cards más compactas */
  .qa-card { padding: 16px 14px; }

  /* Galería móvil */
  .gallery__thumbs { height: 64px; }

  /* Stats compactos */
  .stat-item { padding: 16px 8px; }
  .stat-item__num { font-size: 2rem; }

  /* Footer bottom */
  .footer__bottom div { display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .footer__bottom div a { margin-left: 0; }

  /* WhatsApp + back-to-top accesibles */
  .whatsapp-float { bottom: 16px; right: 14px; width: 50px; height: 50px; font-size: 1.4rem; }
  .back-to-top     { bottom: 78px; right: 14px; width: 38px; height: 38px; }
  .whatsapp-float__tooltip { display: none; }

  /* Contenedor sin sangría lateral, sin desbordamiento */
  .container {
    padding-inline: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Secciones: padding reducido */
  .about, .services, .specialties, .why-us, .facilities, .contact { padding: 64px 0; }
  .stats { padding: 52px 0; }
  .section-header { margin-bottom: 36px; }
}
