/* ================================================================
   ESTILOS PRINCIPALES — Psicóloga Verónica Alcántara
   ================================================================

   PALETA DE COLORES (cambia estas variables para cambiar todo el sitio):
   --color-bg        → fondo general (crema cálido)
   --color-surface   → fondo de tarjetas y secciones alternas
   --color-accent    → color principal (verde salvia)
   --color-accent2   → segundo acento (durazno/terracota suave)
   --color-text      → texto principal
   --color-muted     → texto secundario/gris

   FUENTES:
   - "Cormorant Garamond" → títulos elegantes con serifa
   - "Jost"               → cuerpo de texto limpio y moderno

================================================================ */

/* ── Variables globales ── */
:root {
  --color-bg: #faf7f2;
  --color-surface: #f0ebe3;
  --color-accent: #7a9e87;
  /* verde salvia */
  --color-accent2: #c9956a;
  /* terracota suave */
  --color-dark: #2c2c2c;
  --color-text: #3d3530;
  --color-muted: #7a6e66;
  --color-border: rgba(122, 158, 135, .22);
  --color-white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;

  --radius: 12px;
  --shadow: 0 8px 32px rgba(44, 44, 44, .08);
  --shadow-lg: 0 20px 60px rgba(44, 44, 44, .12);

  --max-w: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Tipografía base ── */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Contenedor genérico ── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-dark);
}

.section-title em {
  font-style: italic;
  color: var(--color-accent);
}

/* ================================================================
   BOTONES
================================================================ */
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: all .28s ease;
  white-space: nowrap;
}

/* Botón principal (relleno verde) */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(122, 158, 135, .35);
}

.btn--primary:hover {
  background: #5f8a70;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122, 158, 135, .45);
}

/* Botón fantasma (solo borde) */
.btn--ghost {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Botón ancho completo */
.btn--full {
  width: 100%;
  text-align: center;
}


/* ================================================================
   NAVEGACIÓN
================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 5vw, 3rem);
  background: rgba(250, 247, 242, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

/* Clase que se agrega al hacer scroll (ver JS) */
.nav--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 20px rgba(44, 44, 44, .06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--color-dark);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: .04em;
  transition: color .2s;
}

.nav__links a:hover {
  color: var(--color-accent);
}

/* Botón hamburguesa (oculto en desktop) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-dark);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

/* Estado abierto del burger */
.nav__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menú móvil desplegable */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:hover {
  color: var(--color-accent);
  background: var(--color-surface);
}


/* ================================================================
   HERO
================================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  /* 2 columnas: texto | imagen */
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gap);
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  padding-top: 80px;
  /* espacio para el nav fijo */
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero__content {
  animation: fadeUp .9s ease both;
}

.hero__eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent2);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 42ch;
  margin-bottom: 2.2rem;
  line-height: 1.75;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Columna de la imagen del hero */
.hero__image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp .9s .2s ease both;
}

.hero__photo {
  width: min(440px, 100%);
  height: 560px;
  object-fit: cover;
  object-position: top center;
  /* enfoca la cara; ajusta si es necesario */
  border-radius: 50% 50% 45% 45%;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

/* Si no hay foto se muestra un rectángulo de placeholder */
.hero__image-wrap--placeholder {
  width: min(440px, 100%);
  height: 560px;
  border-radius: 50% 50% 45% 45%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--color-muted);
}

.hero__image-wrap--placeholder::after {
  content: 'Foto de Verónica';
}

/* Anillo decorativo detrás de la foto */
.hero__deco-ring {
  position: absolute;
  width: 460px;
  height: 580px;
  border-radius: 50% 50% 45% 45%;
  border: 1px solid var(--color-border);
  top: -12px;
  left: -12px;
  z-index: 0;
}

/* Punto decorativo */
.hero__deco-dot {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent2);
  opacity: .15;
  bottom: 40px;
  right: 20px;
  z-index: 0;
}

/* Indicador de scroll */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
  animation: fadeUp 1s .6s ease both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-muted), transparent);
  animation: scrollPulse 2s infinite;
}


/* ================================================================
   STATS
================================================================ */
.stats {
  background: var(--color-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
}

.stats__item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.stats__item:last-child {
  border-right: none;
}

.stats__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-white);
  line-height: 1;
}

.stats__suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
}

.stats__label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .5rem;
}


/* ================================================================
   SOBRE MÍ
================================================================ */
.about {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__image-col {
  position: relative;
}

.about__photo {
  width: 100%;
  max-width: 420px;
  height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Tarjeta de credencial flotante */
.about__badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .85rem;
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.about__badge strong {
  display: block;
  font-weight: 500;
}

.about__badge span {
  color: var(--color-muted);
  font-size: .78rem;
}

.about__badge-icon {
  font-size: 1.4rem;
  color: var(--color-accent);
}

/* Placeholder sin foto */
.about__photo-placeholder {
  width: 100%;
  max-width: 420px;
  height: 520px;
  background: var(--color-surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--color-muted);
}

.about__photo-placeholder::after {
  content: 'Foto de perfil';
}

.about__bio {
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about__highlights {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.about__highlights li {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  font-size: .9rem;
  color: var(--color-text);
}

.about__highlights li span {
  color: var(--color-accent);
  font-size: .7rem;
}


/* ================================================================
   SERVICIOS
================================================================ */
.services {
  background: var(--color-surface);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}

.services__header {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  text-align: center;
}

.services__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: transform .28s ease, box-shadow .28s ease;
  position: relative;
  overflow: hidden;
  /* Flex en columna para que el botón quede siempre al fondo */
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent2));
  opacity: 0;
  transition: opacity .28s;
}

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

.service-card:hover::before {
  opacity: 1;
}

/* Tarjeta con acento (la segunda, resaltada) */
.service-card--accent {
  background: var(--color-accent);
  border-color: transparent;
  color: var(--color-white);
}

.service-card--accent .service-card__link {
  color: var(--color-white);
  border-color: rgb(255, 255, 255);
}

.service-card__icon {
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  display: block;
  line-height: 1;
}

.service-card--accent .service-card__icon {
  color: rgb(255, 255, 255);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: .7rem;
  color: var(--color-dark);
}

.service-card--accent h3 {
  color: var(--color-white);
}

.service-card p {
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.65;
  /* El párrafo crece para empujar el botón hacia abajo */
  flex: 1;
}

.service-card--accent p {
  color: rgb(255, 255, 255, 1);
}

.service-card__link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
  /* Siempre al fondo de la tarjeta */
  align-self: flex-start;
}

.service-card__link:hover {
  color: var(--color-accent2);
  border-color: var(--color-accent2);
}


/* ================================================================
   PROCESO
================================================================ */
.process {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}

.process__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.process__step {
  flex: 1 1 200px;
  max-width: 240px;
  text-align: center;
  padding: 0 1rem;
}

.process__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-accent);
  opacity: .35;
  line-height: 1;
  margin-bottom: .8rem;
}

.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .6rem;
  color: var(--color-dark);
}

.process__step p {
  font-size: .88rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.process__connector {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  align-self: 3.5rem;
  /* centrado respecto al número */
  margin-top: 2.2rem;
  flex-shrink: 0;
}


/* ================================================================
   CITA / FRASE INSPIRACIONAL
================================================================ */
.quote-section {
  background: var(--color-accent);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-white);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.45;
}

.pull-quote cite {
  display: block;
  font-size: .85rem;
  font-style: normal;
  font-family: var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, .65);
}


/* ================================================================
   CONTACTO
================================================================ */
.contact {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  overflow: visible;
}

.contact__desc {
  color: var(--color-muted);
  margin: 1.2rem 0 2rem;
  line-height: 1.75;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: border-color .22s, box-shadow .22s;
  background: var(--color-white);
}

.contact__item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(122, 158, 135, .12);
}

.contact__item--no-link {
  cursor: default;
}

.contact__item--no-link:hover {
  box-shadow: none;
  border-color: var(--color-border);
}

.contact__item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact__item strong {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact__item span {
  font-size: .95rem;
  color: var(--color-dark);
}

.contact__social {
  margin-top: 1.5rem;
}

/* Formulario */
.contact__form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  height: auto;
  overflow: visible;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-dark);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(122, 158, 135, .15);
}

/* Mensaje de éxito (oculto por defecto, lo muestra el JS) */
.form-success {
  display: none;
  text-align: center;
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--color-accent);
  font-weight: 500;
}


/* ================================================================
   PIE DE PÁGINA
================================================================ */
.footer {
  background: var(--color-dark);
  padding: 3rem clamp(1.5rem, 6vw, 5rem) 2rem;
  color: rgba(255, 255, 255, .55);
  font-size: .875rem;
}

.footer__top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer__logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: .4rem;
}

.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__nav a {
  transition: color .2s;
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.footer__legal {
  font-size: .78rem;
}


/* ================================================================
   BOTÓN FLOTANTE DE WHATSAPP
================================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: transform .25s, box-shadow .25s;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
}


/* ================================================================
   ANIMACIONES
================================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: .4;
    transform: scaleY(.8);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Clase usada por el JS para revelar secciones al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ================================================================
   RESPONSIVE — TABLETA Y MÓVIL
================================================================ */
@media (max-width: 900px) {

  /* Ocultar links del nav, mostrar hamburguesa */
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  /* Hero en 1 columna */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 96px;
    gap: 2rem;
  }

  .hero__content {
    order: 1;
  }

  .hero__image-wrap {
    order: 2;
    justify-content: center;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__scroll-hint {
    display: none;
  }

  .hero__photo {
    height: 400px;
  }

  .hero__deco-ring {
    display: none;
  }

  /* Sobre mí en 1 columna */
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about__photo {
    height: 360px;
  }

  .about__badge {
    position: static;
    margin-top: 1rem;
    align-self: center;
  }

  .about__highlights li {
    justify-content: center;
  }

  /* Contacto en 1 columna */
  .contact {
    grid-template-columns: 1fr;
  }

  /* Proceso: centrar conectores */
  .process__connector {
    display: none;
  }

  .process__steps {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .process__step {
    max-width: 100%;
    text-align: center;
  }
}

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

  .stats__item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .stats__item:nth-child(even) {
    border-right: none;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__nav {
    flex-direction: column;
    gap: .8rem;
  }
}

/* ================================================================
   ÍCONO SVG EN ITEMS DE CONTACTO (WhatsApp, Facebook)
================================================================ */
.contact__item-icon--svg {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ================================================================
   EBOOK / PUBLICACIÓN
================================================================ */
.ebook {
  background: var(--color-surface);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}

.ebook__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.ebook__image-col {
  display: flex;
  justify-content: center;
}

.ebook__cover-wrap {
  position: relative;
  display: inline-block;
}

.ebook__cover {
  width: min(260px, 100%);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(44, 44, 44, .18), 0 4px 16px rgba(44, 44, 44, .10);
  position: relative;
  z-index: 1;
  transition: transform .35s ease, box-shadow .35s ease;
}

.ebook__cover:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 32px 80px rgba(44, 44, 44, .22), 0 8px 24px rgba(44, 44, 44, .12);
}

.ebook__cover-glow {
  position: absolute;
  inset: 10px -10px -10px 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
  border-radius: 8px;
  opacity: .15;
  z-index: 0;
}

.ebook__cover--placeholder {
  width: min(260px, 100%);
  height: 360px;
  background: var(--color-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--color-muted);
}

.ebook__cover--placeholder::after {
  content: 'Portada del ebook';
}

.ebook__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.4;
  margin: 1rem 0 1.2rem;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.2rem;
}

.ebook__desc {
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 50ch;
}

.ebook__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ebook__store-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  transition: transform .25s ease, box-shadow .25s ease;
}

.ebook__store-btn:hover {
  transform: translateY(-3px);
}

.ebook__store-btn--amazon {
  background: #232f3e;
  color: #ff9900;
  box-shadow: 0 4px 18px rgba(35, 47, 62, .3);
}

.ebook__store-btn--amazon:hover {
  box-shadow: 0 8px 28px rgba(35, 47, 62, .4);
}

.ebook__store-btn--hotmart {
  background: #f04e23;
  color: #fff;
  box-shadow: 0 4px 18px rgba(240, 78, 35, .3);
}

.ebook__store-btn--hotmart:hover {
  box-shadow: 0 8px 28px rgba(240, 78, 35, .4);
}

@media (max-width: 760px) {
  .ebook__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ebook__title {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--color-accent);
    padding-top: .8rem;
  }

  .ebook__desc {
    margin-inline: auto;
  }

  .ebook__buttons {
    justify-content: center;
  }
}