/* --------------------------------------------------------
   NEUROHABITAD® — Japandi Scientific Minimal
   Basado en HTML5UP "Read Only"
   -------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ——— JAPANDI CLARO (sitio global) ——— */
  --color-bg-primary: #F5F0E6;      /* Warm cream */
  --color-bg-light:   #E8E0D5;      /* Light taupe */
  --color-text-primary: #3A3A3A;    /* Soft charcoal */
  --color-text-secondary: #5A5A5A;
  --color-accent:      #C09E85;     /* Warm brown / cobre suave */
  --color-accent-hover: #DCB482;    /* Mostaza desaturado */
  --color-organic:     #B9B99D;     /* Sage green */
  --color-border:      #D0C5B8;
}

/* ——— HERO OSCURO (opcional) ——— */
.hero-dark {
  background-color: #2C2A26 !important; /* Carbón cálido */
  color: #F5E6D3 !important;
}

.hero-dark h1,
.hero-dark h2,
.hero-dark h3,
.hero-dark p,
.hero-dark .tagline {
  color: #F5E6D3 !important;
}

/* ——— TIPOGRAFÍA ——— */
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

/* Tagline (superior, pequeña) */
.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: block;
}

/* ——— BOTONES ——— */
.button,
a.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  box-shadow: 0 4px 16px rgba(192, 158, 133, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.button:hover,
a.button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(192, 158, 133, 0.35);
}

/* Botón secundario */
.button.secondary,
a.button.secondary {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.button.secondary:hover,
a.button.secondary:hover {
  background: rgba(192, 158, 133, 0.08);
}

/* ——— LAYOUT ——— */
#header {
  padding: 2rem 0;
  text-align: center;
}

#header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#header p.subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  color: var(--color-text-secondary);
}

#main {
  padding: 4rem 0;
}

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

section:last-of-type {
  border-bottom: none;
}

/* ——— ACCESIBILIDAD + RESPONSIVE ——— */
@media (max-width: 768px) {
  #header h1 {
    font-size: 2rem;
  }
  #header p.subtitle {
    font-size: 1.1rem;
  }
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* ——— LOGO (asumimos SVG en blanco/negro) ——— */
#logo img {
  max-height: 40px;
  filter: invert(0); /* para fondo claro */
}

.hero-dark #logo img {
  filter: invert(1) hue-rotate(180deg); /* para fondo oscuro: blanco */
}