/* Landing Mario — estilo refinado (referencia Global Salud) */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #9a7232;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-mid: #1a1a1a;
  --glass-card: rgba(15, 15, 15, 0.82);
  --text-muted: rgba(255, 255, 255, 0.62);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing-page {
  font-family: var(--font-body);
  color: #fff;
  background: var(--black);
  overflow-x: hidden;
  margin: 0;
  -webkit-text-size-adjust: 100%;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #0a0a0a 0%, #14100a 45%, #0a0a0a 100%);
}

.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.75) 0%, rgba(10, 5, 0, 0.65) 100%);
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(8, 6, 2, 0.95);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero-content { max-width: 760px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}

.hero-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 300;
}

.hero-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.2);
  margin-bottom: 28px;
}

.btn-gold {
  display: inline-block;
  padding: 14px 38px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  background: transparent;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.38);
}

.btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.landing-section {
  padding: 88px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 8px;
}

.about-content {
  text-align: left;
}

.about-grid .about-content {
  max-width: none;
  margin: 0;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-weight: 300;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  text-align: left;
}

.about-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo-img {
  width: 100%;
  max-width: 400px;
  max-height: 520px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.25);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.about-content .stats-row {
  justify-content: flex-start;
  gap: 36px;
  margin-top: 28px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--glass-card);
  border: 1px solid rgba(201, 168, 76, 0.15);
  padding: 36px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 400;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  margin-top: 48px;
  text-align: left;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon { font-size: 1.4rem; line-height: 1; }

.contact-item h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
  font-weight: 500;
}

.contact-item p,
.contact-item a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  line-height: 1.6;
  margin: 0;
}

.contact-item a:hover { color: var(--gold-light); }

.map-wrapper {
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  min-height: 340px;
}

.map-wrapper iframe { display: block; width: 100%; height: 340px; border: 0; }

.booking-panel {
  max-width: 520px;
  margin: 40px auto 0;
  background: var(--glass-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 32px 28px;
  border-radius: var(--radius);
  text-align: left;
}

.booking-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 8px;
  text-align: center;
}

.booking-panel .booking-intro {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.input-landing {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius);
  font-size: 16px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--font-body);
}

.input-landing::placeholder { color: rgba(255, 255, 255, 0.35); }

.input-landing:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

select.input-landing {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c9a84c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.form-legal {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.form-legal a { color: var(--gold-light); }

.form-legal input { margin-top: 4px; accent-color: var(--gold); }

.msg-error {
  font-size: 0.88rem;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.35);
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 12px;
}

.msg-success {
  font-size: 0.88rem;
  color: #86efac;
  background: rgba(20, 83, 45, 0.35);
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 12px;
}

.landing-footer {
  background: rgba(5, 4, 2, 0.95);
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  text-align: center;
  padding: 48px 24px 36px;
}

.landing-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.landing-footer p { font-size: 0.85rem; color: var(--text-muted); margin: 6px 0; }

.landing-footer a { color: var(--gold-light); text-decoration: none; }

.landing-footer a:hover { text-decoration: underline; }

.modal-legal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 0;
}

.modal-legal-inner {
  background: var(--dark-mid);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px 12px 0 0;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  color: var(--text-muted);
}

.modal-legal-inner h3 {
  font-family: var(--font-display);
  color: #fff;
  margin: 0 0 16px;
}

[x-cloak] { display: none !important; }

@media (min-width: 640px) {
  .modal-legal { align-items: center; padding: 16px; }
  .modal-legal-inner { border-radius: var(--radius); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 6, 2, 0.98);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid { text-align: center; }

  .contact-item { justify-content: center; }
}
