/* ══ ESTILOS COMPARTIDOS – Dra. Laura Otero Medina ══ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --brown:       #5B2D0C;
  --brown-mid:   #7D4017;
  --brown-light: #C49A6C;
  --cream:       #FAF6F1;
  --white:       #FFFFFF;
  --dark:        #1A1A1A;
  --gray:        #6B6B6B;
  --gray-light:  #F0EBE4;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Lato', 'Helvetica Neue', Arial, sans-serif;
  --transition:  0.35s ease;
  --shadow:      0 4px 30px rgba(91,45,12,0.10);
  --shadow-lg:   0 8px 50px rgba(91,45,12,0.18);
  --radius:      12px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--dark); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.25; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--brown); margin-bottom: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary  { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--brown-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91,45,12,0.3); }
.btn-outline  { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); transform: translateY(-2px); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(91,45,12,0.08);
  padding: 0.65rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 52px; width: auto; transition: var(--transition); }
.nav.scrolled .nav-logo img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--brown);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--brown); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 1rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--brown); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-serif); font-size: 1.8rem; color: var(--brown); border-bottom: 1px solid var(--gray-light); padding-bottom: 1rem; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
footer h4 { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
footer ul a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
footer ul a:hover { color: var(--brown-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-legal a:hover { color: var(--brown-light); }

/* ── WA FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── FADE UP ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── INNER PAGE HERO ── */
.page-hero {
  background: var(--cream);
  padding: 9rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,108,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: var(--brown-light); }
.page-hero .breadcrumb span { color: var(--gray); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--brown); margin-bottom: 1rem; }
.page-hero p { font-size: 1.05rem; color: var(--gray); max-width: 580px; margin-inline: auto; }

/* ── CONTENT PROSE ── */
.prose { padding: 5rem 0; }
.prose-grid { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; }
.prose-body h2 { font-size: 1.6rem; color: var(--brown); margin: 2rem 0 0.75rem; }
.prose-body h3 { font-size: 1.15rem; color: var(--brown-mid); margin: 1.5rem 0 0.5rem; }
.prose-body p  { color: var(--gray); margin-bottom: 1rem; }
.prose-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.prose-body ul li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--gray); }
.prose-body ul li::before { content: '✓'; color: var(--brown-light); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }
.prose-body strong { color: var(--dark); }

.sidebar-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}
.sidebar-card h3 { font-size: 1.1rem; color: var(--brown); margin-bottom: 1rem; }
.sidebar-card p  { font-size: 0.88rem; color: var(--gray); margin-bottom: 1.2rem; }
.sidebar-services { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.sidebar-services li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--brown-mid);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background var(--transition);
  font-weight: 700;
}
.sidebar-services li a:hover { background: var(--gray-light); }
.sidebar-services li a::before { content: '→'; color: var(--brown-light); }

/* ── FAQ ── */
.faq-section { padding: 4rem 0; background: var(--gray-light); }
.faq-section h2 { text-align: center; color: var(--brown); margin-bottom: 2.5rem; font-size: 1.8rem; }
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown-mid);
  text-align: left;
  gap: 1rem;
}
.faq-q .icon { flex-shrink: 0; font-size: 1.2rem; transition: transform var(--transition); color: var(--brown-light); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.5rem 1.2rem; color: var(--gray); font-size: 0.9rem; line-height: 1.7; }
.faq-a.open { display: block; }

/* ── LEGAL ── */
.legal-body { padding: 5rem 0; }
.legal-body .container { max-width: 820px; }
.legal-body h2 { font-size: 1.35rem; color: var(--brown); margin: 2.2rem 0 0.6rem; }
.legal-body h3 { font-size: 1.05rem; color: var(--brown-mid); margin: 1.5rem 0 0.4rem; }
.legal-body p  { color: var(--gray); margin-bottom: 0.9rem; font-size: 0.95rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ul li { color: var(--gray); font-size: 0.95rem; margin-bottom: 0.4rem; }
.legal-body a  { color: var(--brown-mid); text-decoration: underline; }
.legal-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.88rem; }
.legal-body table th { background: var(--cream); color: var(--brown); padding: 0.6rem 0.9rem; text-align: left; border: 1px solid var(--gray-light); }
.legal-body table td { padding: 0.6rem 0.9rem; border: 1px solid var(--gray-light); color: var(--gray); vertical-align: top; }
.legal-date { font-size: 0.82rem; color: var(--gray); font-style: italic; margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .prose-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
