/* =========================================
   La Pregunta del Millón — Landing Page CSS
   ========================================= */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;1,400&display=swap');

@font-face {
  font-family: 'Clash Display';
  src: url('https://api.fontshare.com/v2/css?f[]=clash-display@700,600&display=swap');
}

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

:root {
  --bordeaux-500: #390517;
  --bordeaux-300: #7A5864;
  --evergreen-500: #16302B;
  --evergreen-400: #455955;
  --platinum-50: #FDFDFD;
  --platinum-300: #F4F4F4;
  --platinum-400: #F2F2F2;
  --platinum-500: #EFEFEF;
  --camel-500: #B1895D;
  --black: #000000;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
}

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

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

/* --- Typography helpers --- */
.font-clash {
  font-family: 'Clash Display', 'Georgia', serif;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 200px);
  max-width: 1240px;
  height: 90px;
  background: var(--platinum-50);
  border-radius: 120px;
  box-shadow: 0px 2px 10px 1px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  z-index: 1000;
  gap: 24px;
}

.navbar__logo {
  flex-shrink: 0;
  min-width: 64px;
  height: 45px;
  overflow: hidden;
}

.navbar__logo img {
  width: 64px;
  height: 45px;
  object-fit: contain;
  display: block;
}

.navbar__logo .custom-logo-link img {
  width: 64px;
  height: 45px;
  object-fit: contain;
}

.navbar__logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--bordeaux-500);
  line-height: 1.2;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.navbar__menu a {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--bordeaux-500);
  letter-spacing: 0.16px;
  line-height: 1.55;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.navbar__menu a:hover {
  opacity: 0.7;
}

.navbar__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.navbar__socials img,
.navbar__socials svg {
  width: 32px;
  height: 32px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  background: var(--platinum-400);
  min-height: 755px;
  padding: 140px 100px 60px;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 105px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.hero__decoration {
  position: absolute;
  pointer-events: none;
}

.hero__decoration--tl {
  top: 175px;
  left: -22px;
  width: 273px;
}

.hero__decoration--br {
  bottom: 70px;
  right: 40px;
  width: 161px;
}

.hero__decoration--mid {
  bottom: 127px;
  left: 643px;
  width: 130px;
}

.hero__image-container {
  background: var(--evergreen-400);
  border-radius: 24px;
  flex: 0 1 528px;
  min-width: 320px;
  height: 397px;
  overflow: hidden;
  position: relative;
}

.hero__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--platinum-500);
}

.hero__image-placeholder span,
.who-asks__image-placeholder span {
  font-size: 14px;
  color: var(--bordeaux-300);
  text-align: center;
  line-height: 1.5;
  padding: 20px;
}

.who-asks__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
  max-width: 528px;
}

.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 12px;
  color: var(--bordeaux-500);
  letter-spacing: 0.12px;
  line-height: 1.4;
}

.hero__title {
  font-family: 'Clash Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--black);
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.hero__body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.16px;
  color: var(--black);
}

.hero__buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.16px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  border: none;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--bordeaux-500);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--bordeaux-500);
  border: 1px solid var(--bordeaux-500);
}

.btn--outline-white {
  background: transparent;
  color: var(--platinum-50);
  border: 1px solid var(--platinum-50);
}

.btn--lg {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.2px;
}

/* =========================================
   LISTEN SECTION
   ========================================= */
.listen {
  background: var(--platinum-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 56px 100px;
}

.listen__title {
  font-family: 'Clash Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--black);
  letter-spacing: -0.16px;
  line-height: 1.2;
  text-align: center;
}

.listen__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.platform-item:hover {
  opacity: 0.7;
}

.platform-item__wordmark {
  height: 24px;
  width: auto;
}

/* =========================================
   STATISTICS SECTION
   ========================================= */
.statistics {
  background: var(--platinum-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 120px 100px;
}

.statistics__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 16px;
  color: var(--bordeaux-500);
  letter-spacing: 0.16px;
  line-height: 1.4;
}

.section-title {
  font-family: 'Clash Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--black);
  letter-spacing: -0.16px;
  line-height: 1.2;
  text-align: center;
}

.statistics__grid {
  display: flex;
  gap: 25px;
  align-items: stretch;
  width: 100%;
}

.stat-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.stat-card__number {
  font-family: 'Clash Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 44px;
  color: var(--black);
  line-height: 1.15;
}

.stat-card__label {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  color: var(--black);
}

/* =========================================
   EPISODES SECTION
   ========================================= */
.episodes {
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  padding: 120px 100px;
}

.episodes__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.episodes__header-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.episodes__subtitle {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  color: var(--black);
}

.episodes__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.episodes__nav-btn {
  background: var(--bordeaux-500);
  border: none;
  border-radius: 54px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.episodes__nav-btn:hover {
  opacity: 0.8;
}

.episodes__nav-btn img {
  width: 32px;
  height: 32px;
}

.episodes__carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.episodes__carousel {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.podcast-card {
  background: var(--white);
  border: 1px solid var(--bordeaux-500);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  width: 397px;
}

.podcast-card__image {
  width: 100%;
  height: 222px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.podcast-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-card__title {
  font-family: 'Clash Display', 'Georgia', serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--black);
  line-height: 1.25;
}

.podcast-card__guest {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 20px;
  color: var(--evergreen-500);
  line-height: 1.55;
}

.podcast-card .btn--outline {
  align-self: flex-start;
}

/* =========================================
   CATEGORIES SECTION
   ========================================= */
.categories {
  background: var(--platinum-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 100px;
}

.categories__container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.categories__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.categories__tags {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.12px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
}

.tag--selected {
  background: var(--evergreen-500);
  color: var(--platinum-50);
}

.tag--unselected {
  background: transparent;
  color: var(--evergreen-400);
  border: 1px solid var(--evergreen-400);
}

.tag--unselected:hover {
  background: var(--evergreen-500);
  color: var(--platinum-50);
  border-color: var(--evergreen-500);
}

/* =========================================
   WHO ASKS SECTION (About Juliana)
   ========================================= */
.who-asks {
  background: var(--evergreen-500);
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  padding: 120px 100px;
}

.who-asks__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  color: var(--platinum-50);
}

.who-asks__header .section-eyebrow {
  color: var(--platinum-50);
}

.who-asks__header .section-title {
  color: var(--platinum-50);
}

.who-asks__content {
  display: flex;
  gap: 23px;
  align-items: center;
  max-width: 1078px;
}

.who-asks__image {
  background: var(--evergreen-400);
  border-radius: 24px;
  width: 528px;
  height: 397px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.who-asks__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.who-asks__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 483px;
}

.who-asks__bio {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.16px;
  color: var(--platinum-50);
}

/* =========================================
   COMMUNITY / NEWSLETTER SECTION
   ========================================= */
.community {
  background: var(--platinum-500);
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
  padding: 120px 100px;
  position: relative;
  overflow: hidden;
}

.community__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.community__eyebrow {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 16px;
  color: var(--bordeaux-500);
  letter-spacing: 0.16px;
  line-height: 1.4;
  text-align: center;
}

.community__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.community__desc {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  color: var(--black);
}

.community__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.email-input {
  background: var(--platinum-50);
  border: 1px solid var(--evergreen-400);
  border-radius: 8px;
  padding: 12px 24px;
  width: 496px;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}

.email-input:focus {
  border-color: var(--evergreen-500);
}

.email-input::placeholder {
  color: #999;
}

.community__decoration {
  position: absolute;
  pointer-events: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--platinum-50);
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: 100px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer__logo img,
.footer__logo .custom-logo-link img {
  width: 64px;
  height: 45px;
  object-fit: contain;
}

.footer__logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--bordeaux-500);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer__nav a {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.16px;
  color: var(--bordeaux-500);
  transition: opacity 0.2s;
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__socials img,
.footer__socials svg {
  width: 32px;
  height: 32px;
}

.footer__copyright {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.16px;
  color: var(--bordeaux-500);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in--right {
  transform: translateX(60px);
}

.fade-in--left {
  transform: translateX(-60px);
}

.fade-in--visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

/* Sections full width */
.listen, .statistics, .episodes, .categories,
.who-asks, .community, .footer {
  width: 100%;
}

@media (max-width: 1280px) {
  .hero {
    padding: 140px 60px 60px;
  }

  .hero__inner {
    gap: 60px;
  }
}

@media (max-width: 1024px) {
  .navbar {
    width: calc(100% - 80px);
    padding: 10px 32px;
    height: 72px;
  }

  .hero {
    min-height: auto;
    padding: 120px 40px 60px;
  }

  .hero__inner {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .hero__image-container {
    width: 100%;
    height: 300px;
  }

  .hero__text {
    max-width: 100%;
  }

  .listen {
    padding: 56px 40px;
  }

  .statistics {
    padding: 80px 40px;
  }

  .statistics__grid {
    flex-direction: column;
  }

  .episodes {
    padding: 80px 40px;
  }

  .who-asks {
    padding: 80px 40px;
  }

  .who-asks__content {
    flex-direction: column;
    max-width: 100%;
  }

  .who-asks__image {
    width: 100%;
    height: 300px;
  }

  .who-asks__text {
    max-width: 100%;
  }

  .community {
    padding: 80px 40px;
  }

  .email-input {
    width: 100%;
    max-width: 496px;
  }

  .footer {
    padding: 60px 40px;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .footer__right {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  /* --- Navbar --- */
  .navbar {
    top: 16px;
    width: calc(100% - 32px);
    padding: 10px 20px;
    height: 64px;
  }

  .navbar__menu {
    display: none;
  }

  /* --- Hero --- */
  .hero {
    padding: 100px 24px 48px;
  }

  .hero__decoration {
    display: none;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* --- Statistics --- */
  .statistics {
    padding: 60px 24px;
  }

  .statistics__grid {
    flex-direction: column;
  }

  .stat-card__number {
    font-size: 36px;
  }

  /* --- Episodes --- */
  .episodes {
    padding: 60px 24px;
    gap: 32px;
  }

  /* Stack header: texto arriba, botones abajo */
  .episodes__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .episodes__subtitle {
    font-size: 16px;
  }

  /* Botones de nav más chicos en mobile */
  .episodes__nav-btn {
    padding: 8px;
  }

  .episodes__nav-btn img {
    width: 20px;
    height: 20px;
  }

  /* Cards: casi full width en mobile */
  .podcast-card {
    width: calc(100vw - 72px);
    padding: 20px;
  }

  .podcast-card__image {
    height: 160px;
  }

  .podcast-card__title {
    font-size: 18px;
  }

  .podcast-card__guest {
    font-size: 16px;
  }

  /* --- General section titles --- */
  .section-title {
    font-size: 24px;
  }

  /* --- Categories --- */
  .categories {
    padding: 40px 24px;
  }

  .categories__tags {
    gap: 6px;
  }

  /* --- Who Asks --- */
  .who-asks {
    padding: 60px 24px;
  }

  .who-asks__header .section-title {
    font-size: 22px;
  }

  .who-asks__image {
    height: 260px;
  }

  /* --- Community --- */
  .community {
    padding: 60px 24px;
  }

  .community__decoration {
    display: none; /* ocultar decoraciones en mobile para evitar overflow */
  }

  .email-input {
    width: 100%;
    font-size: 16px;
  }

  .community__form {
    width: 100%;
  }

  .community__form .btn {
    width: 100%;
    text-align: center;
  }

  /* --- Footer --- */
  .footer {
    padding: 60px 24px;
  }

  .footer__socials img,
  .footer__socials svg {
    width: 24px;
    height: 24px;
  }
}
