/* =========================================
   Raquel Morales — Base Styles
   Mobile-first
   ========================================= */

:root {
  /* Paleta de colores */
  --color-bg: #fdfbf7;         /* Fondo general - crema claro */
  --color-primary: #efbdc6;    /* Principal */
  --color-accent: #f295a1;     /* Acento */
  --color-accent-2: #adddda;   /* Acento extra */
  --color-luxury: #d02c63;     /* Lujo / elegancia */
  --color-text: #1a1a1a;       /* Texto / tipografía */
  --color-white: #ffffff;      /* Fondo blanco puro */
  --color-accent-2-dark: #2f8f86; /* Variante oscura de acento extra, para texto sobre fondos claros */

  /* Tipografía */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciados base */
  --container-width: 1200px;
  --spacing-unit: 1rem;
}

/* =========================================
   Reset básico
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

/* =========================================
   Utilidades / Layout base
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--spacing-unit);
}

/* =========================================
   Animación de entrada (fade in + slide up)
   ========================================= */
.reveal {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.8s ease, translate 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  width: 100%;
  background-color: var(--color-text);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-social a {
  display: flex;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

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

.footer-social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-contact {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   Botones
   ========================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.8s ease, translate 0.8s ease;
}

.btn-cta {
  background-color: var(--color-luxury);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(208, 44, 99, 0.35);
}

.btn-cta:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(208, 44, 99, 0.45);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  width: 100%;
  padding-block: 4.5rem 5.5rem;
  background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-bg) 45%, var(--color-primary) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 40rem;
}

.hero-title {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  color: var(--color-text);
}

.hero-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.hero-image {
  width: 100%;
  max-width: 31rem;
}

.hero-image img {
  width: 100%;
  /*border-radius: 1px;
  border: 1px solid var(--color-white);
  box-shadow: 0 20px 40px rgba(26, 26, 26, 0.15);*/
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .hero {
    padding-block: 7rem 8rem;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: left;
  }

  .hero-content {
    flex-basis: 55%;
    max-width: 55%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-image {
    flex-basis: 48%;
    max-width: 36rem;
    flex-shrink: 0;
  }
}

/* =========================================
   Títulos de sección (H2)
   Base tipográfica reutilizable para todas
   las secciones futuras de la página.
   ========================================= */
.section-title {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--color-text);
  text-align: center;
}

/* =========================================
   Beneficios
   ========================================= */
.benefits {
  width: 100%;
  background-color: var(--color-white);
  padding-block: 6rem;
}

.benefits-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  max-width: 40rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-luxury);
}

.benefit-item span {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  padding-top: 0.15rem;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .benefit-item {
    gap: 2rem;
  }

  .benefit-item span {
    font-size: 1.1rem;
  }
}

/* =========================================
   Historia / "¿Te suena familiar?"
   ========================================= */
.story {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-accent-2) 100%);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  padding-block: 4rem;
}

.story-title {
  grid-area: title;
  text-align: center;
}

.story-inner {
  display: grid;
  grid-template-areas:
    "image"
    "title"
    "content";
  justify-items: center;
  gap: 3rem;
}

.story-image {
  grid-area: image;
  position: relative;
  width: 100%;
  max-width: 28.6rem;
}

/* Elemento decorativo: patrón de puntos superpuesto en la esquina de la foto de Raquel.
   Mismo ratio de aspecto que la foto (4/5), pero más pequeño. */
.story-dotgrid {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 24%;
  aspect-ratio: 4 / 5;
  background-image: radial-gradient(var(--color-luxury) 2.5px, transparent 2.5px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 3;
  pointer-events: none;
}

.podcast-image img {
  width: 100%;
}

/* Collage de fotos (foto principal + escritorio detrás) */
.story-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.2;
}

.story-collage-main,
.story-collage-bg {
  position: absolute;
  width: 68%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.story-collage-main {
  top: 0;
  left: 0;
  box-shadow: 0 20px 40px rgba(26, 26, 26, 0.18);
  z-index: 2;
}

.story-collage-bg {
  top: 14%;
  left: 21%;
  box-shadow: 0 20px 40px rgba(26, 26, 26, 0.15);
  z-index: 1;
}

.story-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: center;
}

.story-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-accent-2-dark);
}

.story-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.story-text .highlight {
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent-2-dark);
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .story-inner {
    grid-template-columns: 42% 1fr;
    grid-template-areas:
      "title   title"
      "image   content";
    align-items: center;
    justify-items: stretch;
    gap: 3rem 3.5rem;
  }

  .story-image {
    max-width: 31.2rem;
  }

  .story-content {
    text-align: left;
  }

  .story-subtitle,
  .story-text {
    text-align: left;
  }
}

/* =========================================
   Testimonios
   ========================================= */
.testimonials {
  width: 100%;
  background-color: var(--color-white);
  padding-block: 4rem;
}

.testimonials-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  margin: -1.5rem;
  border-radius: 12px;
  transition: background-color 0.25s ease;
}

.testimonial-card:hover,
.testimonial-card.active {
  background-color: rgba(239, 189, 198, 0.2);
}

.testimonial-icon {
  width: 2rem;
  height: 1.5rem;
  color: var(--color-luxury);
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.testimonial-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-luxury);
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* =========================================
   Podcast
   ========================================= */
.podcast {
  width: 100%;
  background-color: var(--color-white);
  padding-block: 4rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding-inline: var(--spacing-unit);
  margin-bottom: 3rem;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(26, 26, 26, 0.2);
}

.section-divider span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
  white-space: nowrap;
}

.podcast-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.podcast-image {
  width: 100%;
  max-width: 22.5rem;
}

.podcast-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.podcast-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-luxury);
}

.podcast-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.podcast-label span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.podcast-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-text);
}

.podcast-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-luxury);
}

.podcast-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.podcast-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.podcast-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--color-luxury);
  color: var(--color-white);
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.8s ease, translate 0.8s ease;
}

.podcast-btn:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.podcast-store-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .podcast-inner {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
    text-align: left;
  }

  .podcast-image {
    flex-basis: 40%;
    max-width: 25.5rem;
    flex-shrink: 0;
  }

  .podcast-content {
    flex-basis: 60%;
    text-align: left;
  }

  .podcast-label {
    justify-content: flex-start;
  }

  .podcast-buttons {
    justify-content: flex-start;
  }
}

/* =========================================
   CTA final
   ========================================= */
.cta {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-primary) 100%);
  padding-block: 5rem;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.cta-title,
.cta-text {
  text-align: center;
}

/* =========================================
   Popup — Descarga tu guía gratis
   ========================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background-color: var(--color-bg);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(26, 26, 26, 0.28);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.popup-overlay.is-open .popup-card {
  transform: translateY(0) scale(1);
}

/* Patrón decorativo de puntos, mismo lenguaje visual que .story-dotgrid */
.popup-dotgrid {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 6.5rem;
  height: 6.5rem;
  background-image: radial-gradient(var(--color-luxury) 2.5px, transparent 2.5px);
  background-size: 18px 18px;
  opacity: 0.18;
  pointer-events: none;
}

.popup-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 26, 26, 0.06);
  color: var(--color-text);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.popup-close:hover {
  background-color: var(--color-primary);
  color: var(--color-luxury);
  transform: rotate(90deg);
}

.popup-close svg {
  width: 1rem;
  height: 1rem;
}

.popup-icon {
  width: 3rem;
  height: 3rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-luxury);
}

.popup-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.popup-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.popup-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  opacity: 0.78;
  margin-bottom: 1.75rem;
}

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

.popup-field {
  width: 100%;
  padding: 0.95rem 1.35rem;
  border-radius: 50px;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.popup-field::placeholder {
  color: rgba(26, 26, 26, 0.45);
}

.popup-field:focus {
  outline: none;
  border-color: var(--color-luxury);
  box-shadow: 0 0 0 4px rgba(208, 44, 99, 0.12);
}

.popup-submit {
  width: 100%;
  margin-top: 0.4rem;
  text-align: center;
  border: none;
}

.popup-submit[disabled] {
  opacity: 0.7;
  cursor: default;
}

.popup-legal {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(26, 26, 26, 0.5);
  margin-top: 1.25rem;
}

.popup-success {
  display: none;
}

.popup-success.is-visible {
  display: block;
}
