/*
Theme Name: NM TFT
Theme URI: https://nmtft.com
Author: Natalia Mattalia
Author URI: https://nmtft.com
Description: Tema personalizado para NM TFT — Terapia del Campo Mental · Natalia Mattalia
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: nmtft
*/

/* ══════════════════════════════════════
   NM TFT — Shared Stylesheet
   ══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --sage: #7A9E7E;
  --sage-light: #A8C5AC;
  --sage-pale: #EAF0E7;
  --earth: #6B5B4E;
  --earth-light: #C4A882;
  --cream: #F7F3EE;
  --off-white: #FAF8F5;
  --dark: #2C2A27;
  --dark-soft: #4A4540;
  --text: #3D3A36;
  --text-light: #7A7470;
  --white: #FFFFFF;
  --radius-pill: 50px;
  --radius-card: 16px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 12px 38px rgba(0,0,0,0.1);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 5%;
  background: rgba(247,243,238,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(122,158,126,0.15);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.nav-logo img { height: 40px; width: auto; display: block; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.cred-badge { height: 38px !important; width: 38px !important; max-width: 38px !important; object-fit: contain; border-radius: 50%; display: inline-block; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dark-soft);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--sage); }
.nav-links a.active { font-weight: 500; }
.nav-cta {
  background: var(--sage); color: var(--white);
  padding: 9px 22px; font-size: 0.77rem; letter-spacing: 0.09em;
  text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius-pill); transition: all 0.2s; font-weight: 500;
}
.nav-cta:hover { background: var(--earth); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 64px;
  background: var(--cream); z-index: 99;
  padding: 2rem 5%; flex-direction: column; gap: 1.5rem; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.05rem; color: var(--dark); text-decoration: none; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,0.06); }

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding-top: 68px; min-height: 360px;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  background: var(--dark);
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,42,39,0.9) 0%, rgba(44,42,39,0.3) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 3rem 8% 3.5rem;
  max-width: 800px;
}
.page-hero-label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--earth-light); font-weight: 500; margin-bottom: 0.8rem;
}
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300; color: var(--white); line-height: 1.12; margin-bottom: 1rem;
}
.page-hero-title em { font-style: italic; color: var(--sage-light); }
.page-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.65);
  max-width: 520px; line-height: 1.7; font-weight: 300;
}

/* ── GENERAL ── */
section { padding: 80px 5%; }
.container { max-width: 1140px; margin: 0 auto; }
.section-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin-bottom: 0.8rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 300; line-height: 1.2; color: var(--dark); margin-bottom: 1.2rem; }
.section-title em { font-style: italic; color: var(--sage); }
.section-subtitle { font-size: 0.96rem; font-weight: 300; color: var(--dark-soft); max-width: 560px; line-height: 1.75; }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--sage); color: var(--white);
  padding: 13px 28px; font-size: 0.83rem; letter-spacing: 0.07em;
  text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius-pill); font-weight: 500;
  transition: all 0.2s; border: 2px solid var(--sage); display: inline-block; cursor: pointer;
}
.btn-primary:hover { background: var(--earth); border-color: var(--earth); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.btn-secondary {
  background: transparent; color: var(--dark);
  padding: 13px 28px; font-size: 0.83rem; letter-spacing: 0.07em;
  text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius-pill); font-weight: 500;
  border: 2px solid rgba(0,0,0,0.18); transition: all 0.2s; display: inline-block;
}
.btn-secondary:hover { border-color: var(--sage); color: var(--sage); }
.btn-white {
  display: inline-block; background: var(--white); color: var(--sage);
  padding: 11px 24px; border-radius: var(--radius-pill); font-size: 0.8rem;
  letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.btn-white:hover { background: var(--cream); transform: translateY(-1px); }

/* ── CREDENCIALES ── */
#credenciales { padding: 22px 5%; background: var(--dark); }
.cred-strip { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.cred-item { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.5); font-size: 0.76rem; letter-spacing: 0.05em; }
.cred-item strong { color: rgba(255,255,255,0.82); }
.cred-div { width: 1px; height: 22px; background: rgba(255,255,255,0.12); }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius-card);
  padding: 2rem; border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--dark); margin-bottom: 0.5rem; }
.card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--dark); position: relative; overflow: hidden;
  text-align: center; padding: 70px 5%;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(122,158,126,0.18) 0%, transparent 65%);
}
.cta-banner .section-title { color: var(--white); position: relative; z-index: 1; }
.cta-banner .section-subtitle { color: rgba(255,255,255,0.55); margin: 0 auto 2.5rem; position: relative; z-index: 1; }
.cta-banner .section-label { color: var(--sage-light); position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── FOOTER ── */
footer { background: #1A1814; padding: 4rem 5% 2rem; color: rgba(255,255,255,0.42); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 1.8rem; }
.footer-logo img { height: 38px; width: auto; margin-bottom: 1rem; display: block; border-radius: 8px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.65; max-width: 300px; }
.footer-col h5 { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 1rem; font-weight: 500; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.38); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--sage-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.73rem; flex-wrap: wrap; gap: 0.8rem; }
.footer-cert { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.05); padding: 5px 13px; border-radius: var(--radius-pill); font-size: 0.7rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  nav { padding: 12px 5%; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 52px 5%; }
  .cred-div { display: none; }
  .page-hero-content { padding: 2rem 5% 2.5rem; }
}
