/* ═══════════════════════════════════════════════
   NMEI Clinic – shared.css
   Estilos comunes para todas las páginas de la web
═══════════════════════════════════════════════ */

:root {
  --charcoal: #484748;
  --gold: #CDAE93;
  --blush: #E8DCD6;
  --silver: #BDBDBD;
  --white: #FDFAF8;
  --dark: #2a2929;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 300;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  height: 80px;
  background: rgba(253,250,248,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(205,174,147,0.2);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(72,71,72,0.08); }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 60px; width: auto; display: block; }
.nav-logo span { color: var(--gold); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > span {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  user-select: none;
}
.nav-links > li > a:hover,
.nav-links > li > span:hover,
.nav-links > li:hover > span { color: var(--gold); }

.nav-has-dropdown > span::after { content: ' ▾'; font-size: 0.55rem; opacity: 0.7; }

.nav-cta {
  border: 1px solid var(--gold) !important;
  padding: 0.45rem 1rem !important;
  margin-left: 0.3rem;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }

.nav-portal {
  background: var(--charcoal) !important;
  color: var(--white) !important;
  padding: 0.45rem 1rem !important;
  margin-left: 0.2rem;
  transition: background 0.25s !important;
}
.nav-portal:hover { background: var(--gold) !important; color: var(--white) !important; }

/* ─── Dropdowns ─── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  background: rgba(253,250,248,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,173,167,0.2);
  box-shadow: 0 8px 32px rgba(72,71,72,0.08);
  padding: 0.75rem 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 300;
}
.nav-has-dropdown:hover > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.dropdown-menu > a {
  display: block;
  padding: 0.55rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu > a:hover { background: rgba(205,174,147,0.12); color: var(--gold); }

.dropdown-2col {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  min-width: 500px;
  padding: 1.25rem 0;
}
.dropdown-col { padding: 0 1.4rem; }
.dropdown-col-title {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(205,174,147,0.25);
}
.dropdown-col a {
  display: block;
  padding: 0.42rem 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, padding-left 0.15s;
}
.dropdown-col a:hover { color: var(--gold); padding-left: 0.4rem; }
.dropdown-col-divider { background: rgba(201,173,167,0.25); width: 1px; margin: 0; }

.has-submenu { position: relative; }
.has-submenu > .submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.has-submenu > .submenu-trigger::after { content: ' ›'; color: var(--gold); margin-left: 0.5rem; font-size: 0.85rem; }
.has-submenu:hover > .submenu-trigger { background: rgba(205,174,147,0.12); color: var(--gold); }
.submenu {
  position: absolute;
  left: 100%; top: -0.5rem;
  min-width: 200px;
  background: rgba(253,250,248,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,173,167,0.2);
  box-shadow: 0 8px 32px rgba(72,71,72,0.08);
  padding: 0.75rem 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 400;
}
.has-submenu:hover > .submenu {
  visibility: visible; opacity: 1; transform: translateX(0); pointer-events: all;
}
.submenu a {
  display: block;
  padding: 0.55rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.submenu a:hover { background: rgba(205,174,147,0.12); color: var(--gold); }

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

.mobile-nav {
  display: none;
  position: fixed; top: 80px; left: 0; right: 0;
  background: rgba(253,250,248,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(205,174,147,0.2);
  padding: 1.5rem 6%;
  z-index: 190;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav .m-category {
  display: block; padding: 0.75rem 0;
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  border-bottom: 1px solid rgba(205,174,147,0.15); cursor: pointer;
}
.mobile-nav .m-category { font-weight: 500; }
.mobile-nav .m-indent { padding-left: 1.2rem; font-size: 0.72rem; opacity: 0.75; }
.mobile-nav .m-section-title { font-size: 0.6rem; letter-spacing: 0.25em; color: var(--gold); padding: 0.75rem 0 0.35rem; text-transform: uppercase; }
.mobile-nav .m-cta { margin-top: 1rem; background: var(--gold); color: var(--charcoal) !important; text-align: center; border-bottom: none !important; padding: 0.9rem !important; }
.mobile-nav .m-portal { background: var(--charcoal); color: var(--white) !important; text-align: center; border-bottom: none !important; padding: 0.9rem !important; margin-top: 0.5rem; }

/* ═══════════════════════════════════════
   COMMON
═══════════════════════════════════════ */
.section-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.divider { width: 40px; height: 1px; background: var(--gold); margin: 1.5rem 0; }

.btn-primary {
  background: var(--charcoal); color: var(--white);
  padding: 0.9rem 2rem;
  font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
.btn-ghost {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--gold); }

/* ═══════════════════════════════════════
   TREATMENT PAGE STYLES
═══════════════════════════════════════ */

/* Hero tratamiento */
.tx-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.tx-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(205,174,147,0.08) 0%, transparent 60%);
}
.tx-hero::after {
  content: '';
  position: absolute;
  right: 5%; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(205,174,147,0.12);
  box-shadow: 0 0 0 60px rgba(205,174,147,0.04), 0 0 0 120px rgba(205,174,147,0.02);
}
.tx-hero-inner {
  position: relative; z-index: 2;
  padding: 4rem 8% 4.5rem;
  max-width: 700px;
}
.tx-category {
  font-size: 0.65rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; opacity: 0.85;
}
.tx-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--white); margin-bottom: 1.25rem;
}
.tx-tagline {
  font-size: 1rem; line-height: 1.7;
  color: var(--blush); opacity: 0.8;
  max-width: 520px; margin-bottom: 2.5rem;
}

/* Secciones */
.tx-section { padding: 6rem 0; }
.tx-container { max-width: 1100px; margin: 0 auto; padding: 0 8%; }

/* Intro grid */
.tx-intro-section { background: var(--white); }
.tx-intro-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}
.tx-intro-text {
  font-size: 0.95rem; line-height: 1.9;
  color: var(--charcoal); opacity: 0.82;
}

/* Data box */
.tx-data-box {
  background: var(--blush);
  padding: 2rem;
  border-radius: 2px;
  position: sticky; top: 100px;
}
.tx-data-title {
  font-size: 0.62rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem; font-weight: 500;
}
.data-item {
  display: flex; flex-direction: column;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(205,174,147,0.25);
}
.data-item:last-child { border-bottom: none; }
.data-label {
  font-size: 0.62rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--charcoal); opacity: 0.5;
  margin-bottom: 0.3rem;
}
.data-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400;
  color: var(--charcoal);
}

/* Benefits */
.tx-benefits-section { background: var(--charcoal); }
.tx-benefits-section .section-eyebrow { color: var(--gold); }
.tx-benefits-section .section-title { color: var(--white); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(205,174,147,0.15);
  padding: 2rem;
  transition: background 0.2s, border-color 0.2s;
}
.benefit-card:hover {
  background: rgba(205,174,147,0.07);
  border-color: rgba(205,174,147,0.3);
}
.benefit-icon {
  font-size: 0.75rem; color: var(--gold);
  margin-bottom: 1rem; letter-spacing: 0.1em;
}
.benefit-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400;
  color: var(--white); margin-bottom: 0.6rem;
}
.benefit-card p {
  font-size: 0.83rem; line-height: 1.75;
  color: var(--blush); opacity: 0.75;
}

/* Procedure */
.tx-procedure-section { background: var(--blush); }
.tx-procedure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.tx-for-whom {
  background: var(--white);
  padding: 2.5rem;
  border-top: 3px solid var(--gold);
}

/* CTA banner */
.tx-cta {
  background: var(--charcoal);
  padding: 6rem 8%;
}
.tx-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; color: var(--white);
  margin-bottom: 1rem;
}
.tx-cta-sub {
  font-size: 0.9rem; color: var(--blush);
  opacity: 0.75; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* Footer */
.lp-footer {
  background: var(--blush);
  padding: 3rem 8%;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 44px; width: auto; opacity: 0.8; }
.footer-logo span { color: var(--gold); font-style: italic; }
.footer-inst-logo { height: 44px; width: auto; object-fit: contain; }
.footer-institutional { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--charcoal);
  text-decoration: none; opacity: 0.6; transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: 0.65rem; color: var(--charcoal); opacity: 0.5; letter-spacing: 0.1em; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .tx-intro-grid { grid-template-columns: 1fr; }
  .tx-data-box { position: static; }
  .tx-procedure-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .dropdown-2col { min-width: unset; }
  .lp-footer { flex-direction: column; align-items: center; gap: 1.25rem; padding: 2.5rem 6%; text-align: center; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; }
  .footer-institutional { flex-wrap: wrap; gap: 1rem; }
  .footer-inst-logo { height: 28px; }
}

@media (max-width: 600px) {
  .tx-hero-inner { padding: 3rem 6% 3.5rem; }
  .tx-section { padding: 4rem 0; }
  .lp-footer { padding: 2rem 5%; }
}
