/* ============================================================
   CLÍNICA LOMA DORADA — Custom Styles
   Paleta azul | Moderno y minimalista | Editorial de lujo
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:          #0A1628;
  --navy-mid:      #0F2850;
  --navy-light:    #1A3A6B;
  --blue:          #1D6FD9;
  --blue-hover:    #155DB5;
  --blue-light:    #4A90E2;
  --blue-pale:     #EBF4FF;
  --blue-subtle:   #F0F6FF;
  --white:         #FFFFFF;
  --gray-50:       #F8FAFC;
  --gray-100:      #EFF3F8;
  --text-dark:     #0A1628;
  --text-mid:      #3D5A80;
  --text-light:    #7B9DB8;
  --border:        #D5E5F5;

  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Lexend', sans-serif;

  --shadow-sm:   0 2px 8px rgba(10,22,40,.08);
  --shadow-md:   0 8px 30px rgba(10,22,40,.14);
  --shadow-lg:   0 20px 60px rgba(10,22,40,.22);
  --shadow-blue: 0 12px 40px rgba(29,111,217,.30);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }

/* ── Header ─────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

#header.scrolled {
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.nav-link {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--white); }

/* ── Hero ────────────────────────────────────────────────────── */
#inicio {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-geo-1 {
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1.5px solid rgba(29,111,217,.20);
  pointer-events: none;
}
.hero-geo-2 {
  position: absolute;
  top: 40px; right: 60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(29,111,217,.12);
  pointer-events: none;
}
.hero-geo-3 {
  position: absolute;
  bottom: -120px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,111,217,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-dot-grid {
  position: absolute;
  bottom: 80px; right: 5%;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(29,111,217,.25) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.hero-text-col {
  flex: 0 0 55%;
  max-width: 55%;
  position: relative;
  z-index: 2;
  padding-right: 3rem;
}

.hero-image-col {
  flex: 0 0 45%;
  max-width: 45%;
  position: relative;
  z-index: 2;
}

.hero-img-wrapper {
  position: relative;
  transform: rotate(2.5deg);
  transition: transform .6s cubic-bezier(.22,.68,0,1.2);
}
.hero-img-wrapper:hover { transform: rotate(0deg) scale(1.02); }

.hero-img-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
}

.hero-img-badge {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--blue);
  color: white;
  padding: .75rem 1.25rem;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-blue);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-headline .accent {
  color: var(--blue-light);
  display: block;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255,255,255,.70);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue);
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-blue);
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(29,111,217,.40);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: white;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  padding: .875rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all .25s;
  border: 1.5px solid rgba(255,255,255,.30);
  cursor: pointer;
  letter-spacing: .02em;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.60);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Section Common ─────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 600px;
}

/* ── Servicios ──────────────────────────────────────────────── */
#servicios { background: var(--white); }

.service-featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-md);
}
.service-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-featured::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(29,111,217,.15);
  pointer-events: none;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--blue);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.service-card:hover .service-icon { background: var(--blue); color: white; }

.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background .3s, color .3s;
  flex-shrink: 0;
}

.service-featured .service-icon {
  background: rgba(29,111,217,.25);
  color: white;
  width: 72px; height: 72px;
  border-radius: 20px;
}

/* ── Nosotros / Team ────────────────────────────────────────── */
#nosotros { background: var(--blue-subtle); }

.about-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: -24px;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 4px solid white;
}

.cedula-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  color: var(--text-mid);
  box-shadow: var(--shadow-sm);
}
.cedula-badge strong { color: var(--navy); font-weight: 700; }

/* ── Testimonials ───────────────────────────────────────────── */
#testimonios { background: var(--white); }

.testimonial-card {
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--blue-pale);
  line-height: 1;
  pointer-events: none;
}

.stars { color: #F59E0B; letter-spacing: 2px; }

/* ── Gallery ────────────────────────────────────────────────── */
#galeria {
  background: var(--navy);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item:nth-child(4) { grid-column: span 2; aspect-ratio: 16/7; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.68,0,1.2);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: white;
  font-size: .8rem;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Lightbox ───────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,12,25,.95);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightbox.open { display: flex; }

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(8px);
}
.lightbox-btn:hover { background: rgba(255,255,255,.22); }
#lightbox-prev { left: 1.5rem; }
#lightbox-next { right: 1.5rem; }

#lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(8px);
  font-size: 1.25rem;
  font-family: var(--font-heading);
}
#lightbox-close:hover { background: rgba(255,255,255,.22); }

#lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-family: var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── FAQ ────────────────────────────────────────────────────── */
#faq { background: var(--blue-subtle); }

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .3s;
  background: var(--white);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  transition: color .2s;
}
.faq-question:hover { color: var(--blue); }
.faq-question svg { flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--blue); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}
.faq-answer p {
  color: var(--text-mid);
  font-size: .975rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ── CTA ────────────────────────────────────────────────────── */
#cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,111,217,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Contact ────────────────────────────────────────────────── */
#contacto { background: var(--white); }

.contact-input {
  width: 100%;
  padding: .875rem 1.125rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.contact-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,111,217,.12);
}
.contact-input::placeholder { color: var(--text-light); }

textarea.contact-input { resize: vertical; min-height: 120px; }

.contact-label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: .4rem;
  font-family: var(--font-body);
  letter-spacing: .02em;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}
footer a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--white); }
.footer-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.8;
}
.footer-divider {
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Chat Widget ────────────────────────────────────────────── */
#chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#chat-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

#chat-tooltip {
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: opacity .3s, transform .3s;
}

#chat-btn {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  transition: transform .25s, background .25s;
  z-index: 1;
}
#chat-btn:hover { background: var(--blue-hover); transform: scale(1.06); }

/* Pulse ring using only transform + opacity */
#chat-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--blue);
  animation: chatPulseRing 2.2s ease-out infinite;
  z-index: -1;
}
#chat-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--blue);
  animation: chatPulseRing 2.2s ease-out 1.1s infinite;
  z-index: -1;
}

@keyframes chatPulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0;   }
}

#chat-btn.open::before,
#chat-btn.open::after { animation: none; opacity: 0; }

#chat-panel {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--border);
  max-height: 500px;
}
#chat-panel.open { display: flex; }

#chat-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#chat-header-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: .5rem;
}
#chat-header-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}
#chat-close-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  font-size: .9rem;
}
#chat-close-btn:hover { background: rgba(255,255,255,.25); }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 220px;
  max-height: 280px;
  background: var(--gray-50);
}

.chat-msg {
  max-width: 85%;
  padding: .625rem .875rem;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.55;
  font-family: var(--font-body);
  word-break: break-word;
}
.chat-msg.user {
  background: var(--blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.assistant {
  background: white;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.chat-msg.assistant a { color: var(--blue); text-decoration: underline; }

.chat-typing {
  display: flex;
  gap: .3rem;
  align-items: center;
  padding: .5rem .75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.chat-typing span {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingBounce .9s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

#chat-input-area {
  padding: .875rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
  background: white;
}
#chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .5rem .875rem;
  font-family: var(--font-body);
  font-size: .875rem;
  outline: none;
  color: var(--text-dark);
  transition: border-color .2s;
}
#chat-input:focus { border-color: var(--blue); }
#chat-send {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
#chat-send:hover { background: var(--blue-hover); transform: scale(1.05); }

/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Mobile Menu ────────────────────────────────────────────── */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: color .2s;
}
#mobile-menu a:hover { color: var(--blue-light); }

/* ── Map container ──────────────────────────────────────────── */
.map-container {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-text-col { flex: 0 0 60%; max-width: 60%; }
  .hero-image-col { flex: 0 0 40%; max-width: 40%; }
  .hero-img-wrapper img { height: 420px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(4) { grid-column: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  #inicio {
    flex-direction: column;
    padding-top: 80px;
    min-height: auto;
  }
  .hero-text-col, .hero-image-col {
    flex: none;
    max-width: 100%;
    padding-right: 0;
  }
  .hero-image-col { order: -1; margin-bottom: 2rem; }
  .hero-img-wrapper img { height: 300px; }
  .hero-img-badge { bottom: -14px; left: -12px; }
  .hero-stats { gap: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(4) { grid-column: span 2; }
  #chat-panel { width: 300px; }
  .about-img-accent { display: none; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  #chat-widget { bottom: 1rem; right: 1rem; }
}
