/* Evento Page Styles */
.evento-container {
  min-height: 100vh;
}

/* Hero Section del Evento */
.evento-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 120px 0 80px;
  color: white;
  overflow: hidden;
}

.evento-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=800&width=1200") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.evento-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 60, 114, 0.8);
  z-index: 2;
}

.evento-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.evento-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.evento-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.evento-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 40px 0;
  opacity: 0.9;
}

/* Grid de información del evento - 4 columnas */
.evento-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.evento-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 15px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.evento-info-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

.evento-info-item.xce-highlight {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-color: rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.evento-info-item i {
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 5px;
}

.evento-info-item.xce-highlight i {
  color: white;
  font-size: 1.8rem;
}

.evento-info-item span {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.evento-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* XCE Info Section */
.evento-xce-info {
  padding: 60px 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

.xce-banner {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  margin: 0 auto;
}

.xce-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.xce-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 15px 0;
}

.xce-content p {
  font-size: 1.2rem;
  margin: 0 0 25px 0;
  opacity: 0.9;
}

.xce-features {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.xce-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
}

.xce-feature i {
  font-size: 1.2rem;
}

/* Main Info Section */
.evento-main-info {
  padding: 80px 0;
  background: #f8f9fa;
}

.evento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.evento-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.evento-card.cronograma-completo {
  grid-column: 1 / -1;
}

.evento-card-header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.evento-card-header i {
  font-size: 1.5rem;
}

.evento-card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.evento-card-content {
  padding: 25px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-row strong {
  color: #2c5aa0;
  font-weight: 600;
  min-width: 120px;
}

.info-row span {
  text-align: right;
  flex: 1;
}

/* Precios */
.precio-destacado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.precio-normal,
.precio-tardio {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.precio-normal {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-color: #28a745;
}

.precio-tardio {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: white;
  border-color: #ffc107;
}

.precio-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  opacity: 0.9;
}

.precio-valor {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.xce-precio {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.xce-precio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
}

.xce-precio-item i {
  font-size: 1.2rem;
}

/* Métodos de Pago */
.pago-metodo {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2c5aa0;
}

.pago-metodo strong {
  display: block;
  color: #2c5aa0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.pago-detalles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pago-detalles span {
  font-size: 0.95rem;
  color: #666;
}

.confirmacion-pago {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3cd;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ffeaa7;
  color: #856404;
  font-weight: 600;
}

/* Cronograma */
.cronograma-seccion {
  margin-bottom: 30px;
}

.cronograma-seccion:last-child {
  margin-bottom: 0;
}

.cronograma-seccion h4 {
  color: #2c5aa0;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cronograma-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cronograma-item:last-child {
  border-bottom: none;
}

.cronograma-item.destacado {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  margin: 0 -25px;
  padding: 15px 25px;
  border-radius: 8px;
}

.cronograma-item.reconocimiento {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  margin: 0 -25px 10px -25px;
  padding: 15px 25px;
  border-radius: 8px;
}

.cronograma-item.xce-item {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  margin: 0 -25px;
  padding: 15px 25px;
  border-radius: 8px;
}

.cronograma-hora,
.cronograma-fecha {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c5aa0;
  min-width: 120px;
}

.cronograma-item.destacado .cronograma-hora,
.cronograma-item.reconocimiento .cronograma-fecha,
.cronograma-item.xce-item .cronograma-hora {
  color: white;
}

.cronograma-actividad {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Distancias */
.distancia-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.distancia-item:last-child {
  border-bottom: none;
}

.distancia-item.xce-distancia {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  margin: 0 -25px;
  padding: 15px 25px;
  border-radius: 8px;
}

.distancia-valor {
  font-size: 1.5rem;
  font-weight: 900;
  color: #2c5aa0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.distancia-item.xce-distancia .distancia-valor {
  color: white;
}

.distancia-categoria {
  text-align: right;
  color: #666;
}

.distancia-item.xce-distancia .distancia-categoria {
  color: white;
}

/* Contactos */
.contacto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.contacto-item:last-child {
  border-bottom: none;
}

.contacto-item strong {
  color: #2c5aa0;
  min-width: 140px;
}

/* XCE Detalle Section */
.evento-xce-detalle {
  padding: 80px 0;
  background: white;
}

.xce-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.xce-info-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  border-left: 4px solid #ff6b35;
  transition: transform 0.3s ease;
}

.xce-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.xce-info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5rem;
}

.xce-info-card h3 {
  color: #2c5aa0;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.xce-info-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.xce-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.xce-info-card li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
}

.xce-info-card li:last-child {
  border-bottom: none;
}

.xce-info-card li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: #ff6b35;
  font-weight: bold;
}

/* Categorías */
.evento-categorias {
  padding: 80px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c5aa0;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.categorias-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.categoria-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #666;
}

.categoria-tab.active {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
  color: white;
  border-color: #2c5aa0;
}

.categoria-tab:hover:not(.active) {
  background: #e9ecef;
  border-color: #2c5aa0;
}

.categoria-content {
  display: none;
}

.categoria-content.active {
  display: block;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.categoria-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #2c5aa0;
  transition: all 0.3s ease;
}

.categoria-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.categoria-nombre {
  font-weight: 700;
  color: #2c5aa0;
  font-size: 1.1rem;
}

.categoria-edad {
  color: #666;
  font-size: 0.95rem;
}

/* Reglamento */
.evento-reglamento {
  padding: 80px 0;
  background: #f8f9fa;
}

.reglamento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.reglamento-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.reglamento-card:hover {
  transform: translateY(-5px);
}

.reglamento-card.obligatorio {
  border-top: 4px solid #28a745;
}

.reglamento-card.prohibido {
  border-top: 4px solid #dc3545;
}

.reglamento-card.descalificacion {
  border-top: 4px solid #ffc107;
}

.reglamento-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.obligatorio .reglamento-icon {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.prohibido .reglamento-icon {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: white;
}

.descalificacion .reglamento-icon {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: white;
}

.reglamento-card h3 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
}

.reglamento-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.reglamento-card li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
}

.reglamento-card li:last-child {
  border-bottom: none;
}

.reglamento-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2c5aa0;
  font-weight: bold;
}

/* Premiación */
.evento-premiacion {
  padding: 80px 0;
  background: white;
}

.premiacion-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.premiacion-lugar,
.premiacion-requisitos {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 12px;
  border-left: 4px solid #2c5aa0;
}

.premiacion-lugar i,
.premiacion-requisitos i {
  color: #2c5aa0;
  font-size: 1.2rem;
}

.premiacion-modalidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.premiacion-modalidad {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 16px;
  border-left: 4px solid #2c5aa0;
}

.premiacion-modalidad.xce-premiacion {
  border-left-color: #ff6b35;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
}

.premiacion-modalidad h3 {
  color: #2c5aa0;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 25px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.premiacion-modalidad.xce-premiacion h3 {
  color: #ff6b35;
}

.medallas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.medalla-item {
  text-align: center;
  padding: 20px 15px;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.medalla-item.oro {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  border-color: #ffd700;
}

.medalla-item.plata {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #333;
  border-color: #c0c0c0;
}

.medalla-item.bronce {
  background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
  color: white;
  border-color: #cd7f32;
}

.medalla-item.participacion {
  background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
  color: white;
  border-color: #6c757d;
}

.medalla-item.finisher {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
  color: white;
  border-color: #2c5aa0;
}

.medalla-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.medalla-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Ubicación */
.evento-ubicacion {
  padding: 80px 0;
  background: #f8f9fa;
}

.ubicacion-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.ubicacion-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 10px;
}

.ubicacion-info p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

.ubicacion-detalles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.detalle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detalle-item i {
  color: #2c5aa0;
  font-size: 1.2rem;
}

.btn-ubicacion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
}

.btn-ubicacion:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.6);
  color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .evento-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .evento-title {
    font-size: 2.5rem;
  }

  .evento-subtitle {
    font-size: 1.2rem;
  }

  .evento-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .evento-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .evento-grid {
    grid-template-columns: 1fr;
  }

  .precio-destacado {
    grid-template-columns: 1fr;
  }

  .xce-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .xce-features {
    justify-content: center;
  }

  .xce-info-grid {
    grid-template-columns: 1fr;
  }

  .premiacion-info {
    flex-direction: column;
    align-items: center;
  }

  .premiacion-modalidades {
    grid-template-columns: 1fr;
  }

  .categorias-tabs {
    flex-direction: column;
    align-items: center;
  }

  .categoria-tab {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .categorias-grid {
    grid-template-columns: 1fr;
  }

  .reglamento-grid {
    grid-template-columns: 1fr;
  }

  .medallas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ubicacion-detalles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .evento-hero {
    padding: 100px 0 60px;
  }

  .evento-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .medallas-grid {
    grid-template-columns: 1fr;
  }

  .evento-card-content {
    padding: 20px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .info-row span {
    text-align: left;
  }

  .xce-banner {
    padding: 25px;
  }

  .xce-content h2 {
    font-size: 2rem;
  }

  .cronograma-hora,
  .cronograma-fecha {
    min-width: 80px;
    font-size: 1rem;
  }

  .evento-info-item {
    padding: 15px 10px;
  }

  .evento-info-item span {
    font-size: 0.85rem;
  }
}
