/* ============================================================
   FONTS
   ============================================================ */

@font-face {
  font-family: 'Avenir';
  src: url('assets/Avenir Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('assets/Avenir Book.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('assets/Avenir Regular.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('assets/Avenir Heavy.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('assets/Avenir Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'UderzoText';
  src: url('assets/UderzoTeXTARGDemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'UderzoTitle';
  src: url('assets/UderzoTiTRARG.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --green:        #0a6d3b;
  --red:          #d2232a;
  --black:        #000000;
  --white:        #ffffff;
  --text:         #000000;

  --font-body:    'Avenir', 'Helvetica Neue', Arial, sans-serif;
  --font-title:   'UderzoTitle', serif;
  --font-hero:    'UderzoText', sans-serif;

  --max-w:        1440px;
  --side-pad:     121px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ============================================================
   TOP LOGO BAR
   ============================================================ */

.top-logo-bar {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.top-logo-link img {
  height: 64px;
  width: auto;
}


/* ============================================================
   RED NAV BAR
   ============================================================ */

.main-nav {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  gap: 0;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;        /* ~20px scaled */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-comprar {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 8px;
  padding-left: 28px !important;
}


/* ============================================================
   HERO  (#hero)
   ============================================================ */

#hero {
  background: var(--white);
}

/* White intro area: title image + subtitle */
.hero-intro {
  text-align: center;
  padding: 72px var(--side-pad) 48px;
}

.hero-title-img {
  max-width: 620px;
  height: auto;
  margin: 0 auto 32px;
}

.hero-subtitle {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 860px;
  margin: 0 auto;
}

/* Scene: hero-home.png + CTA button overlaid */
.hero-scene-wrap {
  position: relative;
  line-height: 0;
}

.hero-bg-img {
  width: 100%;
  display: block;
  height: auto;
}

.btn-pill-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  height: 62px;
  padding: 0 60px;
  border-radius: 31px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-pill-green:hover {
  background: #085e32;
  transform: translateY(-2px);
}


/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--side-pad);
}

.section-inner.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-inner.left-aligned {
  text-align: left;
}

/* Section title shared style */
.section-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.875rem; /* 30px */
  line-height: 1.1;
  margin-bottom: 32px;
}
.section-title.green { color: var(--green); }
.section-title.white { color: var(--white); }

/* Body text in sections */
.col-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem; /* 18px */
  line-height: 1.667;  /* ~30px */
  margin-bottom: 20px;
}

.col-text p:last-child { margin-bottom: 0; }


/* ============================================================
   MÁS ALLÁ DE LA ALDEA  (#mas-alla)
   ============================================================ */

#mas-alla {
  background: var(--white);
}

#mas-alla .col-text p {
  color: var(--text);
}

#mas-alla .col-image img {
  max-width: 100%;
  margin: 0 auto;
}


/* ============================================================
   LUSITANIA: UN DESTINO MUY ESPERADO  (#lusitania-destino)
   ============================================================ */

#lusitania-destino {
  background: var(--green);
}

#lusitania-destino .col-text p {
  color: var(--white);
}

/* Album image in the Lusitania section pokes up slightly */
.lusitania-img {
  position: relative;
}

.lusitania-img img {
  max-width: 100%;
  margin: 0 auto;
  /* Slight upward shift to echo the Figma overlap feel */
  transform: translateY(-32px);
  margin-bottom: -32px;
}


/* ============================================================
   CITAS DE LOS AUTORES  (#testimonios)
   ============================================================ */

#testimonios {
  background: var(--white);
}

#testimonios .section-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.quote-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: var(--white);
  border-radius: 21px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 40px 40px 40px 32px;
}

.quote-avatar {
  flex-shrink: 0;
  width: 179px;
  height: 179px;
}

.quote-avatar img {
  width: 179px;
  height: 179px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.quote-body {
  flex: 1;
  align-self: center;
}

.quote-body p {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem; /* 16px */
  line-height: 1.875; /* ~30px */
  color: var(--text);
  margin-bottom: 16px;
}

.quote-body cite {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.375rem; /* 22px */
  color: var(--red);
  font-style: normal;
  line-height: 1.375;
}


/* ============================================================
   DESCUBRIR MÁS  (#descubrir-album)
   ============================================================ */

#descubrir-album {
  background: var(--white);
}

#descubrir-album .section-title {
  margin-bottom: 40px;
}

.album-nav {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
}

.btn-nav-section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  height: 97px;
  padding: 0 32px;
  border-radius: 21px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.btn-nav-section:hover {
  background: #085e32;
  transform: translateY(-2px);
}


/* ============================================================
   FOOTER  (#footer)
   ============================================================ */

#footer {
  background: var(--black);
  padding: 52px 24px 40px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.footer-icon img {
  height: 149px;
  width: auto;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.75; }

.footer-social img {
  width: 52px;
  height: 52px;
}

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

.footer-copy-asterix {
  font-size: 0.75rem;
  white-space: nowrap;
  margin-top: -12px;
}

.footer-hermeneia img {
  height: 32px;
  width: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}


/* ============================================================
   SUBPAGE SHARED — page intro header
   ============================================================ */

.page-intro {
  background: var(--white);
  text-align: center;
  padding: 72px var(--side-pad) 56px;
}

.page-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 4.375rem; /* 70px */
  color: var(--red);
  line-height: 1;
  margin-bottom: 28px;
}

.page-subtitle {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: 2rem; /* 32px */
  color: var(--text);
  line-height: 1.5;
}

/* Active nav item */
.nav-active {
  background: rgba(255, 255, 255, 0.22) !important;
}


/* ============================================================
   #tapa-descripcion  (album page — green section)
   ============================================================ */

#tapa-descripcion {
  background: var(--green);
}

#tapa-descripcion .col-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.667;
  color: var(--white);
  margin-bottom: 20px;
}

#tapa-descripcion .col-text p:last-child { margin-bottom: 0; }

#tapa-descripcion .col-text em {
  font-style: italic;
}

.tapa-img {
  max-width: 390px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}


/* ============================================================
   #storyboard  (album page — storyboard section)
   ============================================================ */

#storyboard {
  background: var(--white);
}

#storyboard .page-subtitle {
  color: var(--text);
  margin-bottom: 48px;
  text-align: center;
}

.full-img-wrap {
  max-width: 1197px;
  margin: 0 auto;
}

.full-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   #antes-despues  (album page — before/after section)
   ============================================================ */

#antes-despues {
  background: var(--white);
  padding-top: 0;
}

#antes-despues .section-inner {
  padding-top: 0;
}


/* ============================================================
   SUBPAGE — shared intro lead text
   ============================================================ */

.cultura-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.667;
  color: var(--text);
  max-width: 1196px;
  margin: 32px auto 0;
  text-align: left;
}

.subpage-section-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.875rem;
  color: var(--green);
  margin-bottom: 32px;
}


/* ============================================================
   CULTURA LUSITANA — content cards
   ============================================================ */

#cultura-cards {
  background: var(--white);
}

#cultura-cards .section-inner {
  padding-top: 0;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-card {
  background: var(--white);
  border-radius: 21px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 36px 48px;
}

.card-section-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.875rem;
  color: var(--green);
  margin-bottom: 20px;
}

.content-card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.667;
  color: var(--text);
}

.content-card p + p {
  margin-top: 16px;
}


/* ============================================================
   CULTURA — melancolía / Viriato
   ============================================================ */

#melancolia {
  background: var(--white);
  padding: 20px var(--side-pad) 16px;
  text-align: center;
}

.melancolia-question {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: 2rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.melancolia-subtitle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--green);
  line-height: 1.4;
}

#escena-viriato {
  background: var(--white);
}

/* Removes vertical padding so the image sits flush above/below */
.section-inner--img-only {
  padding-top: 0;
  padding-bottom: 0;
}

.full-img-wide {
  max-width: none;
  padding: 0 var(--side-pad);
}

#viriato-texto {
  background: var(--white);
}

.viriato-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.667;
  color: var(--text);
}

.viriato-body strong {
  font-weight: 700;
}


/* ============================================================
   PERSONAJES — lusitanos cards
   ============================================================ */

#lusitanos {
  background: var(--white);
}

#lusitanos .section-inner {
  padding-bottom: 40px;
}

/* Personaje card with two columns */
.personaje-card.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.personaje-card.two-col-reverse .col-image {
  order: -1;
}

.personajes3-col img {
  max-width: 100%;
  height: auto;
}

/* Image centered below text inside a card */
.card-img-centered {
  margin-top: 28px;
  text-align: center;
}

.card-img-centered img {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}


/* ============================================================
   PERSONAJES — villanos
   ============================================================ */

#villanos {
  background: var(--white);
}

.villanos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.villanos-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.667;
  color: var(--text);
  margin-bottom: 20px;
}

.villanos-text p:last-child { margin-bottom: 0; }

.villano-name {
  font-family: var(--font-hero);
  font-weight: 600;
  font-style: normal;
}

.villanos-images {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  align-self: start;
}

.villanos-images img {
  max-width: 100%;
  height: auto;
}


/* ============================================================
   LOS CREADORES
   ============================================================ */

#fabcaro,
#didier-conrad {
  background: var(--white);
}

#didier-conrad {
  padding-top: 0;
}

#didier-conrad .section-inner {
  padding-top: 0;
}

/* ============================================================
   CREADORES DEL ÁLBUM 41
   ============================================================ */

#creadores-album41 {
  background: var(--white);
}

.creadores-album-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--green);
  text-align: center;
  margin-bottom: 64px;
}

.creador-card-new {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  margin-bottom: 64px;
}

.creador-card-new:last-child {
  margin-bottom: 0;
}

.creador-photo-new {
  flex-shrink: 0;
  width: 300px;
}

.creador-photo-new img {
  width: 100%;
  height: auto;
  display: block;
}

.creador-text-new {
  flex: 1;
  padding-top: 8px;
}

.creador-name-label {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 16px;
}

.creador-bio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}


/* Historia de Asterix intro text */
.creadores-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.667;
  color: var(--text);
  margin-bottom: 24px;
}

.creadores-body:last-child { margin-bottom: 0; }

#historia-asterix .section-inner {
  padding-top: 24px;
  padding-bottom: 24px;
}

#vineta-creadores {
  background: var(--white);
}

.creador-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 21px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 40px 48px;
}

.creador-photo {
  flex-shrink: 0;
  width: 220px;
}

.creador-photo img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.creador-body {
  flex: 1;
  align-self: center;
}

.creador-body p {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.875;
  color: var(--text);
  margin-bottom: 16px;
}

.creador-body cite {
  font-family: var(--font-title);
  font-size: 1.375rem;
  color: var(--red);
  font-style: normal;
}


/* ============================================================
   GUÍA DEL VIAJERO
   ============================================================ */

.guia-subtitle {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1.4;
  text-align: center;
  margin-top: 8px;
}

#guia-cards {
  background: var(--white);
}

.guia-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.guia-card {
  grid-column: span 2;
  background: var(--green);
  border-radius: 12px;
  padding: 36px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Center the bottom 2 cards in the 6-col grid */
.guia-card:nth-child(4) { grid-column: 2 / 4; }
.guia-card:nth-child(5) { grid-column: 4 / 6; }

.guia-card-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 16px;
}

.guia-card-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--white);
}


/* ============================================================
   RESPONSIVE — tablet (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --side-pad: 60px;
  }

  .hero-intro {
    padding: 56px 60px 40px;
  }

  .hero-subtitle {
    font-size: 1.625rem;
  }

  .section-inner.two-col {
    gap: 48px;
  }

  .btn-nav-section {
    font-size: 1.1rem;
    height: 80px;
    padding: 0 24px;
  }

  .page-title { font-size: 3.5rem; }
  .page-subtitle { font-size: 1.625rem; }
}


/* ============================================================
   RESPONSIVE — tablet portrait (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --side-pad: 32px;
  }

  .top-logo-bar {
    height: 88px;
  }

  .top-logo-link img {
    height: 48px;
  }

  .main-nav a {
    font-size: 0.75rem;
    padding: 0 12px;
  }

  .hero-intro {
    padding: 48px 32px 32px;
  }

  .hero-title-img {
    max-width: 420px;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  /* hero-bg-img: always full height, no clipping */

  .hero-cta {
    bottom: 28px;
  }

  .btn-pill-green {
    font-size: 1.05rem;
    height: 52px;
    padding: 0 40px;
  }

  .section-inner {
    padding: 56px 32px;
  }

  .section-inner.two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Image before text on mobile */
  #mas-alla .col-image,
  #lusitania-destino .col-image,
  #tapa-descripcion .col-image {
    order: -1;
  }

  .personaje-card.two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .personaje-card.two-col-reverse .col-image {
    order: 0;
  }

  .villanos-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .creador-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lusitania-img img {
    transform: none;
    margin-bottom: 0;
  }

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

  .quote-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 28px;
    gap: 24px;
  }

  .quote-body cite {
    display: block;
    margin-top: 12px;
  }

  .page-intro {
    padding: 56px 32px 44px;
  }

  .page-title { font-size: 3rem; }
  .page-subtitle { font-size: 1.375rem; }

  .tapa-img { max-width: 280px; }

  .album-nav {
    gap: 8px;
    overflow-x: auto;
  }

  .btn-nav-section {
    height: 64px;
    font-size: 0.875rem;
    padding: 0 16px;
    flex-shrink: 0;
  }
}


/* ============================================================
   RESPONSIVE — mobile (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
  :root {
    --side-pad: 20px;
  }

  /* Collapse nav to scroll on small screens */
  .main-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: auto;
    min-height: 46px;
    padding: 0 8px;
    flex-wrap: nowrap;
  }

  .main-nav ul::-webkit-scrollbar { display: none; }

  .main-nav a {
    font-size: 0.7rem;
    padding: 0 10px;
    height: 46px;
    flex-shrink: 0;
  }

  .hero-title-img {
    max-width: 280px;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-inner {
    padding: 44px 20px;
  }

  .col-text p {
    font-size: 1rem;
  }

  .album-nav {
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .album-nav::-webkit-scrollbar { display: none; }

  .btn-nav-section {
    flex-shrink: 0;
    height: 58px;
    font-size: 0.8rem;
    padding: 0 14px;
  }
}
