/* ============================================================
   FLORENCIA BARRABIN · PSICOLOGÍA
   Stylesheet principal
   ============================================================ */

:root {
  --azul-noche: #1a1a2e;
  --violeta-profundo: #4a4580;
  --lila-medio: #8e8bb5;
  --blanco-hueso: #f5f5f7;
  --lavanda-suave: #e8e7f0;
  --bordo: #6b2737;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--azul-noche);
  background: var(--blanco-hueso);
  overflow-x: hidden;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes expandLine {
  from { width: 0; }
  to { width: 80px; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.8rem 3rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blanco-hueso);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lavanda-suave);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--bordo);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--blanco-hueso); }
.nav-links a:hover::after { width: 100%; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--blanco-hueso);
  transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background: var(--azul-noche);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 69, 128, 0.25) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 39, 55, 0.15) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

/* Neural network dots */
.neural-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.dot:nth-child(1) { width: 6px; height: 6px; background: var(--lila-medio); top: 15%; left: 8%; animation: float 6s ease-in-out infinite; }
.dot:nth-child(2) { width: 4px; height: 4px; background: var(--bordo); top: 25%; left: 15%; animation: float 8s ease-in-out infinite 1s; }
.dot:nth-child(3) { width: 8px; height: 8px; background: var(--violeta-profundo); top: 40%; left: 5%; animation: float 7s ease-in-out infinite 0.5s; }
.dot:nth-child(4) { width: 5px; height: 5px; background: var(--lila-medio); top: 60%; left: 12%; animation: float 9s ease-in-out infinite 2s; }
.dot:nth-child(5) { width: 7px; height: 7px; background: var(--violeta-profundo); top: 20%; right: 10%; animation: float 7s ease-in-out infinite 1.5s; }
.dot:nth-child(6) { width: 4px; height: 4px; background: var(--bordo); top: 70%; right: 15%; animation: float 6s ease-in-out infinite 0.8s; }
.dot:nth-child(7) { width: 6px; height: 6px; background: var(--lila-medio); top: 80%; left: 20%; animation: float 8s ease-in-out infinite 2.5s; }
.dot:nth-child(8) { width: 3px; height: 3px; background: var(--violeta-profundo); top: 35%; right: 25%; animation: float 10s ease-in-out infinite 1s; }

/* Connection lines */
.neural-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 139, 181, 0.08), transparent);
  transform-origin: left center;
}
.neural-line:nth-child(9) { width: 200px; top: 20%; left: 5%; transform: rotate(25deg); }
.neural-line:nth-child(10) { width: 150px; top: 50%; left: 8%; transform: rotate(-15deg); }
.neural-line:nth-child(11) { width: 180px; top: 30%; right: 5%; transform: rotate(35deg); }
.neural-line:nth-child(12) { width: 120px; top: 65%; right: 12%; transform: rotate(-20deg); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 2rem;
}
.hero-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--lila-medio);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease 0.3s both;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  color: var(--blanco-hueso);
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeUp 1s ease 0.5s both;
}
.hero-title em {
  font-style: italic;
  color: var(--lila-medio);
}
.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--lavanda-suave);
  margin-bottom: 3rem;
  animation: fadeUp 1s ease 0.7s both;
}
.hero-line {
  width: 0;
  height: 2px;
  background: var(--bordo);
  margin: 0 auto 2.5rem;
  animation: expandLine 1s ease 1s both;
}
.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco-hueso);
  border: 1.5px solid var(--lila-medio);
  padding: 1rem 2.8rem;
  text-decoration: none;
  transition: all 0.4s ease;
  animation: fadeUp 1s ease 0.9s both;
}
.hero-cta:hover {
  background: var(--bordo);
  border-color: var(--bordo);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 39, 55, 0.3);
}

/* ============ SECTIONS COMMON ============ */
section { padding: 7rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--lila-medio);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--azul-noche);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title.light { color: var(--blanco-hueso); }
.section-line {
  width: 60px;
  height: 2px;
  background: var(--bordo);
  margin-bottom: 2.5rem;
}

/* ============ SOBRE MÍ ============ */
.about {
  background: var(--blanco-hueso);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-container {
  position: relative;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--lavanda-suave) 0%, var(--lila-medio) 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image-placeholder::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--bordo);
  border-radius: 2px;
  z-index: -1;
}
.about-image-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--violeta-profundo);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}
.about-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--azul-noche);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.credential {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--violeta-profundo);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--lila-medio);
  border-radius: 2px;
}

/* ============ SERVICIOS ============ */
.services {
  background: var(--azul-noche);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(74, 69, 128, 0.15) 0%, transparent 70%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}
.service-card {
  padding: 2.8rem;
  border: 1px solid rgba(142, 139, 181, 0.15);
  border-radius: 2px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--bordo);
  transition: height 0.4s ease;
}
.service-card:hover {
  border-color: rgba(142, 139, 181, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.service-card:hover::before { height: 100%; }
.service-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--bordo);
  opacity: 0.5;
  margin-bottom: 1rem;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blanco-hueso);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.service-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--lavanda-suave);
  opacity: 0.75;
}

/* ============ ENFOQUE ============ */
.approach {
  background: var(--lavanda-suave);
}
.approach-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.approach-main p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--azul-noche);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.approach-pillars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}
.pillar {
  padding-left: 2rem;
  border-left: 2px solid var(--bordo);
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--azul-noche);
  margin-bottom: 0.5rem;
}
.pillar-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--azul-noche);
  opacity: 0.7;
}

/* ============ CONTACTO ============ */
.contact {
  background: var(--azul-noche);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 69, 128, 0.12) 0%, transparent 70%);
}
.contact-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}
.contact-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--lila-medio);
  margin-bottom: 3rem;
  line-height: 1.5;
}
.contact-form {
  text-align: left;
  margin-bottom: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lila-medio);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--blanco-hueso);
  background: rgba(142, 139, 181, 0.08);
  border: 1px solid rgba(142, 139, 181, 0.2);
  padding: 0.9rem 1.2rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(142, 139, 181, 0.4);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--bordo);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238e8bb5' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.form-select option {
  background: var(--azul-noche);
  color: var(--blanco-hueso);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco-hueso);
  background: var(--bordo);
  border: 1.5px solid var(--bordo);
  padding: 1rem 3rem;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 1rem;
  border-radius: 2px;
}
.form-submit:hover {
  background: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 39, 55, 0.3);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Honeypot field — invisible to humans, visible to bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Form feedback messages */
.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(142, 139, 181, 0.12);
  border: 1px solid rgba(142, 139, 181, 0.3);
  color: var(--lavanda-suave);
}
.form-message.error {
  display: block;
  background: rgba(107, 39, 55, 0.18);
  border: 1px solid rgba(107, 39, 55, 0.5);
  color: var(--lavanda-suave);
}

.contact-email {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--lila-medio);
  margin-top: 2rem;
}
.contact-email a {
  color: var(--lavanda-suave);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 231, 240, 0.3);
  transition: border-color 0.3s;
}
.contact-email a:hover { border-color: var(--bordo); }

/* ============ ARTÍCULOS (home preview) ============ */
.articles {
  background: var(--blanco-hueso);
  position: relative;
}
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.articles-header-left {
  flex: 1;
  min-width: 280px;
}
.articles-intro {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--azul-noche);
  opacity: 0.7;
  max-width: 500px;
  margin-top: 1.5rem;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.article-card {
  background: var(--lavanda-suave);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.12);
  border-color: var(--lila-medio);
}
.article-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--violeta-profundo) 0%, var(--lila-medio) 100%);
  position: relative;
  overflow: hidden;
}
.article-image-2 {
  background: linear-gradient(135deg, var(--azul-noche) 0%, var(--violeta-profundo) 100%);
}
.article-image-3 {
  background: linear-gradient(135deg, var(--lila-medio) 0%, var(--bordo) 100%);
}
.article-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(245, 245, 247, 0.15) 0%, transparent 50%);
}
.article-category {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blanco-hueso);
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
}
.article-content {
  padding: 2rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--lila-medio);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--azul-noche);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.article-excerpt {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--azul-noche);
  opacity: 0.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.article-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bordo);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}
.article-card:hover .article-link {
  gap: 0.8rem;
}
.article-link::after {
  content: '→';
  font-size: 1rem;
}
.articles-cta {
  text-align: center;
  margin-top: 4rem;
}
.articles-cta a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violeta-profundo);
  text-decoration: none;
  border-bottom: 1px solid var(--violeta-profundo);
  padding-bottom: 4px;
  transition: all 0.3s;
}
.articles-cta a:hover {
  color: var(--bordo);
  border-color: var(--bordo);
}

/* ============ FAQ ============ */
.faq {
  background: var(--lavanda-suave);
}
.faq-grid {
  max-width: 850px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(74, 69, 128, 0.15);
  padding: 1.5rem 0;
}
.faq-item:first-of-type {
  border-top: 1px solid rgba(74, 69, 128, 0.15);
}
.faq-question {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--azul-noche);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: color 0.3s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--bordo); }
.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--violeta-profundo);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--bordo);
}
.faq-answer {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--azul-noche);
  opacity: 0.8;
  margin-top: 1rem;
  padding-right: 3rem;
}

/* ============ FOOTER ============ */
footer {
  background: var(--azul-noche);
  border-top: 1px solid rgba(142, 139, 181, 0.1);
  padding: 2rem;
  text-align: center;
}
footer p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--lila-medio);
  opacity: 0.5;
  letter-spacing: 1px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(142, 139, 181, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-links a:hover {
  border-color: var(--bordo);
  background: rgba(107, 39, 55, 0.15);
  transform: translateY(-2px);
}
.social-links a svg {
  width: 18px;
  height: 18px;
  fill: var(--lila-medio);
  transition: fill 0.3s;
}
.social-links a:hover svg {
  fill: var(--blanco-hueso);
}

/* ============ MOBILE OVERLAY ============ */
.mobile-overlay {
  display: none;
}

/* ============ RESPONSIVE ============ */

/* --- Tablet (≤900px) --- */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }

  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #1a1a2e;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  .mobile-overlay.active {
    display: flex;
  }
  .mobile-overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .mobile-overlay ul li a {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--lavanda-suave);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .mobile-overlay-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--lavanda-suave);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 1rem 1.2rem;
    z-index: 10000;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(232, 231, 240, 0.2);
  }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-container { order: -1; max-width: 350px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-content { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-header { flex-direction: column; align-items: flex-start; }

  section { padding: 5rem 1.5rem; }
  .service-card { padding: 2rem; }
}

/* --- Mobile (≤600px) --- */
@media (max-width: 600px) {
  nav { padding: 1rem 1.2rem; }
  nav.scrolled { padding: 0.7rem 1.2rem; }
  .nav-logo { font-size: 1.1rem; }

  .hero { min-height: 100svh; padding: 0 1.2rem; }
  .hero-content { padding: 0 0.5rem; }
  .hero-label {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    margin-bottom: 1.2rem;
  }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-subtitle { font-size: clamp(1.1rem, 4.5vw, 1.4rem); margin-bottom: 2rem; }
  .hero-cta {
    padding: 0.85rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  section { padding: 4rem 1.2rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .about-image-container { max-width: 280px; }
  .about-text p { font-size: 0.93rem; line-height: 1.75; }
  .credential {
    font-size: 0.68rem;
    padding: 0.4rem 0.9rem;
    letter-spacing: 1px;
  }

  .service-card { padding: 1.6rem; }
  .service-number { font-size: 2rem; }
  .service-title { font-size: 1.2rem; }
  .service-desc { font-size: 0.85rem; }

  .approach-content { gap: 2rem; }
  .approach-main p { font-size: 0.93rem; }
  .pillar { padding-left: 1.2rem; }
  .pillar-title { font-size: 1.1rem; }
  .pillar-desc { font-size: 0.85rem; }

  .articles-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-content { padding: 1.5rem 1.2rem; }
  .article-title { font-size: 1.2rem; }

  .faq-question { font-size: 1.05rem; }
  .faq-answer {
    font-size: 0.88rem;
    padding-right: 1rem;
  }

  .contact-content { max-width: 100%; }
  .contact-quote { font-size: clamp(1rem, 4vw, 1.3rem); margin-bottom: 2rem; }
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }
  .form-submit {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  footer { padding: 2rem 1.2rem; }
  .social-links { gap: 1.2rem; }
  .social-links a { width: 46px; height: 46px; }
  .social-links a svg { width: 20px; height: 20px; }
  footer p { font-size: 0.7rem; }
}

/* ============================================================
   ESTILOS ESPECÍFICOS DE PÁGINAS DE ARTÍCULOS
   (listado e individual)
   ============================================================ */

/* Variante de hero compacto para páginas internas */
.page-hero {
  background: var(--azul-noche);
  padding: 10rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 69, 128, 0.2) 0%, transparent 70%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}
.page-hero .section-label {
  color: var(--lila-medio);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--blanco-hueso);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--lila-medio);
}
.page-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lavanda-suave);
  opacity: 0.85;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Listado de artículos (página /articulos/) */
.articles-list {
  background: var(--blanco-hueso);
  padding: 5rem 2rem 7rem;
}
.articles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  justify-content: center;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--violeta-profundo);
  background: transparent;
  border: 1px solid var(--lila-medio);
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--bordo);
  color: var(--bordo);
}
.filter-btn.active {
  background: var(--violeta-profundo);
  color: var(--blanco-hueso);
  border-color: var(--violeta-profundo);
}
.articles-empty {
  text-align: center;
  padding: 4rem 1rem;
  font-family: var(--font-body);
  color: var(--azul-noche);
  opacity: 0.6;
  font-size: 0.95rem;
}

/* Página individual de artículo */
.article-page {
  background: var(--blanco-hueso);
  padding: 5rem 2rem 7rem;
}
.article-page .container {
  max-width: 760px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.article-meta .article-tag {
  color: var(--blanco-hueso);
  background: var(--violeta-profundo);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  font-weight: 500;
}
.article-meta .article-date-meta {
  color: var(--lila-medio);
}
.article-meta .article-reading-time {
  color: var(--lila-medio);
}
.article-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--azul-noche);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--violeta-profundo);
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--bordo);
}
.article-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--azul-noche);
}
.article-body p {
  margin-bottom: 1.5rem;
  opacity: 0.88;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--azul-noche);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--azul-noche);
  margin: 2rem 0 1rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.5rem;
  opacity: 0.88;
}
.article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
}
.article-body a {
  color: var(--bordo);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 39, 55, 0.3);
  transition: border-color 0.3s;
}
.article-body a:hover {
  border-bottom-color: var(--bordo);
}
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--lavanda-suave);
  border-left: 3px solid var(--violeta-profundo);
  font-style: italic;
  color: var(--azul-noche);
  opacity: 0.9;
}
.article-body strong { font-weight: 500; }

/* Footer del artículo: autor + back link */
.article-footer-block {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(74, 69, 128, 0.15);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.article-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violeta-profundo), var(--lila-medio));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco-hueso);
  font-family: var(--font-display);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.article-author-info {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--azul-noche);
}
.article-author-info strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.article-author-info span {
  opacity: 0.65;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--violeta-profundo);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}
.article-back:hover {
  color: var(--bordo);
  gap: 0.8rem;
}

/* CTA de cierre dentro del artículo */
.article-cta-block {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--azul-noche);
  border-radius: 2px;
  text-align: center;
}
.article-cta-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--blanco-hueso);
  margin-bottom: 0.8rem;
}
.article-cta-block p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--lavanda-suave);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.article-cta-block a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco-hueso);
  background: var(--bordo);
  padding: 0.9rem 2.4rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
}
.article-cta-block a:hover {
  background: transparent;
  border: 1.5px solid var(--bordo);
  padding: calc(0.9rem - 1.5px) calc(2.4rem - 1.5px);
}

/* ============ 404 PAGE ============ */
.error-page {
  min-height: 100vh;
  background: var(--azul-noche);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-page-content {
  max-width: 500px;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 300;
  color: var(--bordo);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--blanco-hueso);
  margin-bottom: 1rem;
}
.error-page p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--lavanda-suave);
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Responsive ajustes para páginas internas */
@media (max-width: 600px) {
  .page-hero { padding: 8rem 1.2rem 4rem; }
  .article-page { padding: 3rem 1.2rem 5rem; }
  .articles-list { padding: 3rem 1.2rem 5rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.5rem; }
  .article-body h3 { font-size: 1.2rem; }
  .article-lede { font-size: 1.1rem; padding-left: 1rem; }
  .article-cta-block { padding: 2rem 1.5rem; }
}
