:root {
    --primary-color: #007BFF; /* Azul celeste */
    --secondary-color: #343a40; /* Gris oscuro casi negro */
    --background-color: #f8f9fa; /* Gris claro */
    --text-color: #212529; /* Negro */
    --form-background: #e9ecef; /* Gris muy claro */
    --button-hover: #0056b3;
    --border-color: #ced4da;
    --card-background: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.main-header {
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-container {
    padding: 10px 20px;
}

.login-button {
    background-color: #28a745; /* A vibrant green color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #28a745;
}

.login-button:hover {
    background-color: transparent;
    color: #28a745;
}

 /* Nuevo estilo para el botón de Administración */
.admin-button {
    background-color: #007bff; /* Un azul vibrante */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #007bff;
    margin-right: 10px; /* Separación entre botones */
}

.admin-button:hover {
    background-color: transparent;
    color: #007bff;
}

/* Make sure your existing .logo-container still works with the new header layout */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-container img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-container h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Prizes Section */
.prizes-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.prizes-images img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.prizes-images img:hover {
    transform: scale(1.05);
}

/* Purchase Section - For Smaller Screens (default behavior) */
.purchase-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Purchase Section - For Larger Screens */
@media (min-width: 768px) {
    .purchase-section {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.payment-info, .purchase-form-container {
    flex: 1;
}

.payment-info {
    background-color: var(--form-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payment-info ul {
    list-style: none;
    padding: 0;
}

.payment-info li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.purchase-form-container {
    background-color: var(--form-background);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Nuevo estilo para la sección de tickets */
.tickets-selection-section {
    padding: 1rem;
    background-color: var(--form-background);
    border-radius: 10px;
}

/* Contenedor de los botones de cantidad */
.ticket-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Ajusta el ancho de los botones */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Estilo base para todos los botones de tickets */
.ticket-amount-btn {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 1rem 0.5rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.ticket-amount-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilo para el botón más popular, con fondo verde */
.ticket-amount-btn.most-popular {
    background-color: #28a745; /* Un verde vibrante, puedes ajustarlo */
    color: white;
    border-color: #28a745;
}

.ticket-amount-btn.most-popular span {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    margin-top: 0.5rem;
    color: #f0f0f0;
}

/* Contenedor para el contador manual */
.manual-tickets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ticket-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estilo para los botones de decremento y incremento */
.ticket-counter button {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-counter button:hover {
    background-color: #f0f0f0;
}

/* Estilo para el input de cantidad de tickets */
.ticket-counter input[type="number"] {
    width: 60px;
    text-align: center;
    border-radius: 10px;
}

/* Estilo para el botón de "Continuar" */
#next-step-btn {
    margin-top: 1.5rem;
    background-color: #28a745; /* Verde para que combine con el botón "Más popular" */
    color: white;
    font-size: 1.5rem;
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.buy-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}



/* Social Media Section */
.social-media-section {
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.instagram-icon {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.facebook-icon {
    background-color: #000000;
}

.twitter-icon {
    background-color: #1da1f2;
}

.whatsapp-icon {
    background-color: #25d366;
}

.whatsapp-icon i {
    margin-right: 0.5rem;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--form-background);
    border-radius: 10px;
    max-height: 500px;
    overflow-y: scroll;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ticket-cell {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

.ticket-cell.sold {
    background-color: var(--secondary-color);
    color: var(--background-color);
    text-decoration: line-through;
}

.image-gallery-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.info-image {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-image:hover {
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    color: var(--background-color);
    margin-top: 2rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

a {
    color:white;
    text-decoration: none;
}

/* Inside the <style> block of admin.php */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block; /* Make all table elements block-level */
    }
    thead tr {
        position: absolute; /* Hide the table header */
        top: -9999px;
        left: -9999px;
    }
    tr {
        margin-bottom: 15px; /* Add space between "rows" */
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    td:before {
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
    /* Label the data fields using CSS generated content */
    td:nth-of-type(1):before { content: "ID:"; }
    td:nth-of-type(2):before { content: "Nombre:"; }
    td:nth-of-type(3):before { content: "Cédula:"; }
    td:nth-of-type(4):before { content: "Teléfono:"; }
    td:nth-of-type(5):before { content: "Email:"; }
    td:nth-of-type(6):before { content: "Tickets:"; }
    td:nth-of-type(7):before { content: "Comprobante:"; }
    td:nth-of-type(8):before { content: "Acción:"; }
}