/* =========================================================
   DISPENSARIO MÉDICO SAN JUDAS TADEO
   Hoja de estilos principal
   Paleta: Verde bosque #2D7D46, Azul marino #1B3A6B,
           Dorado #C8952A, Crema #F7F6F0
   ========================================================= */

/* ---------- 1. RESET & VARIABLES ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark:    #1E6635;
  --green-mid:     #2D7D46;
  --green-light:   #4CAF72;
  --green-pale:    #E8F5EC;

  --navy:          #1B3A6B;
  --navy-light:    #2952A3;

  --gold:          #C8952A;
  --gold-light:    #F0C050;

  --cream:         #F7F6F0;
  --white:         #FFFFFF;
  --gray-light:    #F0F2F5;
  --gray-mid:      #B0B8C1;
  --gray-dark:     #4A5568;
  --text:          #2C3E50;
  --text-light:    #606878;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.16);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: .3s ease;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Merriweather', serif;
}

/* ---------- 2. BASE ---------- */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- 3. UTILIDADES ---------- */
.container {
  width: min(1200px, 94%);
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: .6rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 580px;
}

.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,125,70,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #142d55;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,58,107,.35);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #a67820;
  transform: translateY(-2px);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- 3b. TOPBAR INSTITUCIONAL OCD ---------- */
.topbar-ocd {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, #1a1040 0%, #2e1a6e 50%, #1a1040 100%);
  color: rgba(255,255,255,.88);
  padding: .45rem 0;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  border-bottom: 2px solid var(--gold);
}

.topbar-ocd-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.topbar-ocd-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.topbar-ocd-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

.topbar-ocd-text {
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}

.topbar-ocd-text em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 700;
}

@media (max-width: 480px) {
  .topbar-ocd-sep { display: none; }
  .topbar-ocd-text { font-size: .72rem; }
}

/* ---------- 4. NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: .7rem;
  color: var(--text-light);
  letter-spacing: .03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links a {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-mid);
  background: var(--green-pale);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 500;
}

.nav-phone svg { color: var(--green-mid); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  background: none;
  border: none;
}
.hamburger:hover { background: var(--green-pale); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--white);
  z-index: 999;
  box-shadow: -4px 0 30px rgba(0,0,0,.15);
  transition: right var(--transition);
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  border-bottom: 1px solid var(--gray-light);
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--green-mid);
  background: var(--green-pale);
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.overlay.active { display: block; }

/* ---------- 5. HERO ---------- */
.hero {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(30,102,53,.90) 0%, rgba(27,58,107,.88) 100%),
    url('../assets/LogoSanJudasTadeo.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: calc(5rem + 38px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,42,.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,175,114,.12) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-title span {
  color: var(--gold-light);
  display: block;
}

.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-heading);
}

.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.hero-logo-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 280px;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.hero-logo-wrap img {
  width: 220px;
  margin-inline: auto;
}

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

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  width: 100%;
  max-width: 340px;
}

.hero-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: .9rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.hero-card:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-3px);
}

.hero-card-icon {
  font-size: 1.6rem;
  margin-bottom: .3rem;
}

.hero-card-label {
  font-size: .75rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

/* ---------- 6. QUICK INFO BAR ---------- */
.info-bar {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
}

.info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
}

.info-item-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.info-item-text strong { display: block; font-size: .8rem; color: var(--gold-light); }
.info-item-text span  { font-size: .78rem; opacity: .8; }

/* ---------- 7. SERVICIOS SECTION (HOME) ---------- */
.services-section {
  padding: 5rem 0;
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 3px solid transparent;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--green-mid);
}

.service-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: .4rem;
}

.service-card p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---------- 8. ESPECIALIDADES SECTION ---------- */
.especialidades-section {
  padding: 5rem 0;
  background: var(--white);
}

.esp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.esp-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--green-light);
  transition: all var(--transition);
}

.esp-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.esp-stat-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto .75rem;
}

.esp-stat-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--navy);
  font-family: var(--font-heading);
  margin-bottom: .25rem;
}

.esp-stat-card span {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
}

.esp-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem 2rem;
  margin-bottom: 2rem;
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 0;
}

.esp-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text);
}

.esp-feature-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-mid);
  flex-shrink: 0;
}

/* ---------- 9. PROMOTIONS SECTION (HOME) ---------- */
.promo-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.promo-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -200px; right: -100px;
}

.promo-section .section-tag {
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
}

.promo-section .section-title {
  color: var(--white);
}

.promo-section .section-subtitle {
  color: rgba(255,255,255,.75);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.promo-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.promo-card:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-4px);
}

.promo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.promo-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.promo-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 50px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.badge-new   { background: var(--gold);      color: var(--white); }
.badge-hot   { background: #E53E3E;           color: var(--white); }
.badge-promo { background: var(--green-mid);  color: var(--white); }
.badge-free  { background: var(--navy-light); color: var(--white); }

.promo-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .4rem;
}

.promo-card p {
  font-size: .83rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

/* ---------- 10. CONTACT / MAP SECTION ---------- */
.contact-section {
  padding: 5rem 0;
  background: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px; height: 48px;
  background: var(--green-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: .85rem;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: .2rem;
}

.contact-item-text p, .contact-item-text a {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.contact-item-text a:hover { color: var(--green-mid); }

.map-placeholder {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 350px;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  border-radius: var(--radius-lg);
}

.map-overlay-label {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 50px;
  padding: .5rem 1.2rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ---------- 11. FOOTER ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}

/* Franja OCD dentro del footer */
.footer-ocd-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(0,0,0,.25);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(200,149,42,.25);
}

.footer-ocd-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-ocd-text strong {
  display: block;
  font-size: .78rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: .15rem;
}

.footer-ocd-text span {
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}

@media (max-width: 480px) {
  .footer-ocd-strip { flex-direction: column; text-align: center; gap: .75rem; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand-logo {
  width: 80px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .4rem;
}

.footer-brand-desc {
  font-size: .82rem;
  line-height: 1.6;
  opacity: .75;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: .6rem;
}

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--white);
}
.social-link:hover {
  background: var(--green-mid);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: .9rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(255,255,255,.1);
}

.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a {
  font-size: .83rem;
  opacity: .75;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a::before {
  content: '›';
  color: var(--gold-light);
  font-weight: 700;
}
.footer-links a:hover { opacity: 1; color: var(--gold-light); padding-left: .3rem; }

.footer-schedule { display: flex; flex-direction: column; gap: .55rem; }
.schedule-item {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  opacity: .8;
  gap: .5rem;
}
.schedule-item strong { color: var(--gold-light); font-size: .78rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  opacity: .6;
}

/* ---------- 12. PAGE BANNER ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--navy) 100%);
  padding: calc(7rem + 38px) 0 3.5rem;
  color: var(--white);
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .6rem;
}

.page-banner p {
  font-size: 1.05rem;
  opacity: .8;
  max-width: 560px;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .83rem;
  opacity: .65;
  margin-bottom: .75rem;
}
.breadcrumb a:hover { opacity: 1; color: var(--gold-light); }
.breadcrumb span { opacity: .5; }

/* ---------- 13. SERVICIOS PAGE ---------- */
.servicios-page { padding: 5rem 0; background: var(--gray-light); }

.especialidades-table-section {
  padding: 4rem 0;
  background: var(--white);
}

.spec-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--white);
}

.spec-table thead {
  background: var(--navy);
  color: var(--white);
}

.spec-table thead th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.spec-table tbody tr:nth-child(even) { background: var(--gray-light); }
.spec-table tbody tr:hover { background: var(--green-pale); }

.spec-table td {
  padding: .85rem 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  color: var(--text);
  vertical-align: top;
}

.spec-table td:first-child {
  font-weight: 700;
  color: var(--navy);
}

.spec-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 50px;
  margin: .15rem;
}

.servicios-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 5rem 0;
}

.servicios-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.servicios-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.servicios-card-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.servicios-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.servicios-card-header h3 {
  font-size: 1rem;
  color: var(--navy);
}

.servicios-card-header p {
  font-size: .78rem;
  color: var(--text-light);
}

.servicios-card-body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.servicios-card-body ul { padding-top: 1rem; }
.servicios-card-body ul li {
  font-size: .83rem;
  color: var(--text);
  padding: .3rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.servicios-card-body ul li::before {
  content: '✓';
  color: var(--green-mid);
  font-weight: 700;
  font-size: .9rem;
}

/* ---------- 14. RESERVAS PAGE ---------- */
.reservas-section { padding: 5rem 0; background: var(--gray-light); }

.reservas-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.reservas-info { position: sticky; top: 6rem; }

.info-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.info-box h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.info-box-list { display: flex; flex-direction: column; gap: .65rem; }
.info-box-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text);
}
.info-box-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-mid);
  flex-shrink: 0;
  margin-top: .35rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-subtitle {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.form-label span { color: #E53E3E; margin-left: .1rem; }

.form-control {
  padding: .75rem 1rem;
  border: 1.5px solid #D1D8E0;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  font-family: var(--font-main);
  background: var(--white);
  transition: all var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,125,70,.12);
}

.form-control.error {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}

.form-error {
  font-size: .75rem;
  color: #E53E3E;
  display: none;
}

.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-control { border-color: #E53E3E; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-submit {
  margin-top: 1.5rem;
  text-align: center;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: .9rem 2rem;
  font-size: 1rem;
}

.form-disclaimer {
  font-size: .75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .75rem;
}

/* Success modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.modal h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: .5rem; }
.modal p  { font-size: .88rem; color: var(--text-light); margin-bottom: 1.5rem; }

/* ---------- 15. PROMOCIONES PAGE ---------- */
.promos-page { padding: 5rem 0; background: var(--gray-light); }

.promos-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.promo-featured-card {
  background: linear-gradient(135deg, var(--green-dark), var(--navy));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.promo-featured-card::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -80px; right: -80px;
}

.promo-featured-card h2 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}
.promo-featured-card p {
  opacity: .8;
  font-size: .9rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.promo-side-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.promo-side-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  border-left: 4px solid transparent;
}
.promo-side-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--green-mid);
}

.promo-side-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.promo-side-card h4 {
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .2rem;
}

.promo-side-card p {
  font-size: .8rem;
  color: var(--text-light);
}

.promos-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.promo-full-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.promo-full-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.promo-full-card-top {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.promo-full-icon {
  font-size: 2rem;
}

.promo-full-card-top h3 {
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: .2rem;
}

.promo-full-card-body {
  padding: 0 1.5rem 1.5rem;
}

.promo-full-card-body p {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: .75rem;
}

.promo-validity {
  font-size: .75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ---------- 16. RESULTADOS PAGE ---------- */
.resultados-section { padding: 5rem 0; background: var(--gray-light); }

.resultados-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.resultados-info { position: sticky; top: 6rem; }

.steps-list { display: flex; flex-direction: column; gap: 0; }

.step-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px; top: 40px;
  width: 2px;
  bottom: 0;
  background: var(--green-pale);
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .2rem;
}

.step-content p {
  font-size: .82rem;
  color: var(--text-light);
}

.resultado-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.resultado-security {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: .83rem;
  color: var(--green-dark);
}

.resultado-security-icon { font-size: 1.4rem; flex-shrink: 0; }

.resultado-demo-notice {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: .83rem;
  color: #7B6000;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

/* ---------- 17. WHATSAPP FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}

.whatsapp-fab svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- 18. SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 5.5rem;
  z-index: 900;
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ---------- 19. ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 20. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc, .hero-stat { text-align: left; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .esp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-features-row { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .reservas-inner { grid-template-columns: 1fr; }
  .reservas-info { position: static; }
  .resultados-inner { grid-template-columns: 1fr; }
  .resultados-info { position: static; }
  .promos-featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-card { padding: 1.75rem; }
  .resultado-form-card { padding: 1.75rem; }
  .info-bar-inner { flex-direction: column; gap: .75rem; }
  .esp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-features-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-banner { padding: calc(6rem + 38px) 0 2.5rem; }
}
