/*
Theme Name: Dr. Marulanda Medical Premium V8
Theme URI: https://example.com/
Author: GitHub Copilot
Description: Tema multipágina premium para el sitio del Dr. Juan Marulanda.
Version: 8.0.0
Text Domain: dr-marulanda-medical-v8
*/

:root {
  --emerald: #0f766e;
  --emerald-dark: #064e3b;
  --gold: #c8a347;
  --gold-soft: #e8d8a8;
  --paper: #f8faf9;
  --ink: #0f172a;
  --muted: #475569;
  --border: rgba(15, 118, 110, 0.12);
  --shadow: 0 14px 38px -28px rgba(15, 23, 42, 0.24);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 249, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5.5rem 0; }
.kicker {
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--emerald);
  font-size: .72rem;
  font-weight: 700;
}
.title { color: var(--ink); font-family: 'Playfair Display', serif; }
.emerald-line {
  width: 8rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}
.card {
  background: var(--emerald-dark);
  border: 1px solid rgba(232, 216, 168, 0.18);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  color: #ffffff;
  --ink: #ffffff;
  --muted: #dce9e6;
  --emerald: #e8d8a8;
  --border: rgba(232, 216, 168, 0.18);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 216, 168, 0.4);
  box-shadow: 0 20px 50px -28px rgba(6, 78, 59, 0.45);
}
.text-emerald {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}
.text-emerald:hover { color: var(--gold); }

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 20px 50px -25px rgba(15, 118, 110, .35);
}
.btn-primary:hover { background: var(--emerald-dark); }
.btn-secondary {
  border: 1px solid var(--gold);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--gold);
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}
.site-brand {
  text-decoration: none;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  letter-spacing: .28em;
  font-weight: 700;
}
.site-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-menu a {
  text-decoration: none;
  color: #475569;
  font-size: .95rem;
}
.site-menu a:hover { color: var(--gold); }

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(15,118,110,.10), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(200,163,71,.12), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(15,118,110,.08), transparent 28%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAF9 100%);
}
.soft-grid {
  background-image: linear-gradient(rgba(15,118,110,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(15,118,110,.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-panel {
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(15,118,110,.08), rgba(200,163,71,.08));
  border: 1px solid rgba(15,118,110, .12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(15,118,110,.12);
  color: var(--muted);
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(15,118,110,.18);
  background: #fff;
  color: var(--emerald);
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .site-menu { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--emerald-dark);
    border-radius: 0 0 1.25rem 1.25rem;
    margin: 0 -1.25rem;
    padding: .5rem 1.25rem 1.5rem;
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.02rem;
    padding: 1rem .25rem;
    border-bottom: 1px solid rgba(232,216,168,.14);
    transition: color .2s ease, padding-left .2s ease;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover, .mobile-menu a:active {
    color: var(--gold-soft);
    padding-left: .6rem;
  }
}

@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}