/* Brochure Styles */
.brochure-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.brochure-overlay.active {
  opacity: 1;
  visibility: visible;
}

.brochure-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.brochure-overlay.active .brochure-container {
  transform: scale(1);
}

.brochure-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.brochure-close:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

.brochure-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.nav-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: scale(1);
}

.panel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.brochure-panels {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.brochure-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
}

.brochure-panel:not(.cover-panel):not([data-panel="0"])::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 85%;
  height: 100%;
  background: url('../img/escudo-risaralda-cf.png') center/contain no-repeat;
  background-size: 600px 800px;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.brochure-panel.active {
  opacity: 1;
  transform: translateX(0);
}

.brochure-panel.prev {
  transform: translateX(-100%);
}

.panel-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.cover-panel .panel-content {
  height: 100%;
  justify-content: center;
  padding: 0;
}

/* Cover Panel */
.cover-panel {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cover-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
  opacity: 0.2;
  z-index: 1;
}

.cover-panel > * {
  position: relative;
  z-index: 2;
}

.cover-logo {
  animation: fadeInUp 1s ease 0.5s both;
}

.cover-logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1/1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.cover-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.7s both;
}

.cover-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.9s both;
}

.cover-image {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 200px;
  opacity: 0.1;
  animation: slideInRight 1s ease 1.1s both;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Panel Titles */
.panel-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  animation: fadeInDown 0.8s ease both;
}

/* Panel Text */
.panel-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.panel-text p {
  margin-bottom: 20px;
}

.panel-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

.panel-text em {
  color: var(--secondary-color);
  font-style: italic;
}

.panel-text h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 15px;
  margin-top: 25px;
}

.panel-text h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
  margin-top: 20px;
}

.panel-text ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.panel-text li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.package-price {
  background: linear-gradient(135deg, var(--secondary-color), #d4af37);
  color: var(--white);
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.package-section {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.package-section h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  margin-top: 0;
}

.panel-image {
  text-align: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.panel-image img {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Panel Logo Styles */
.panel-logo {
  text-align: center;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.panel-logo img {
  max-width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.pillar {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease both;
}

.pillar:nth-child(2) {
  animation-delay: 0.2s;
}

.pillar:nth-child(3) {
  animation-delay: 0.4s;
}

.pillar:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.pillar h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.pillar p {
  color: var(--text-light);
  line-height: 1.6;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease both;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.4s;
}

.timeline-marker {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-right: 30px;
  min-width: 120px;
  text-align: center;
}

.timeline-content {
  flex: 1;
  background: var(--light-gray);
  padding: 25px;
  border-radius: 15px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 25px;
  margin: 30px 0;
}

.benefit-item {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease both;
}

.benefit-item:nth-child(2) {
  animation-delay: 0.1s;
}

.benefit-item:nth-child(3) {
  animation-delay: 0.2s;
}

.benefit-item:nth-child(4) {
  animation-delay: 0.3s;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.benefit-item p {
  color: var(--text-light);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin: 40px 0 30px;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  animation: fadeInUp 0.8s ease 0.5s both;
}

.cta-section h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.brochure-cta-btn {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.brochure-cta-btn:hover {
  background: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-info {
  text-align: center;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 0.1;
    transform: translateX(0);
  }
}

/* Jersey Showcase Styles */
.jersey-showcase {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 15px;
}

.jersey-display {
  text-align: center;
  flex: 1;
  max-width: 200px;
}

/* Brochure specific jersey styles */
.jersey-showcase .jersey-image {
  width: 150px;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  background: var(--white);
  padding: 10px;
  position: relative;
}

.jersey-showcase .jersey-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.jersey-display h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 15px 0 5px;
  font-weight: 600;
}

.jersey-display p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Package Jersey Preview Styles */
.package-jersey-preview {
  position: relative;
  text-align: center;
  margin: 25px 0;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 15px;
}

.package-jersey-image {
  width: 200px;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.package-jersey-image.back-view {
  transform: rotateY(180deg);
}

.logo-placement-indicator {
  position: absolute;
  background: rgba(212, 175, 55, 0.9);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
  white-space: nowrap;
}

.logo-placement-indicator.frontal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-placement-indicator.espalda-superior {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
}

.logo-placement-indicator.espalda-inferior {
  bottom: 35%;
  left: 50%;
  transform: translateX(-50%);
}

.logo-placement-indicator.manga {
  top: 27%;
  left: 21%;
  transform: translateY(-50%);
}

.logo-placement-indicator.pantaloneta-frontal {
  bottom: 45%;
  left: 50%;
  transform: translateX(-50%);
}

.logo-placement-indicator.pantaloneta-trasera {
  bottom: 60%;
  left: 42.5%;
  transform: translateX(50%);
}

/* Package Jersey Options */
.package-jersey-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 25px 0;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 15px;
}

.jersey-option {
  text-align: center;
  position: relative;
  flex: 1;
  max-width: 220px;
}

.jersey-option p {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 15px;
  font-size: 0.9rem;
}

/* Pulse animation for logo indicators */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Brochure Responsive */
@media (max-width: 768px) {
  .brochure-container {
    width: 95%;
    height: 95vh;
  }
  
  .brochure-panel {
    padding: 20px;
  }
  
  .cover-title {
    font-size: 2.5rem;
  }
  
  .cover-subtitle {
    font-size: 1.2rem;
  }
  
  .panel-title {
    font-size: 2rem;
  }
  
  .pillars {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  
  .timeline-marker {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .brochure-nav {
    bottom: 0;
    padding: 10px 20px;
  }
  
  .nav-btn {
    width: 35px;
    height: 35px;
  }
  
  .jersey-showcase {
    flex-direction: column;
    gap: 20px;
  }
  
  .jersey-display {
    max-width: 150px;
    margin: 0 auto;
  }
  
  .jersey-showcase .jersey-image {
    width: 120px;
    height: 150px;
  }
  
  .package-jersey-options {
    flex-direction: column;
    gap: 20px;
  }
  
  .jersey-option {
    max-width: 120px;
    margin: 0 auto;
  }
  
  .package-jersey-image {
    width: 160px;
    height: 200px;
  }
  
  .jersey-option {
    max-width: 180px;
  }
  
  .logo-placement-indicator {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
  
  .panel-logo img {
    max-width: 150px;
    height: 150px;
  }
}

/* Copa Ciudad Pereira Styles */
.copa-benefits {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.copa-benefit {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.copa-benefit h5 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.copa-benefit ul {
  list-style: none;
  padding: 0;
}

.copa-benefit ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-color);
  line-height: 1.6;
}

.copa-benefit ul li:before {
  content: "⚽";
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* Package intro text */
.package-intro {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 15px;
  font-style: italic;
}

@media (min-width: 768px) {
  .copa-benefits {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
