/* ============================================================
   Dra. Ana López Marquet — Estilos
   Mobile-first | Tokens: #C687DB, #F4F2F5, #0C0B0B, #404041
   Fonts: Raleway 300/400/600 (títulos) · Lato 300/400 (cuerpo)
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --accent:       #C687DB;
  --accent-dark:  #a05cbb;
  --accent-light: #edd9f7;
  --bg-alt:       #F4F2F5;
  --heading:      #0C0B0B;
  --body:         #404041;
  --white:        #FFFFFF;
  --gray:         #666666;
  --gray-light:   #999999;

  --font-title:  'Raleway', sans-serif;
  --font-body:   'Lato', sans-serif;
  --font-serif:  'Playfair Display', serif;

  --max-w: 1200px;
  --r:     4px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 64px; }
body { font-family: var(--font-body); font-weight: 300; color: var(--body); line-height: 1.65; background: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILIDADES ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 1.9rem;
  color: var(--heading);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.section-body {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.75;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.9rem;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1.5px solid var(--accent);
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover, .btn--primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
}
.btn--outline:hover, .btn--outline:focus {
  background: var(--accent);
  color: var(--white);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover, .btn--outline-white:focus {
  background: var(--white);
  color: var(--accent);
}

/* ===== HEADER / NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 242, 245, 0.97); /* lavanda muy claro */
  box-shadow: 0 1px 6px rgba(196,135,219,0.12);
  transition: box-shadow var(--transition);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav__logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav__aviso {
  display: none;
  letter-spacing: 0.01em;
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
}
.nav__aviso-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #555;
}
.nav__aviso span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray-light);
}
.nav__links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heading);
  transition: color var(--transition);
}
.nav__links a:hover {
  color: var(--accent);
}
.nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--heading);
  transition: all var(--transition);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--bg-alt);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--bg-alt);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--accent); }
.nav__mobile .nav__aviso-mobile {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--gray-light);
  line-height: 1.5;
  border-bottom: none;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
  background: var(--bg-alt); /* lavanda visible en franja izquierda */
}
.hero__bg {
  position: absolute;
  /* mobile: imagen a todo ancho */
  inset: 0;
  background-image: url('../img/fondo-tratamiento.jpg');
  background-size: cover;
  background-position: 55% 15%;
  background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  /* Velo rosa-lavanda claro que aclara la imagen sin saturar */
  background: rgba(248, 235, 255, 0.55);
}
.hero__social {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2;
}
.hero__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.hero__social a:hover { opacity: 1; }
.hero__social svg { width: 16px; height: 16px; fill: currentColor; }
.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2rem 3.5rem;
  max-width: 600px;
  min-width: 0;
}
/* Botón hero: rectangular y peso ligero */
.hero__content .btn {
  border-radius: 0;
  font-weight: 300;
  letter-spacing: 0.08em;
  padding: 0.7rem 2rem;
}
.hero__title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--heading);
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.hero__title em {
  display: block;
  font-style: normal;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--heading);
  letter-spacing: 0.18em;
  margin-bottom: 2rem;
  opacity: 0.75;
}

/* ===== ACERCA DE ===== */
.about {
  padding: 4.5rem 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about__photo-wrap {
  display: flex;
  justify-content: center;
}
.about__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 4px 32px rgba(198,135,219,0.22);
  border: 4px solid var(--accent-light);
}
.about__text .section-title {
  margin-bottom: 1rem;
}
.about__bio {
  margin-bottom: 1.5rem;
}
.about__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  min-width: 140px;
  text-align: center;
}
.credential__label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.3;
}
.credential__value {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--heading);
  margin-top: 0.1rem;
}

/* ===== FILOSOFÍA ===== */
.philosophy {
  background: var(--bg-alt);
  padding: 4rem 0;
  text-align: center;
}
.philosophy__icon {
  margin: 0 auto 1.25rem;
  width: 48px;
  height: 48px;
  color: var(--accent);
}
.philosophy__icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.philosophy__quote {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--heading);
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto 1.25rem;
  font-style: italic;
  letter-spacing: 0.01em;
}
.philosophy__quote::before { content: '\201C'; }
.philosophy__quote::after  { content: '\201D'; }
.philosophy__author {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== PADECIMIENTOS ===== */
.conditions {
  padding: 4.5rem 0;
  background: var(--white);
}
.conditions__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.conditions__header .section-title { margin-bottom: 0.75rem; }
.conditions__header p { max-width: 620px; margin: 0 auto; font-size: 0.9rem; }
.conditions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.condition-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--bg-alt);
  border-radius: var(--r);
  padding: 1.25rem 1.1rem;
}
.condition-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.condition-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.condition-card__body h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.condition-card__body p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== CINTILLO (banner imagen) ===== */
.cintillo {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.cintillo__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/fondo-cintillo.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.cintillo__overlay {
  position: absolute;
  inset: 0;
  background: rgba(196,135,219,0.28);
}

/* ===== SERVICIOS ===== */
.services {
  padding: 4.5rem 0;
  background: var(--white);
}
.services__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.services__header .section-title { margin-bottom: 0.75rem; }
.services__header p { max-width: 580px; margin: 0 auto; font-size: 0.9rem; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.service-card {
  border: 1px solid #e8e0ef;
  border-radius: var(--r);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: 0 4px 24px rgba(198,135,219,0.15);
  border-color: var(--accent-light);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.service-card h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--heading);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ===== TESTIMONIOS ===== */
.testimonials {
  padding: 4.5rem 0;
  background: var(--bg-alt);
}
.testimonials__header {
  text-align: center;
  margin-bottom: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-title);
  font-size: 5rem;
  color: var(--accent-light);
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
}
.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.75;
  font-style: italic;
  padding-top: 1.5rem;
  margin-bottom: 1.25rem;
}
.testimonial-card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.testimonial-card__rating {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* ===== CONTACTO ===== */
.contact {
  padding: 4.5rem 0 4rem;
  background: var(--bg-alt);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact__info .section-title { margin-bottom: 1.5rem; }
.contact__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.contact__item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 0.1rem;
}
.contact__item-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.contact__item-body { font-size: 0.875rem; line-height: 1.65; }
.contact__item-body strong { display: block; font-weight: 400; color: var(--heading); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact__item-body a { color: var(--body); transition: color var(--transition); }
.contact__item-body a:hover { color: var(--accent); }
.contact__aviso {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--gray-light);
  line-height: 1.6;
}
.contact__aviso a { color: var(--gray-light); text-decoration: underline; }
.contact__aviso a:hover { color: var(--accent); }
.contact__cta {
  margin-top: 1.75rem;
}
.contact__map iframe {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  padding: 2rem 1.25rem;
  text-align: center;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.footer__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--accent);
  transition: background var(--transition), color var(--transition);
}
.footer__links a:hover { background: var(--accent); color: var(--white); }
.footer__links svg { width: 16px; height: 16px; fill: currentColor; }
.footer__copy {
  font-size: 0.78rem;
  color: var(--gray-light);
  line-height: 1.6;
}
.footer__copy a { color: var(--gray-light); text-decoration: underline; }
.footer__copy a:hover { color: var(--accent); }

/* ===== MEDIA QUERIES ===== */

/* Tablet — 640px */
@media (min-width: 640px) {
  .conditions__grid  { grid-template-columns: repeat(2, 1fr); }
  .services__grid    { grid-template-columns: repeat(2, 1fr); }
  .about__photo { width: 260px; height: 260px; }
}

/* Tablet grande — 768px */
@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__links  { display: flex; }
  .nav__aviso  { display: block; }

  /* Nav más alto en tablet */
  .nav__inner { min-height: 80px; }
  .nav__logo img { height: 50px; }
  .nav__links a { font-size: 0.8rem; letter-spacing: 0.17em; }

  .hero { padding-top: 80px; }
  .hero__content { padding: 2rem 2rem 2rem 4.5rem; }

  .about__grid { grid-template-columns: auto 1fr; gap: 3.5rem; }
  .about__photo { width: 240px; height: 240px; }

  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__map iframe { height: 300px; }

  .cintillo { height: 280px; }

  .section-title { font-size: 2.2rem; }
}

/* Desktop — 1024px */
@media (min-width: 1024px) {
  html { scroll-padding-top: 100px; }

  /* Nav desktop: más alto, logo 2×, links peso 300 grandes */
  .nav__inner { padding: 0 2.5rem; min-height: 100px; }
  .nav__logo img { height: 64px; }
  .nav__aviso { display: block; }
  .nav__aviso-label { font-size: 0.8rem; }
  .nav__aviso span  { font-size: 0.8rem; }
  .nav__links a {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.22em;
  }
  .nav__links { gap: 3rem; }

  .container  { padding: 0 2rem; }

  /* Hero desktop: imagen inset 56 px desde la izquierda.
     La base tiene inset:0 (top/right/bottom/left = 0);
     solo sobreescribimos left para crear la franja lavanda. */
  .hero { padding-top: 100px; }
  .hero__bg      { left: 56px; }
  .hero__overlay { left: 56px; }
  /* Iconos en la franja lavanda izquierda */
  .hero__social {
    left: 0;
    width: 56px;
    align-items: center;
  }
  .hero__social a {
    color: var(--accent);
    opacity: 0.8;
    width: 30px;
    height: 30px;
  }
  .hero__social a:hover { opacity: 1; }

  .hero__content {
    max-width: 620px;
    padding: 2rem 3rem 2rem calc(56px + 1.5rem);
  }
  /* Línea vertical decorativa a la derecha del bloque de texto */
  .hero__content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(12, 11, 11, 0.18);
  }

  .about        { padding: 6rem 0; }
  .about__grid  { gap: 5rem; }
  .about__photo { width: 300px; height: 300px; }

  .philosophy   { padding: 5rem 0; }

  .conditions   { padding: 6rem 0; }
  .conditions__grid { grid-template-columns: repeat(3, 1fr); }

  .cintillo { height: 320px; }

  .services { padding: 6rem 0; }

  .testimonials { padding: 6rem 0; }

  .contact { padding: 6rem 0 5rem; }
  .contact__map iframe { height: 380px; }

  .section-title { font-size: 2.5rem; }
}

/* ===== SKIP LINK (accesibilidad) ===== */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== ANIMACIÓN DE ENTRADA ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}
