:root {
  --yellow: #FFBF00;
  --dark: #1f1f1f;
  --paper: #efede8;
  --text: #2c2c2c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: var(--text);
  background: var(--paper) url('../images/fondo-1.webp') top center / cover no-repeat fixed;
  overflow-x: hidden;
}

.hero {
  width: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
}

.hero-image {
  width: 100%;
  display: block;
}

.stripe,
.footer-stripe {
  width: 100%;
  height: 10px;
  display: block;
  object-fit: cover;
}

.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 36px;
}

.section {
  text-align: center;
}

.intro {
  margin: 0;
  padding-top: 30px;
}

.intro h1 {
  margin: 0 0 24px;
  font-size: 46px;
  line-height: 1;
  color: var(--yellow);
  font-weight: 800;
}

.intro p {
  margin: 12px auto;
  max-width: 1200px;
  font-size: 22px;
  line-height: 1.3;
}

.intro p:first-of-type {
  font-size: 22px;
}

.featured-video {
  margin-top: 26px;
}

.video-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #f1f1e9;
  border: 1px solid #d8d6cf;
  padding: 10px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
}

.video-card video {
  width: 100%;
  display: block;
  background: #000;
}

.shorts-section {
  margin-top: 32px;
}

.title-image {
  width: min(500px, 94%);
  display: block;
  margin: 0 auto 20px;
}

.title-audios {
  width: min(320px, 82%);
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.short-card {
  background: #fff;
  border: 4px solid #ece9e3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  height: 360px;
}

.short-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.short-card img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.short-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 28px;
  line-height: 58px;
  text-align: center;
  pointer-events: none;
}

.short-card-center {
  grid-column: auto;
}

.downloads-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 560px;
  margin: 32px auto 0;
}

.download-col h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.download-btn {
  display: inline-block;
  background: var(--yellow);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 11px;
  border-radius: 1px;
}

.audios-section {
  margin-top: 36px;
}

.audio-grid {
  margin: 6px auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.audio-card {
  background: #9d9d9d;
  padding: 8px;
}

.audio-cover {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

.audio-card audio {
  width: 100%;
  height: 26px;
}

.audio-card-center {
  grid-column: auto;
}

.centered-btn-wrap {
  margin-top: 16px;
}

.pdf-section {
  margin-top: 34px;
}

.pdf-title {
  margin: 0 0 14px;
  font-size: 38px;
  color: var(--yellow);
  font-weight: 800;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
}

.pdf-card {
  border: 3px solid #ece9e3;
  background: #fff;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.pdf-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pdf-card:hover img {
  transform: scale(1.05);
}

.pdf-item {
  display: flex;
  flex-direction: column;
}

.pdf-mobile-link {
  display: none;
}

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.pdf-modal.is-open {
  display: block;
}

.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
}

.pdf-modal-content {
  position: relative;
  margin: 3vh auto;
  width: min(1100px, 94vw);
  height: 94vh;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 6px;
  overflow: hidden;
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
}

.pdf-modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.pdf-close {
  border: 0;
  background: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

.pdf-modal-body {
  background: #f4f4f4;
}

#pdfFrame {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-modal-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid #ddd;
  text-align: right;
}

.share-section {
  margin-top: 28px;
  padding-bottom: 78px;
  background: linear-gradient(180deg, transparent 0%, transparent 70%, #0f0f0f 100%);
}

.share-title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.1;
  color: #f2c100;
  font-weight: 800;
  text-shadow: 0 2px 0 #000;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.social-row a {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2be15;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.contact-copy {
  margin: 0 auto 14px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.3;
}

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

.contact-form input {
  width: min(460px, 92vw);
  height: 28px;
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
}

.contact-form button {
  border: none;
  background: var(--yellow);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 16px;
  cursor: pointer;
}

.site-footer {
  margin-top: 24px;
  background: #f6f6f6;
  text-align: center;
  padding-bottom: 10px;
}

.footer-logos {
  max-width: 1200px;
  margin: 18px auto 8px;
  padding: 0 18px;
}

.footer-logos img {
  width: 100%;
  display: block;
}

.partner-strip {
  max-width: 1100px;
  margin: 4px auto 6px;
  padding: 12px 8px 0;
  border-top: 1px solid #d7d7d7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.partner-strip img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.partner-strip img:first-of-type {
  height: 26px;
}

.strip-arrow {
  border: none;
  background: transparent;
  color: #111;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
}

.mobile-only {
  display: none;
}

.credit {
  margin: 8px 0 0;
  font-size: 11px;
  color: #111;
}

.credit a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .intro h1 {
    font-size: 34px;
  }

  .intro p {
    font-size: 23px;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-position: top center;
  }

  .main-content {
    padding: 0 14px 26px;
  }

  .intro h1 {
    font-size: 38px;
    margin: 8px 0 14px;
  }

  .intro p {
    font-size: 24px;
  }

  .intro p:first-of-type {
    font-size: 28px;
  }

  .shorts-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    max-width: 560px;
    gap: 10px;
  }

  .short-card,
  .short-card-center {
    grid-column: auto;
    height: 300px;
  }

  .downloads-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .audio-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    max-width: 560px;
    gap: 10px;
  }

  .audio-card-center {
    grid-column: auto;
  }

  .audio-cover {
    height: 72px;
  }

  .audio-card {
    padding: 6px;
  }

  .pdf-title {
    font-size: 30px;
  }

  .pdf-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    max-width: 560px;
    gap: 10px;
  }

  .pdf-modal-content {
    width: 96vw;
    height: 92vh;
    margin: 4vh auto;
  }

  .pdf-mobile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f4f4;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ddd;
    margin-top: 6px;
  }

  .pdf-mobile-link:active {
    background: #e9e9e9;
  }

  .pdf-icon {
    font-size: 18px;
  }

  .desktop-only {
    display: none !important;
  }

  .share-title {
    font-size: 22px;
  }

  .contact-copy {
    font-size: 14px;
  }

  /* .desktop-only is already hidden by the rule added above */

  .mobile-only {
    display: block;
  }

  .footer-logos-mobile {
    padding: 14px;
  }

  .mobile-logo-top,
  .mobile-logo-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .mobile-logo-top img,
  .mobile-logo-bottom img {
    height: 42px;
    width: auto;
  }

  .mobile-logo-top img:first-child {
    height: 32px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* PDF Button Style */
.pdf-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: var(--yellow);
  color: #fff;
  border: none;
  padding: 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

/* Custom Audio Player */
.custom-audio-player {
  background: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.custom-audio-player .audio-cover {
  margin-bottom: 0;
  border-bottom: 2px solid var(--yellow);
}

.player-controls {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.play-btn {
  background: var(--yellow);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: transform 0.2s;
}

.play-btn:hover {
  transform: scale(1.1);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  color: #ccc;
}

.progress-bar {
  flex-grow: 1;
  height: 4px;
  background: #444;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  cursor: pointer;
}