/* ══════════════════════════════════════════════
   GLOBAL SALUD — Estilos principales
   Tema: Lujo refinado · Dorado sobre oscuro
   ══════════════════════════════════════════════ */

:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #9A7232;
  --black:       #0a0a0a;
  --dark:        #111111;
  --dark-mid:    #1a1a1a;
  --glass:       rgba(10, 10, 10, 0.72);
  --glass-card:  rgba(15, 15, 15, 0.78);
  --white:       #ffffff;
  --off-white:   #f0ece4;
  --text-muted:  rgba(255,255,255,0.62);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;

  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
}

/* ── VIDEO FONDO ── */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.80) 0%, rgba(10,5,0,0.72) 100%);
  z-index: -1;
}

/* ══════════════════════════════════════════════
   NAVEGACIÓN
   ══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 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-logo img {
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.45));
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold-light);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.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: 740px;
  animation: fadeUp 1s ease both;
}
.hero-logo {
  width: 220px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 22px rgba(201,168,76,0.5));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--white);
  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.93rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
  font-weight: 300;
}
.hero-cta-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin: 24px 0 32px;
}
.btn-gold {
  display: inline-block;
  padding: 14px 38px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 24px rgba(201,168,76,0.38);
}

/* ══════════════════════════════════════════════
   SECCIONES GENERALES
   ══════════════════════════════════════════════ */
section {
  padding: 100px 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(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   SERVICIOS
   ══════════════════════════════════════════════ */
#servicios { background: var(--glass); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.service-card {
  background: var(--glass-card);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 40px 28px 36px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  transform: translateY(28px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.3);
  border-color: rgba(201,168,76,0.4);
}
.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  background: rgba(201,168,76,0.07);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.service-icon i {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  stroke-width: 1.5;
  transition: stroke 0.4s ease;
}
.service-card:hover .service-icon {
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.55);
}
.service-card:hover .service-icon i {
  stroke: var(--gold-light);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.service-card p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
}

/* ══════════════════════════════════════════════
   NOSOTROS
   ══════════════════════════════════════════════ */
#nosotros {
  background: linear-gradient(180deg, rgba(10,8,2,0.78) 0%, rgba(20,14,4,0.72) 100%);
}
.about-content {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: left;
}
.about-content p {
  font-size: 0.9rem;
  line-height: 1.95;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin-bottom: 20px;
}
.about-content strong { color: var(--gold-light); font-weight: 500; }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}
.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ══════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════ */
#ubicacion { background: var(--glass); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  margin-top: 52px;
  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;
  opacity: 0;
  transform: translateX(-20px);
}
.contact-item.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-item p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}
.contact-item a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
}
.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);
}
.map-wrapper iframe { display: block; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
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;
}
.footer-logo {
  width: 110px;
  opacity: 0.88;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.3));
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-links {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}
.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-links span { margin: 0 8px; }

/* ══════════════════════════════════════════════
   COOKIE POPUP
   ══════════════════════════════════════════════ */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cookie-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cookie-popup {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: min(92vw, 540px);
  background: rgba(14, 11, 4, 0.97);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 6px;
  padding: 32px 32px 26px;
  z-index: 1999;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-popup.show {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cookie-icon { font-size: 1.6rem; }
.cookie-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.cookie-body p {
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: 12px;
}
.cookie-more { font-size: 0.75rem !important; }
.cookie-more a { color: var(--gold); text-decoration: none; }
.cookie-more a:hover { text-decoration: underline; }

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-weight: 300;
}
.cookie-toggle input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--gold);
  cursor: pointer;
}
.cookie-toggle input:disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-toggle em { font-size: 0.72rem; color: rgba(255,255,255,0.4); }

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cookie-actions button {
  flex: 1;
  min-width: 120px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cookie-reject {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.5);
}
.btn-cookie-reject:hover {
  border-color: rgba(255,255,255,0.45) !important;
  color: rgba(255,255,255,0.8);
}
.btn-cookie-config {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: var(--gold);
}
.btn-cookie-config:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold) !important;
}
.btn-cookie-accept {
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}
.btn-cookie-accept:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

/* ══════════════════════════════════════════════
   ANIMACIONES
   ══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  #navbar { padding: 0 20px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 6, 2, 0.98);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 14px 28px;
    font-size: 0.82rem;
  }

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

  .stats-row { gap: 28px; }

  .cookie-actions { flex-direction: column; }
  .cookie-actions button { min-width: unset; }
}

@media (max-width: 480px) {
  section { padding: 72px 18px; }
  .services-grid { grid-template-columns: 1fr; }
}
