/* ==========================================================================
   ESPACIO TERAPÉUTICO - LIC. SOFÍA MÉNDEZ (PSICOLOGÍA)
   Estilo: Cálido, empático, sereno y humano.
   Paleta: Terracota cálido, lino suave, eucalipto y carbón templado.
   ========================================================================== */

:root {
  /* Paleta Psicología */
  --color-terracotta: #c26d53;
  --color-terracotta-dark: #a2523b;
  --color-terracotta-light: #fbf0eb;
  --color-terracotta-subtle: #f6ded5;

  --color-sage: #6e8b7e;
  --color-sage-light: #edf3f0;
  --color-sage-dark: #4b665a;

  --bg-page: #faf7f2;
  --bg-surface: #ffffff;
  --bg-warm-card: #f5efe8;

  --text-main: #2b2523;
  --text-muted: #615752;
  --text-light: #8e837d;
  --text-white: #ffffff;

  --border-subtle: #e8e0d5;
  --border-terracotta: rgba(194, 109, 83, 0.25);

  --shadow-sm: 0 2px 8px rgba(43, 37, 35, 0.04);
  --shadow-md: 0 6px 20px rgba(43, 37, 35, 0.06);
  --shadow-lg: 0 16px 36px rgba(43, 37, 35, 0.09);

  /* Tipografías */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.25s ease;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.68;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(246, 222, 213, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(237, 243, 240, 0.55) 0%, transparent 45%);
  background-attachment: fixed;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TIPOGRAFÍA EMPÁTICA
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.28;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta-dark);
  background: var(--color-terracotta-light);
  border: 1px solid var(--border-terracotta);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-terracotta);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(194, 109, 83, 0.28);
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 109, 83, 0.38);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
}

/* ==========================================================================
   BARRA SUPERIOR Y NAVBAR
   ========================================================================== */
.top-notice-bar {
  background: var(--color-sage-light);
  border-bottom: 1px solid rgba(110, 139, 126, 0.2);
  color: var(--color-sage-dark);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  text-align: center;
  font-weight: 500;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon-leaf {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-terracotta-light);
  border: 1px solid var(--border-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-terracotta-dark);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--color-terracotta-dark);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 3.8vw, 3.3rem);
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-content h1 span {
  color: var(--color-terracotta);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 530px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  gap: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-icon {
  color: var(--color-sage-dark);
}

.hero-card-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #ffffff;
}

.hero-card-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card-frame:hover img {
  transform: scale(1.02);
}

.hero-quote-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.hero-quote-badge p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.45;
}

.hero-quote-badge span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* ==========================================================================
   ÁREAS DE ACOMPAÑAMIENTO (SINTÉTICAS)
   ========================================================================== */
.areas-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

.area-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.area-box:hover {
  background: #ffffff;
  border-color: var(--color-terracotta);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.area-icon {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.area-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.area-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   ENFOQUE Y MODALIDADES
   ========================================================================== */
.approach-section {
  padding: 5rem 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.approach-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.approach-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.approach-list li svg {
  color: var(--color-terracotta);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   CONTACTO & CONSULTA DE TURNO
   ========================================================================== */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(246, 222, 213, 0.3) 100%);
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-card-box h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.contact-card-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2.2rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact-actions .btn {
  padding: 0.95rem 2.2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #231e1c;
  color: #b0a59e;
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #9c918a;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #b0a59e;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 1.2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* ==========================================================================
   BANNER DE ADVERTENCIA / SITIO DE MUESTRA (FIJO SIEMPRE VISIBLE)
   ========================================================================== */
:root {
  --demo-banner-h: 34px;
}

@media (max-width: 768px) {
  :root {
    --demo-banner-h: 52px;
  }
}

body {
  padding-top: var(--demo-banner-h);
}

.demo-disclaimer-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.navbar {
  top: var(--demo-banner-h) !important;
}

.demo-disclaimer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  text-align: center;
}

.demo-disclaimer-banner .demo-tag {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.demo-disclaimer-banner .demo-text {
  margin: 0;
  color: #e2e8f0;
}

.demo-disclaimer-banner .demo-text strong {
  color: #ffffff;
  font-weight: 700;
}

.demo-disclaimer-banner .demo-back-btn {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.demo-disclaimer-banner .demo-back-btn:hover {
  color: #bae6fd;
}

