/* ═══════════════════════════════════════════════════════
   Paula Almazán · Psicóloga — Hoja de estilos
   ═══════════════════════════════════════════════════════ */

/* ─── Custom properties ──────────────────────────────── */
:root {
  /* Paleta */
  --warm-white:  #FFFEF9;
  --cream:       #FDF8F2;
  --blush-light: #FEF4F4;
  --blush:       #F9E8E8;
  --blush-dark:  #EFD0D0;
  --lavender:    #EDE9F6;
  --lav-mid:     #C8BFE0;
  --lav-dark:    #9B8FC0;
  --rose:        #C17B7B;
  --rose-dark:   #A86060;
  --text:        #3D2C2C;
  --muted:       #7A6565;
  --light:       #B09898;

  /* Sombras */
  --shadow-sm: 0 2px 12px rgba(61, 44, 44, 0.06);
  --shadow-md: 0 8px 32px rgba(61, 44, 44, 0.10);

  /* Radios */
  --r: 1.25rem;
  --r-sm: 0.75rem;
  --r-full: 50px;

  /* Tipografía */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* altura del nav fijo */
}

body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul[role="list"] { list-style: none; }


/* ─── Utilidades compartidas ─────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Pretítulo pequeño en mayúsculas */
.pre-title {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 0.75rem;
}

/* Título de sección */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}


/* ─── Botones ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--rose-dark);
  color: #fff;
  box-shadow: 0 4px 18px rgba(168, 96, 96, 0.28);
}

.btn-primary:hover {
  background: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 96, 96, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}


/* ─── Navegación ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(253, 248, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--blush-dark);
  box-shadow: 0 2px 24px rgba(61, 44, 44, 0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  flex-shrink: 0;
}

.nav-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-top: 2px;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* Botón CTA en el nav */
.nav-link-cta {
  background: var(--rose-dark);
  color: #fff !important;
  padding: 0.5rem 1.3rem;
  border-radius: var(--r-full);
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.nav-link-cta:hover {
  background: var(--rose);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ─ */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--blush-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0 1.25rem;
    box-shadow: 0 12px 32px rgba(61, 44, 44, 0.09);
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .nav-link-cta {
    margin: 0.5rem 1.5rem 0;
    text-align: center;
    padding: 0.75rem 1.5rem;
  }
}


/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  background: linear-gradient(160deg,
    var(--blush-light) 0%,
    var(--cream)       50%,
    var(--lavender)   100%);
  position: relative;
  overflow: hidden;
}

/* Manchas de color decorativas */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero-blob-1 {
  width: 520px;
  height: 520px;
  background: var(--blush);
  top: -120px;
  right: -120px;
  opacity: 0.55;
}

.hero-blob-2 {
  width: 380px;
  height: 380px;
  background: var(--lavender);
  bottom: -80px;
  left: -80px;
  opacity: 0.55;
}

.hero-blob-3 {
  width: 260px;
  height: 260px;
  background: var(--blush-dark);
  bottom: 20%;
  right: 10%;
  opacity: 0.30;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-pretitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose-dark);
  margin-bottom: 0.6rem;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 2.5rem;
}

/* Flecha de scroll */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light);
  border: 1.5px solid var(--blush-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll:hover {
  border-color: var(--rose-dark);
  color: var(--rose-dark);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ─── Sobre mí ───────────────────────────────────────── */
.sobre-mi {
  background: #ffffff;
}

.sobre-mi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sobre-mi-grid {
    grid-template-columns: 280px 1fr;
    gap: 5rem;
  }
}

/* Columna de foto */
.sobre-mi-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Anillo decorativo alrededor de la foto */
.photo-ring {
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush-dark), var(--lav-mid));
  box-shadow: var(--shadow-md);
}

.photo-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blush) 0%, var(--lavender) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cuando tengas una foto real, añade:
     object-fit: cover;
     a la etiqueta <img> y elimina el padding interno */
}

.photo-initials {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--rose-dark);
  letter-spacing: 0.04em;
  user-select: none;
}

.sobre-mi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--lavender);
  color: var(--lav-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
}

/* Texto */
.bio {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  list-style: none;
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.credential-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}


/* CV */
.cv-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--blush-dark);
}

.cv-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 540px) {
  .cv-cols {
    grid-template-columns: 1fr;
  }
}

.cv-col { }

.cv-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 1.25rem;
}

.cv-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cv-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 0 1rem;
}

.cv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose-dark);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.cv-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.cv-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.cv-period {
  font-size: 0.75rem;
  color: var(--light);
}

.cv-place {
  display: block;
  font-size: 0.8rem;
  color: var(--rose-dark);
  margin-bottom: 0.4rem;
}

.cv-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ─── Especialidades ─────────────────────────────────── */
.especialidades {
  background: var(--cream);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 540px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--blush-dark);
  border-radius: var(--r);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 1.1rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}


/* ─── Cómo trabajo ───────────────────────────────────── */
.como-trabajo {
  background: #ffffff;
}

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

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

/* Línea conectora entre pasos (solo escritorio) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.5rem; /* alineada con el centro del número */
    right: -0.5px;
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--blush-dark), transparent);
  }
}

.step-number {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--lav-mid);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 280px;
}


/* ─── Contacto ───────────────────────────────────────── */
.contacto {
  background: #ffffff;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

.contacto-info .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}

.contacto-desc {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.contact-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  padding: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: var(--blush-light);
  border: 1px solid var(--blush-dark);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  color: var(--text);
}

.contact-item:not(.contact-item-static):hover {
  background: var(--blush);
  border-color: var(--rose-dark);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-dark);
  flex-shrink: 0;
}

.contact-value {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Nota sobre sesiones online */
.online-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--lavender);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
}

.online-note span {
  font-size: 1.2rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.online-note p {
  font-size: 0.88rem;
  color: var(--lav-dark);
  line-height: 1.7;
}

.online-note strong {
  font-weight: 600;
}

/* ─── Reseñas / Carrusel ────────────────────────────── */
.resenas {
  background: var(--cream);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.resena {
  min-width: 100%;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--blush-dark);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}

.resena-stars {
  color: #e8a44a;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.resena-texto {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  font-style: italic;
  flex: 1;
}

.resena-autor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.resena-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush-dark);
  color: var(--rose-dark);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resena-nombre {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.resena-detalle {
  display: block;
  font-size: 0.75rem;
  color: var(--light);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--blush-dark);
  background: var(--white);
  color: var(--rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--blush);
  border-color: var(--rose-dark);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--blush-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--rose-dark);
  transform: scale(1.3);
}

/* Formulario */
.form-wrap {
  padding: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.optional {
  font-weight: 400;
  color: var(--light);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--blush-dark);
  border-radius: var(--r-sm);
  background: var(--warm-white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--light);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--lav-mid);
  box-shadow: 0 0 0 3px rgba(200, 191, 224, 0.22);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Éxito */
.form-success {
  display: none; /* JS lo cambia a flex */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1rem;
  gap: 0.75rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--lavender);
  color: var(--lav-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
}

.success-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 300px;
}


/* ─── Reserva ────────────────────────────────────────── */
.reserva {
  background: var(--blush);
  text-align: center;
}

.reserva-widget {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}


/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--blush);
  border-top: 1px solid var(--blush-dark);
  padding: 2.75rem 1.5rem;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--rose-dark);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--light);
}


/* ─── Accesibilidad: foco visible ────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--lav-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ocultar visualmente pero mantener para screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ─── Responsive final tweaks ────────────────────────── */
@media (max-width: 480px) {
  .section { padding: 4.5rem 0; }
  .hero { padding-top: 6rem; }
  .form-wrap { padding: 0; }
  .sobre-mi-grid { gap: 2.5rem; }
}
