/* ===========================
   TELETÓN PERÚ – ESTILOS
   =========================== */

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

:root {
  --red: #D0021B;
  --red-dark: #A50015;
  --red-light: #e8002044;
  --yellow: #FFD600;
  --white: #FFFFFF;
  --black: #111111;
  --gray: #F5F5F5;
  --text: #222;
  --content-width: 800px;
  --font-main: 'Georgia', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--red);
  color: var(--text);
  min-height: 100vh;
}

/* ---- BANNER SUPERIOR ---- */
.banner-top {
  background: var(--red-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 100;
}

.btn-donar-top {
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
  border-radius: 20px;
  padding: 5px 22px;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.btn-donar-top:hover { background: #ffe033; }

/* ---- HERO ---- */
.hero-full {
  background: linear-gradient(135deg, #b0000f 0%, var(--red) 60%, #8b0000 100%);
  padding: 0;
  overflow: hidden;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px 0 0;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-logo img {
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-fallback {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  line-height: 1;
  font-style: italic;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 0;
  border-top: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
}

.hero-dates {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-top: 4px;
}

.hero-img img {
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  opacity: 0.95;
}

/* ---- META ---- */
.meta-section {
  background: var(--white);
  border-bottom: 3px solid var(--red);
}

.meta-section .container {
  padding: 16px 20px 10px;
}

.meta-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.meta-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  min-width: 90px;
}

.meta-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.meta-amount.highlight {
  color: var(--red);
  font-size: 2.5rem;
}

.progress-bar-wrap {
  margin-top: 10px;
  background: #eee;
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--yellow));
  border-radius: 6px;
  transition: width 1s ease;
  animation: progressPulse 2s infinite alternate;
}

@keyframes progressPulse {
  from { opacity: 0.9; }
  to { opacity: 1; }
}

/* ---- PAGE WRAP (fondo rojo, contenido blanco centrado) ---- */
.page-wrap {
  background: var(--red);
  padding: 24px 12px;
  display: flex;
  justify-content: center;
}

.main-content {
  width: 100%;
  max-width: var(--content-width);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* ---- SECTION ---- */
.section {
  padding: 28px 28px;
  border-bottom: 1px solid #f0f0f0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.section-title.red {
  background: var(--red);
  color: white;
  border-radius: 6px;
  padding: 8px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- YAPE ---- */
.yape-block {
  background: #f8f0ff;
  border: 2px solid #9c27b0;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.canal-logo img { height: 40px; object-fit: contain; }

.canal-number.big {
  font-size: 1.8rem;
  font-weight: 900;
  color: #6B0FA8;
}

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

.canal-qr img { width: 70px; height: 70px; border-radius: 6px; }

/* ---- BCP ---- */
.bcp-block {
  border: 2px solid #003087;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.canal-header { margin-bottom: 14px; }
.canal-header img { height: 28px; object-fit: contain; }

.bcp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.bcp-item.full { grid-column: 1 / -1; }

.bcp-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bcp-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #003087;
  letter-spacing: 0.5px;
}

.bcp-note {
  font-size: 0.8rem;
  color: #444;
  background: #f0f4ff;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

.bcp-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

/* ---- BANCOS GRID ---- */
.bancos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.banco-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banco-item.full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }

.banco-logo {
  font-weight: 900;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.banco-logo.interbank { background: #0A8040; color: white; }
.banco-logo.bbva { background: #004B8D; color: white; }
.banco-logo.scotiabank { background: #EC1C24; color: white; }
.banco-logo.banbif { background: #009FE3; color: white; }

.banco-cuenta {
  font-size: 0.72rem;
  color: #555;
  line-height: 1.4;
}

/* ---- TIENDAS ---- */
.tiendas-block {
  background: #fff8f0;
  border: 1px solid #ffd0a0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: center;
}

.tiendas-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
}

.tiendas-logos {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tienda-logo {
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
}

.tienda-logo.plaza { background: #E30613; color: white; }
.tienda-logo.mass { background: #F7A800; color: white; }
.tienda-logo.makro { background: #0066B3; color: white; }
.tienda-logo.vivanda { background: #8DC63F; color: white; }

/* ---- PAYPAL ---- */
.paypal-block {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 16px;
}

.paypal-title {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 10px;
}

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

.paypal-url {
  font-size: 0.95rem;
  font-weight: 600;
  color: #003087;
}

/* ---- TARJETAS ---- */
.tarjetas-block {
  text-align: center;
  padding: 16px 0;
}

.tarjetas-title {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 12px;
}

.tarjetas-logos {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ---- BOTONES ---- */
.btn-red {
  display: inline-block;
  background: var(--red);
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: 20px;
  padding: 8px 28px;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-red.small { padding: 5px 16px; font-size: 0.8rem; }

/* ---- LOGROS ---- */
.logros-section {
  background: var(--red);
  padding: 32px 28px;
  color: white;
}

.logros-header {
  text-align: center;
  margin-bottom: 24px;
}

.logros-year {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.logros-title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.logros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.logro-card {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logro-card.highlight-red {
  background: rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.3);
}

.logro-icon { font-size: 2rem; }

.logro-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.logro-number {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--yellow);
}

.logro-number.green { color: #7FE000; }

.logro-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.auditores {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
}

.auditores strong { color: var(--white); }

.rendicion-link {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- HISTORIAS / CARRUSEL ---- */
.historias-section {
  background: var(--red-dark);
  padding: 40px 16px;
}

.historias-inner {
  max-width: 960px;
  margin: 0 auto;
}

.historias-title {
  text-align: center;
  margin-bottom: 28px;
}

.historias-title span {
  display: inline-block;
  background: white;
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 900;
  padding: 8px 32px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: italic;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
}

.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-thumb:hover img { transform: scale(1.05); }

.video-thumb .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(255,0,0,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  pointer-events: none;
}

.video-thumb:hover .play-btn {
  background: rgba(200,0,0,1);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-btn svg {
  width: 22px; height: 22px;
  fill: white;
  margin-left: 3px;
}

.video-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.carousel-btn {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.carousel-btn:hover { background: rgba(255,255,255,0.3); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: white;
  transform: scale(1.3);
}

/* Modal de video */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.open { display: flex; }

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 60px rgba(0,0,0,0.8);
}

.video-modal-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---- AGRADECIMIENTOS ---- */
.agradecimientos {
  text-align: center;
}

.sponsors-tier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #eee;
}

.sponsor-name {
  font-weight: 800;
  color: #222;
  font-size: 0.9rem;
  padding: 6px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
}

.sponsor-name.large {
  font-size: 1.3rem;
  padding: 10px 24px;
}

.sponsor-name.bcp-s { color: #003087; border-color: #003087; }

/* ---- FOOTER ---- */
.footer-red {
  background: var(--red-dark);
  color: white;
  padding: 28px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  transition: background 0.2s;
}

.social-icon:hover { background: rgba(255,255,255,0.3); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}

.btn-donar-footer {
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
  border-radius: 24px;
  padding: 10px 40px;
  font-size: 1rem;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}

.btn-donar-footer:hover { background: #ffe033; transform: scale(1.04); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 640px) {

  .banner-top { font-size: 0.72rem; padding: 6px 12px; }
  .btn-donar-top { padding: 4px 14px; }

  .hero-inner { flex-direction: column; gap: 10px; padding: 20px 0 0; }
  .hero-img img { height: 140px; border-radius: 6px; }

  .meta-amount { font-size: 1.4rem; }
  .meta-amount.highlight { font-size: 1.8rem; }
  .meta-label { font-size: 0.9rem; min-width: 70px; }

  .page-wrap { padding: 12px 6px; }
  .section { padding: 20px 14px; }

  .bcp-grid { grid-template-columns: 1fr; }
  .bancos-grid { grid-template-columns: 1fr; }
  .logros-grid { grid-template-columns: 1fr; }

  .yape-block { flex-direction: column; text-align: center; }
  .canal-info { justify-content: center; }
  .canal-number.big { font-size: 1.4rem; }

  .logros-title { font-size: 1.2rem; }
  .logro-number { font-size: 1.8rem; }

  .carousel-slide { flex: 0 0 calc(100% - 0px); }

  .historias-title span { font-size: 1rem; padding: 6px 18px; }

  .carousel-btn { width: 36px; height: 36px; font-size: 1.4rem; }

  .sponsors-tier { gap: 10px; }
  .sponsor-name.large { font-size: 1rem; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .carousel-slide { flex: 0 0 calc(50% - 8px); }
}
