/*
Theme Name:   Nuestro Hogar
Theme URI:    https://imfacuu.online
Author:       Facundo Gutiérrez — ImFacuu
Author URI:   https://imfacuu.online
Description:  Tema holístico para Nuestro Hogar — Terapias con Lucía & Ionel. Compatible con Elementor. Multilingüe ES/IT/RO/EN vía Polylang.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:      Privado
Text Domain:  nuestro-hogar
Tags:         wellness, holistic, elementor, multilingual, one-page
*/

/* ═══════════════════════════════════════════
   VARIABLES GLOBALES — DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  /* Paleta */
  --nh-cream:        #FAF7F2;
  --nh-warm:         #F3EDE3;
  --nh-white:        #FFFFFF;
  --nh-dark:         #1A1814;
  --nh-dark2:        #2A2720;
  --nh-text:         #2D2A24;
  --nh-muted:        #7A7568;
  --nh-muted2:       #A8A29A;
  --nh-border:       #E2D9CC;
  --nh-border2:      #D4C9B8;

  /* Acento — Sage Green */
  --nh-sage:         #4A7B6A;
  --nh-sage-light:   #EAF2EF;
  --nh-sage-mid:     #B8D4CC;
  --nh-sage-dark:    #2E5A4A;

  /* Acento — Gold */
  --nh-gold:         #C89A4A;
  --nh-gold-light:   #FDF6E8;
  --nh-gold-mid:     #E8C87A;

  /* Tipografía */
  --font-display:    'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body:       'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;

  /* Sombras */
  --shadow-sm:       0 2px 12px rgba(26,24,20,0.07);
  --shadow-md:       0 6px 28px rgba(26,24,20,0.10);
  --shadow-lg:       0 16px 56px rgba(26,24,20,0.13);

  /* Radios */
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-pill:     100px;

  /* Transiciones */
  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--nh-cream);
  color: var(--nh-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nh-sage);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--nh-sage-dark); }

/* ═══════════════════════════════════════════
   TIPOGRAFÍA GLOBAL
   ═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--nh-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; color: var(--nh-muted); }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
strong { font-weight: 600; color: var(--nh-text); }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.nh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.nh-section {
  padding: 96px 0;
}

.nh-section--dark {
  background: var(--nh-dark);
  color: rgba(250,247,242,0.85);
}

.nh-section--dark h1,
.nh-section--dark h2,
.nh-section--dark h3 {
  color: #FAF7F2;
}

.nh-section--dark p {
  color: rgba(250,247,242,0.65);
}

.nh-section--warm { background: var(--nh-warm); }
.nh-section--sage { background: var(--nh-sage-light); }

/* ═══════════════════════════════════════════
   NAVIGATION / HEADER
   ═══════════════════════════════════════════ */
.nh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

.nh-header.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nh-border);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

.nh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nh-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--nh-dark);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.nh-logo__n {
  color: var(--nh-sage);
  font-size: 1.5rem;
  line-height: 1;
}

.nh-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nh-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nh-muted);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition);
}

.nh-nav__link:hover { color: var(--nh-dark); }

.nh-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Switcher de idioma */
.nh-lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nh-lang-switcher a,
.pll-switcher-sidebar a,
.lang-item a {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nh-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nh-lang-switcher a.active,
.nh-lang-switcher a:hover,
.lang-item.current-lang a,
.lang-item a:hover {
  background: var(--nh-sage-light);
  color: var(--nh-sage);
}

/* Hamburger mobile */
.nh-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nh-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--nh-dark);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ═══════════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════════ */
.btn,
.nh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.nh-btn--primary {
  background: var(--nh-sage);
  color: #FFFFFF;
}
.nh-btn--primary:hover {
  background: var(--nh-sage-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(74,123,106,0.35);
}

.nh-btn--outline {
  background: transparent;
  color: var(--nh-dark);
  border: 1.5px solid var(--nh-border2);
}
.nh-btn--outline:hover {
  border-color: var(--nh-dark);
  background: var(--nh-dark);
  color: var(--nh-cream);
}

.nh-btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #FAF7F2;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.nh-btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  color: #FAF7F2;
  border-color: rgba(255,255,255,0.4);
}

.nh-btn--sm {
  font-size: 0.8rem;
  padding: 9px 20px;
}

.nh-btn--lg {
  font-size: 1rem;
  padding: 16px 36px;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.nh-hero {
  min-height: 100vh;
  background: var(--nh-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.nh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 60%, rgba(74,123,106,0.2), transparent),
    radial-gradient(ellipse 50% 70% at 75% 30%, rgba(200,154,74,0.12), transparent);
  pointer-events: none;
}

.nh-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nh-hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nh-sage);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nh-hero__kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--nh-sage);
}

.nh-hero__title {
  color: #FAF7F2;
  margin-bottom: 20px;
}

.nh-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(250,247,242,0.6);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 40px;
}

.nh-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nh-hero__meta {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.nh-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: rgba(250,247,242,0.45);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.nh-hero__meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nh-sage);
  flex-shrink: 0;
}

.nh-hero__image {
  position: relative;
}

.nh-hero__image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.nh-hero__image::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1.5px solid rgba(74,123,106,0.25);
  border-radius: calc(var(--radius-lg) + 8px);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   SECCIÓN KICKER (label de sección)
   ═══════════════════════════════════════════ */
.nh-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nh-sage);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nh-section-kicker::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--nh-sage);
  opacity: 0.5;
}

.nh-section-title {
  margin-bottom: 12px;
}

.nh-section-desc {
  font-size: 1.05rem;
  color: var(--nh-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════
   NOSOTROS / ABOUT
   ═══════════════════════════════════════════ */
.nh-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.nh-about__lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--nh-text);
  line-height: 1.5;
  margin-bottom: 20px;
}

.nh-about__lead em { color: var(--nh-sage); }

.nh-about__text {
  font-size: 1rem;
  color: var(--nh-muted);
  line-height: 1.8;
}

.nh-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
}

.nh-team-card {
  background: var(--nh-white);
  border: 1px solid var(--nh-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nh-team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.nh-team-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}

.nh-team-card__body {
  padding: 24px;
}

.nh-team-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--nh-dark);
  margin-bottom: 4px;
  display: block;
}

.nh-team-card__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-sage);
  display: block;
  margin-bottom: 14px;
}

.nh-team-card__bio {
  font-size: 0.875rem;
  color: var(--nh-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   TERAPIAS
   ═══════════════════════════════════════════ */
.nh-therapies__categories {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.nh-category-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--nh-border2);
  background: transparent;
  color: var(--nh-muted);
  cursor: pointer;
  transition: var(--transition);
}

.nh-category-btn.active,
.nh-category-btn:hover {
  background: var(--nh-sage);
  border-color: var(--nh-sage);
  color: #fff;
}

.nh-therapies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nh-therapy-card {
  background: var(--nh-white);
  border: 1px solid var(--nh-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.nh-therapy-card:hover {
  border-color: var(--nh-sage-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.nh-therapy-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-sage);
  background: var(--nh-sage-light);
  border: 1px solid var(--nh-sage-mid);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.nh-therapy-card__tag.tech {
  color: var(--nh-gold);
  background: var(--nh-gold-light);
  border-color: var(--nh-gold-mid);
}

.nh-therapy-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nh-dark);
  line-height: 1.2;
}

.nh-therapy-card__desc {
  font-size: 0.875rem;
  color: var(--nh-muted);
  line-height: 1.65;
  flex: 1;
}

/* ═══════════════════════════════════════════
   CONSULTAS / SESSIONS
   ═══════════════════════════════════════════ */
.nh-sessions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nh-session-card {
  background: var(--nh-white);
  border: 1px solid var(--nh-border);
  border-top: 3px solid var(--nh-sage);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nh-session-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.nh-session-card:nth-child(2) { border-top-color: var(--nh-gold); }
.nh-session-card:nth-child(3) { border-top-color: var(--nh-sage-dark); }

.nh-session-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--nh-dark);
}

.nh-session-card__desc {
  font-size: 0.9rem;
  color: var(--nh-muted);
  line-height: 1.7;
  flex: 1;
}

.nh-session-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nh-sage);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 8px;
}

.nh-session-card__link:hover {
  color: var(--nh-sage-dark);
  gap: 10px;
}

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */
.nh-cta {
  background: var(--nh-dark);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nh-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(74,123,106,0.2), transparent),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(200,154,74,0.15), transparent);
  pointer-events: none;
}

.nh-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: #FAF7F2;
  margin-bottom: 12px;
}

.nh-cta__subtitle {
  font-size: 1.05rem;
  color: rgba(250,247,242,0.55);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.nh-footer {
  background: var(--nh-dark2);
  color: rgba(250,247,242,0.55);
  padding: 56px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nh-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.nh-footer__brand .nh-logo {
  color: #FAF7F2;
  margin-bottom: 12px;
}

.nh-footer__tagline {
  font-size: 0.875rem;
  color: rgba(250,247,242,0.4);
  line-height: 1.7;
  max-width: 240px;
}

.nh-footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.3);
  margin-bottom: 16px;
}

.nh-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nh-footer__links a {
  font-size: 0.875rem;
  color: rgba(250,247,242,0.55);
  transition: var(--transition);
}

.nh-footer__links a:hover {
  color: #FAF7F2;
}

.nh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nh-footer__copy {
  font-size: 0.8rem;
  color: rgba(250,247,242,0.3);
  font-family: var(--font-mono);
}

/* Polylang footer language switcher */
.nh-footer .pll-switcher-sidebar ul,
.nh-footer .lang-item {
  display: inline;
}

/* ═══════════════════════════════════════════
   ELEMENTOR OVERRIDES
   ═══════════════════════════════════════════ */
.elementor-section .elementor-container {
  max-width: 1200px;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display) !important;
}

.elementor-widget-text-editor p {
  color: var(--nh-muted);
  line-height: 1.75;
}

.elementor-button {
  font-family: var(--font-body) !important;
  letter-spacing: 0.02em !important;
}

/* ═══════════════════════════════════════════
   POLYLANG SWITCHER (inline en nav)
   ═══════════════════════════════════════════ */
.polylang-menu-item { list-style: none; }
.polylang-menu-item a {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--nh-muted) !important;
  padding: 4px 8px !important;
  border-radius: var(--radius-sm) !important;
}

.polylang-menu-item.current-lang a,
.polylang-menu-item a:hover {
  background: var(--nh-sage-light) !important;
  color: var(--nh-sage) !important;
}

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

.nh-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.nh-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nh-therapies__grid { grid-template-columns: repeat(2, 1fr); }
  .nh-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nh-container { padding: 0 20px; }
  .nh-section { padding: 64px 0; }

  .nh-nav { display: none; }
  .nh-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--nh-cream);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }
  .nh-nav.open .nh-nav__link { font-size: 1.5rem; }
  .nh-menu-toggle { display: flex; }

  .nh-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .nh-hero__image { display: none; }
  .nh-about__grid { grid-template-columns: 1fr; gap: 40px; }
  .nh-team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .nh-therapies__grid { grid-template-columns: 1fr 1fr; }
  .nh-sessions__grid { grid-template-columns: 1fr; }
  .nh-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nh-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .nh-therapies__grid { grid-template-columns: 1fr; }
  .nh-hero__actions { flex-direction: column; }
  .nh-hero__actions .nh-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════ */
@media print {
  .nh-header, .nh-menu-toggle { display: none; }
  .nh-hero { min-height: auto; padding: 40px 0; }
  .nh-hero::before { display: none; }
}
