﻿/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Estructura general */
body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f6f6f6;
  color: #222;
  line-height: 1.6;
  padding: 10px;
}

.contenedor {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Cabecera del evento */
.evento-datos {
  text-align: center;
  margin-bottom: 20px;
}

.evento-titulo {
  font-family: 'Poppins', 'Roboto', 'Segoe UI' sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #444;
}

.evento-fecha, .evento-hora {
  /*font-family: 'Poppins', sans-serif;*/
  font-size: 16px;
  color: #808080;  
}

.evento-lugar {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #111;
  text-align: center;
}

.evento-info-grid {
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));*/
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    color: #2c8bf0;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

/* Imágenes */
.imagen-evento, .imagen-mapa {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

/* Descripción */
.descripcion {
  background-color: #fefefe;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid #007bff;
  border-radius: 8px;
  /*text-align:justify;*/
}

.descripcion-texto {
  font-size: 16px;
  color: #444;
}

/* Tabla precios */
.precios-section h2 {
  margin-bottom: 10px;
  color: #007bff;
  text-align: center;
  /*font-family: 'Poppins', sans-serif;*/
  font-size: 1.5rem;
  /*font-size: 16px;*/
  /*text-align:justify;*/
}

.tabla-precios {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.tabla-precios th, .tabla-precios td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.tabla-precios th {
  background-color: #007bff;
  color: white;
}

.tabla-precios tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabla-precios tr:hover {
  background-color: #f1f1f1;
}

/* Botón volver */
.btn-volver {
  display: block;
  margin: 30px auto 10px;
  max-width: 180px;
  cursor: pointer;
}

/* Mensajes */
.mensaje-validacion {
  display: block;
  text-align: center;
  color: red;
  font-weight: 600;
  margin-top: 10px;
}

.info-evento {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #f8f6f6;
    color: #2c8bf0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    padding: 1rem;
    text-align: center;
    max-width: 100%;
}

/* Cada ítem ocupará 100% en móvil, 33.33% en desktop */
.info-item {
    width: 100%;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ← alinea a la izquierda SIEMPRE */
    text-align: left;
}

/* PRECIOS FIJOS */
.ticket-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;                    /* espacio entre cada recuadro */
    /*padding: 2rem 1rem;*/
    max-width: 1200px;
    /*margin: 0.5rem auto;*/
}

/*.ticket-card {
    background-color: #fff;
    border: 2px solid #2c8bf0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0.5rem;
}

.ticket-card:hover {
    transform: translateY(-5px);
}*/

.ticket-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c8bf0;
    margin-bottom: 0.5rem;
}

.ticket-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    color: #0078d7;
    margin-bottom: 1rem;
}

.ticket-desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.ticket-button {
    /*background-color: #2c8bf0;*/
    background-color: #0078d7;              /* AZUL */
    /*background-color: #28a745;*/                  /* VERDE */
    color: #fff;
    border: none;
    padding: 0.5rem 1.0rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-button:hover {
    /*background-color: #1a6dd6;*/
    /*background-color: #005fa3;*/
    /*background-color: #4bd650;*/
    background-color: #5ea8f8;              /* AZULITO */
    /*background-color: #2fc651;*/                  /* VERDECITO */
}

.ticket-button-cancelar {
    /*background-color: #2c8bf0;*/
    background-color: #d70000;              /* AZUL */
    /*background-color: #28a745;*/                  /* VERDE */
    color: #fff;
    border: none;
    padding: 0.5rem 1.0rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-button-cancelar:hover {
    /*background-color: #1a6dd6;*/
    /*background-color: #005fa3;*/
    /*background-color: #4bd650;*/
    background-color: #fb684e;              /* AZULITO */
    /*background-color: #2fc651;*/                  /* VERDECITO */
}

/* REPEATER PRECIOS */
.ticket-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.ticket-card {
    flex: 1 1 300px;
    max-width: 300px;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 1.0rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.ticket-card:hover {
    transform: scale(1.03);
}

.ticket-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/*.precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0078d7;
    margin: 0.5rem 0;
}

.descripcion {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-comprar {
    background-color: #0078d7;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-comprar:hover {
    background-color: #005fa3;
}
*/


/* LISTA DE PRECIOS UN POCO ALTA */
.lista-precios-lista {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.lista-precios-item {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lista-precios-titulo {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.lista-precios-precio {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.lista-precios-descripcion {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.lista-precios-boton {
    padding: 0.5rem 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* LISTA DE PRECIOS MENOS ALTA */
.tabla-precios-titulo {
    background-color: #e6f0ff; /* Fondo azul claro */
    color: #0056b3; /* Azul fuerte */
    font-size: 1.2rem;
    font-weight: bold;
    padding: 9px 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    text-align: left;
}

.tabla-precios-lista {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.2rem;
}

.tabla-precios-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background-color: #fdfdfd;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tabla-precios-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 40%;
}

.tabla-precios-producto {
    font-weight: bold;
    font-size: 1rem;
}

.tabla-precios-descripcion {
    font-size: 0.85rem;
    color: #777;
}

.tabla-precios-precio {
    font-weight: bold;
    color: #007bff;
    font-size: 1rem;
    flex: 0 0 auto;
    margin-right: 1rem;
}

.tabla-precios-boton {
    padding: 0.4rem 0.8rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.tabla-precios-boton:hover {
    /*background-color: #1a6dd6;*/
    /*background-color: #005fa3;*/
    /*background-color: #4bd650;*/
    /*background-color: #007bff; AZULITO*/
    background-color: #2fc651;
}

.tabla-precios-totales {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #eef6fb;
  padding: 10px 15px;
  border-top: 2px solid #ccc;
  margin-top: 20px;
  font-weight: normal;
  font-size: 1rem;
}

/*
.total-item {
  flex: 1 1 33%;
  min-width: 200px;
  margin-bottom: 10px;
}*/

.banda-totales {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #fdfdfd;
  padding: 20px;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

.item-total {
  flex: 1 1 30%;
  min-width: 200px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  background-color: #f4f8fb;
  border: 1px solid #dbe5ec;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.item-total label {
  font-weight: 600;
  color: #333;
}

.item-total span {
  font-weight: bold;
  font-size: 1.1em;
  color: #005fa3;
}

.total-destacado {
  background-color: #e9f7ef;
  border-color: #c3e6cb;
}

.totales-banda {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background-color: #f5faff;
  border-top: 2px solid #007BFF;
  padding: 16px;
  margin-top: 20px;
  border-radius: 8px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
}

.total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.total-label {
  font-weight: 600;
  color: #007BFF;
}

.total-value {
  font-weight: bold;
  color: #333;
}




/* Responsividad */
@media (min-width: 380px) {
    .evento-info-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 columnas en pantallas medianas */
    }

    .total-item {
        flex: 1 1 100%;
    }
}

@media (min-width: 480px) {
    .evento-info-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 columnas en pantallas medianas */
    }

    .total-item {
        flex: 1 1 100%;
    }
}

@media (min-width: 768px) {
    .info-item {
        width: 33.33%;
        margin: 0;
        text-align: left;
    }

    .total-item {
        flex: 1 1 100%;
    }

    .item-total {
    flex: 1 1 100%;
    }

    .totales-banda {
    grid-template-columns: repeat(3, 1fr);
    }

    .ticket-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .evento-info-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas grandes */
    }

    .evento-titulo {
        font-size: 22px;
    }

    .tabla-precios th, .tabla-precios td {
        padding: 8px;
        font-size: 14px;
    }

    .imagen-evento, .imagen-mapa {
        max-height: 250px;
    }

    .descripcion-texto {
        font-size: 14px;
    }
}
