/* ==========================================================================
   ESTILOS PARA LA PÁGINA HALLOWEEN CON SABOR PERUANO - COOPAC SAN ROMÁN
   ========================================================================== */

:root {
  --hw-orange: #ff7518;
  --hw-orange-glow: rgba(255, 117, 24, 0.4);
  --hw-dark-bg: #0d0814;
  --hw-card-bg: #160d24;
  --hw-purple: #7b2cbf;
  --hw-purple-light: #9d4edd;
  --hw-gold: #ffb703;
  --hw-red: #d90429;
  --hw-green: #06d6a0;
  --hw-text: #f8f9fa;
  --hw-text-muted: #c7c1d3;
}

/* Page Background */
.halloween-page-wrap {
  background-color: var(--hw-dark-bg);
  color: var(--hw-text);
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

/* Hero Banner */
.hw-hero-banner {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}

.hw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 8, 20, 0.85) 0%, rgba(13, 8, 20, 0.95) 100%);
  z-index: 1;
}

.hw-hero-content {
  position: relative;
  z-index: 2;
}

.hw-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #ff7518, #9d4edd);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(255, 117, 24, 0.5);
}

.hw-main-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #ffe6a7 40%, #ff7518 80%, #ff5400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}

.hw-hero-lead {
  font-size: 1.15rem;
  color: #e2daf0;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 650px;
}

/* Hero CTA Buttons */
.hw-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.hw-btn-download {
  background: linear-gradient(135deg, #ff7518 0%, #e63946 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(255, 117, 24, 0.5);
}

.hw-btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 117, 24, 0.7);
  background: linear-gradient(135deg, #ff8c32 0%, #f72585 100%);
}

.hw-btn-view {
  background: linear-gradient(135deg, #7b2cbf 0%, #5a189a 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(123, 44, 191, 0.4);
}

.hw-btn-view:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.6);
  background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
}

.hw-btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
}

.hw-btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Quick Stat Counters Bar */
.hw-stats-bar {
  background: rgba(22, 13, 36, 0.95);
  border-top: 1px solid rgba(255, 117, 24, 0.3);
  border-bottom: 1px solid rgba(255, 117, 24, 0.3);
  padding: 30px 0;
  position: relative;
  z-index: 3;
}

.hw-stat-item {
  text-align: center;
  padding: 10px;
}

.hw-stat-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
}

.hw-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--hw-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hw-stat-label {
  font-size: 0.85rem;
  color: var(--hw-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Common Section Headers */
.hw-section {
  padding: 70px 0;
  position: relative;
}

.hw-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.hw-section-tag {
  display: inline-block;
  color: var(--hw-orange);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  background: rgba(255, 117, 24, 0.12);
  padding: 4px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 117, 24, 0.3);
}

.hw-section-heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.hw-section-desc {
  font-size: 1.05rem;
  color: var(--hw-text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Card Pillars / Requirements */
.hw-req-card {
  background: linear-gradient(165deg, rgba(30, 18, 50, 0.9) 0%, rgba(18, 11, 30, 0.95) 100%);
  border: 2px solid rgba(255, 117, 24, 0.3);
  border-radius: 20px;
  padding: 32px 24px;
  height: 100%;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.hw-req-card:hover {
  transform: translateY(-8px);
  border-color: var(--hw-orange);
  box-shadow: 0 12px 35px rgba(255, 117, 24, 0.25);
}

.hw-req-icon-box {
  width: 75px;
  height: 75px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.2), rgba(157, 78, 221, 0.2));
  border: 2px solid var(--hw-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 20px rgba(255, 117, 24, 0.3);
}

.hw-req-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.hw-req-text {
  font-size: 0.95rem;
  color: var(--hw-text-muted);
  line-height: 1.6;
}

.hw-req-highlight {
  display: inline-block;
  background: rgba(255, 183, 3, 0.15);
  color: var(--hw-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  margin-top: 12px;
}

/* Categories Section */
.hw-cat-card {
  background: linear-gradient(165deg, rgba(28, 16, 44, 0.9) 0%, rgba(15, 9, 24, 0.95) 100%);
  border-radius: 20px;
  border: 1px solid rgba(157, 78, 221, 0.4);
  padding: 30px;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.hw-cat-card:hover {
  border-color: var(--hw-purple-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.25);
}

.hw-cat-card .badge-cat {
  background: var(--hw-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

/* Prize Section */
.hw-podium-card {
  background: linear-gradient(165deg, rgba(32, 19, 52, 0.95) 0%, rgba(17, 10, 28, 0.98) 100%);
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hw-podium-first {
  border-color: var(--hw-gold);
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 183, 3, 0.3);
}

.hw-podium-first:hover {
  transform: scale(1.08) translateY(-6px);
  box-shadow: 0 0 50px rgba(255, 183, 3, 0.5);
}

.hw-podium-second {
  border-color: #adb5bd;
}

.hw-podium-third {
  border-color: #cd7f32;
}

.hw-medal-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: block;
}

.hw-podium-place {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hw-podium-prize {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--hw-gold);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hw-podium-desc {
  font-size: 0.85rem;
  color: var(--hw-text-muted);
}

/* Timeline Stages */
.hw-timeline {
  position: relative;
  padding: 20px 0;
}

.hw-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--hw-orange) 0%, var(--hw-purple) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.hw-timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.hw-timeline-badge {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hw-dark-bg);
  border: 3px solid var(--hw-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
  box-shadow: 0 0 15px var(--hw-orange-glow);
}

.hw-timeline-content {
  width: 45%;
  background: rgba(26, 15, 42, 0.9);
  border: 1px solid rgba(255, 117, 24, 0.3);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s ease;
}

.hw-timeline-content:hover {
  border-color: var(--hw-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 117, 24, 0.2);
}

.hw-timeline-item:nth-child(odd) .hw-timeline-content {
  margin-left: auto;
}

.hw-timeline-date {
  display: inline-block;
  background: rgba(255, 117, 24, 0.2);
  color: #ff9f1c;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Criteria Grid */
.hw-criteria-bar-item {
  background: rgba(22, 13, 36, 0.8);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.hw-criteria-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hw-criteria-pts {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hw-gold);
  white-space: nowrap;
}

/* PDF Viewer Container */
.hw-pdf-section {
  background: #09050e;
  border-top: 2px solid rgba(255, 117, 24, 0.4);
  border-bottom: 2px solid rgba(255, 117, 24, 0.4);
  padding: 70px 0;
}

.hw-pdf-box {
  background: #140b20;
  border: 2px solid rgba(255, 117, 24, 0.5);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0,0,0,0.7), 0 0 30px rgba(255, 117, 24, 0.2);
}

.hw-pdf-toolbar {
  background: linear-gradient(90deg, #1f1133 0%, #2f144d 100%);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 117, 24, 0.3);
}

.hw-pdf-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.hw-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hw-pdf-frame {
  width: 100%;
  height: 750px;
  border: none;
  background: #2b2b2b;
}

/* Fallback box if browser blocks pdf iframe */
.hw-pdf-fallback {
  padding: 40px 20px;
  text-align: center;
  color: var(--hw-text-muted);
}

/* Modal PDF viewer */
.hw-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.hw-modal.active {
  display: flex;
}

.hw-modal-dialog {
  background: #150a22;
  border: 2px solid var(--hw-orange);
  border-radius: 20px;
  width: 95vw;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 117, 24, 0.4);
}

.hw-modal-header {
  padding: 14px 20px;
  background: #221038;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 117, 24, 0.3);
}

.hw-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.hw-modal-body {
  flex: 1;
  overflow: hidden;
}

.hw-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ Accordion */
.hw-accordion-item {
  background: rgba(26, 15, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hw-accordion-header {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hw-accordion-header:hover {
  background: rgba(255, 117, 24, 0.1);
  color: var(--hw-orange);
}

.hw-accordion-body {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--hw-text-muted);
  line-height: 1.6;
  display: none;
}

.hw-accordion-item.active .hw-accordion-body {
  display: block;
}

.hw-accordion-item.active .hw-accordion-header {
  color: var(--hw-orange);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Call to action final */
.hw-cta-banner {
  background: linear-gradient(135deg, #2b0938 0%, #450920 50%, #ff7518 100%);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  margin: 60px 0 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hw-main-title {
    font-size: 2.5rem;
  }
  .hw-podium-first {
    transform: none;
    margin-bottom: 20px;
  }
  .hw-timeline::before {
    left: 25px;
  }
  .hw-timeline-badge {
    left: 25px;
  }
  .hw-timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
}

@media (max-width: 576px) {
  .hw-main-title {
    font-size: 1.95rem;
  }
  .hw-hero-banner {
    padding: 70px 0 40px;
  }
  .hw-btn {
    width: 100%;
  }
  .hw-pdf-frame {
    height: 500px;
  }
}
