@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --teal:           #39B2BE;
  --teal-dark:      #2E8F9A;
  --teal-light:     #E6F7F9;
  --navy:           #0D2137;
  --navy-mid:       #163652;
  --navy-light:     #1E4A6E;
  --gray:           #4A5A6A;
  --gray-light:     #F4F8FA;
  --gray-mid:       #E2EBF0;
  --white:          #FFFFFF;
  --text:           #1A2A3A;
  --serif:          'Cormorant Garamond', Georgia, serif;
  --sans:           'Outfit', sans-serif;
  --emergency:      #D93025;
  --emergency-dark: #B71C1C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   NAVEGACIÓN
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 33, 55, 0.97);
  backdrop-filter: blur(16px);
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(57, 178, 190, 0.15);
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  display: block;
  max-height: 56px;
  width: auto;
}

.nav-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--white);
}

.nav-brand-sub {
  margin-top: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li { list-style: none; }

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: color .2s, background .2s;
}

.nav-links a:not(.nav-cta):not(.nav-urgencias) {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-links a:not(.nav-cta):not(.nav-urgencias):hover {
  background: rgba(57, 178, 190, 0.08);
  color: var(--white);
}

.nav-links a.active { color: var(--teal); }

.nav-cta,
.nav-urgencias {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* ── CTA ── */
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: background .3s;
}

.nav-cta:hover { background: var(--teal-dark); }

/* ── Urgencias ── */
.nav-urgencias {
  background: #D93025 !important;
  color: #fff !important;
  border: none !important;
  padding: 9px 16px !important;
  border-radius: 6px !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(217, 48, 37, 0.4) !important;
  transition: background .2s, transform .15s, box-shadow .2s !important;
}

.nav-urgencias:hover {
  background: #B71C1C !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 48, 37, 0.5) !important;
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background .15s;
  flex-shrink: 0;
}

.nav-hamburger:hover { background: rgba(255, 255, 255, 0.1); }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════════
   MODAL 911 — URGENCIAS
══════════════════════════════════════════ */
.modal-911-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 30, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}

.modal-911-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-911 {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: modal911In .25s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modal911In {
  from { transform: scale(.92) translateY(12px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

.modal-911-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.modal-911-close:hover {
  background: var(--gray-light);
  color: var(--text);
}

.modal-911-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-911-ambulance {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(217, 48, 37, 0.3));
}

.modal-911-header h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.modal-911-header p {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

.modal-911-header strong {
  font-size: 18px;
  color: var(--emergency);
  font-weight: 700;
}

.modal-911-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--emergency);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 28px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(217, 48, 37, 0.3);
}

.modal-911-call-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.modal-911-call-btn:hover {
  background: var(--emergency-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 48, 37, 0.4);
}

.modal-911-steps h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.modal-911-steps ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-911-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--emergency);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.modal-911-steps li div strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.modal-911-steps li div p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
}

.modal-911-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(57, 178, 190, 0.08);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   FOOTER ULTRACOMPACTO (más delgado)
══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: #e2e8f0;
  padding: 20px 32px 20px;  /* reducido de 40px a 28px arriba */
  font-family: var(--sans);
  border-top: 1px solid rgba(57,178,190,0.15);
  margin-top: 40px;         /* bajó de 60px */
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 24px;                /* reducido de 32px */
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 18px;          /* antes 20px */
  font-weight: 600;
  color: white;
  margin-bottom: 6px;       /* antes 8px */
}

.footer-desc {
  font-size: 12px;          /* antes 13px */
  line-height: 1.4;         /* más ajustado */
  opacity: 0.7;
  margin-bottom: 0;
  max-width: 240px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 11px;          /* antes 13px */
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;      /* antes 14px */
}

.footer-links a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;          /* antes 13px */
  line-height: 1.8;         /* antes 2 */
  transition: all 0.2s;
}

.footer-contact p {
  margin: 4px 0;            /* antes 6px */
  font-size: 12px;          /* antes 13px */
  line-height: 1.4;
}

.footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-address {
  color: #94a3b8;
  font-size: 11px;          /* antes 12px */
  margin-top: 6px;          /* antes 8px */
}

.footer-social {
  display: flex;
  gap: 8px;                 /* antes 10px */
  margin-top: 12px;         /* antes 16px */
}

.social-icon {
  width: 28px;              /* antes 32px */
  height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  font-weight: 600;
  font-size: 11px;          /* antes 13px */
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer-bottom {
  max-width: 1280px;
  margin: 20px auto 0;       /* antes 32px */
  padding-top: 14px;        /* antes 20px */
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;          /* antes 11px */
  color: #94a3b8;
}
/* ══════════════════════════════════════════
   GLOBO FLOTANTE DE WHATSAPP
══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.05);
}
.whatsapp-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.25s;
  text-decoration: none;
}
.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  display: block;
}
.whatsapp-globo {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #ffffff;
  color: #0D2137;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 10;
  letter-spacing: -0.2px;
}
.whatsapp-globo::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}
.whatsapp-btn:hover .whatsapp-globo {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   SECTION HEADERS — compartido entre páginas
══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal-dark);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-title em {
  color: var(--teal);
  font-style: normal;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ══════════════════════════════════════════
   ENF-ICON — sin recuadro
══════════════════════════════════════════ */
.enf-icon {
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.enf-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ══════════════════════════════════════════
   UTILIDADES
══════════════════════════════════════════ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.nota {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 0, 0, 0.85);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 9999;
  letter-spacing: 1px;
}

/* ── Botones globales ── */
.btn-teal {
  background: var(--teal);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(57, 178, 190, 0.25);
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(57, 178, 190, 0.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s;
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 5px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-urgencias {
  background: var(--emergency);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
}

.btn-urgencias:hover {
  background: var(--emergency-dark);
  transform: translateY(-2px);
}

/* ── Photo placeholder ── */
.photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(57, 178, 190, 0.05);
  border: 2px dashed rgba(57, 178, 190, 0.25);
  border-radius: 12px;
}

.photo-ph-icon { font-size: 32px; opacity: 0.4; }

.photo-ph-text {
  color: rgba(57, 178, 190, 0.6);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.8;
  padding: 0 16px;
}

.doc-texto {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.85;
  margin-top: 18px;
  font-weight: 300;
}

/* ── Page hero ── */
.page-hero {
  padding: 148px 64px 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  background: radial-gradient(ellipse at 60% 40%, rgba(57, 178, 190, 0.10) 0%, transparent 70%);
}

.page-hero-tag {
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.page-hero h1 em { color: var(--teal); font-style: normal; }

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav-brand-name { font-size: 23px; }
  .nav-brand-sub  { font-size: 11px; letter-spacing: .1em; }
}

@media (max-width: 1024px) {
  .nav            { padding: 0 32px; }
  .container      { padding: 0 32px; }
}

@media (max-width: 900px) {
  .nav           { height: 60px; padding: 0 18px; }
  .nav-hamburger { display: flex; }
  .nav-overlay   { display: block; pointer-events: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 82vw);
    height: 100vh;
    background: #0D2137;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 70px 0 24px;
    z-index: 999;
    transition: right .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
  }

  .nav-links.open { right: 0; }

  .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a:not(.nav-cta):not(.nav-urgencias) {
    display: block;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0;
  }

  .nav-links a:not(.nav-cta):not(.nav-urgencias):hover {
    background: rgba(57, 178, 190, 0.1);
    color: #fff;
  }

  .nav-links a.active { color: var(--teal); background: rgba(57, 178, 190, 0.08); }

  .nav-links .nav-cta,
  .nav-links .nav-urgencias {
    display: flex;
    margin: 8px 14px;
    border-radius: 9px;
    min-height: 46px;
    width: calc(100% - 28px);
  }
}

@media (max-width: 800px) {
  .footer {
    padding: 32px 24px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .whatsapp-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
  .whatsapp-globo {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-brand      { gap: 10px; }
  .nav-logo img   { max-height: 48px; }
  .nav-brand-name { font-size: 20px; }
  .nav-brand-sub  { font-size: 10px; }

  .container    { padding: 0 20px; }

  .page-hero    { padding: 120px 24px 56px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero p  { font-size: 15px; }

  .section-title { font-size: 32px; }

  .modal-911           { padding: 24px 20px; }
  .modal-911-ambulance { font-size: 38px; }
  .modal-911-header h2 { font-size: 22px; }
}

@media (max-width: 560px) {
  .nav-brand-sub  { display: none; }
  .nav-brand-name { font-size: 18px; }
}

.enf-svg-icon{
  width:64px;
  height:64px;
  object-fit:contain;
  display:block;
}