/* --- Reseteo básico y configuración general --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f3f7; /* Color de fondo lavanda claro */
    color: #333;
    line-height: 1.6;
    padding: 2rem 1rem;
}

a {
    color: #8e44b3; /* Color púrpura para enlaces */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Contenedor principal --- */
.main-box {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 2rem 3rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- Encabezado --- */
header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
    text-align: left;
}

.event-logo {
    max-width: 300px;
    height: auto;
}

/* --- Título del evento --- */
.event-title {
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}

.event-title small {
    display: block;
    font-size: 1.2rem;
    color: #777;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* --- Alerta de información --- */
.alert-info {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.alert-info .fas {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* --- Detalles del evento --- */
.event-details {
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-row .fas {
    color: #8e44b3; /* Púrpura */
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 20px;
    text-align: center;
}

.info-row p {
    font-size: 1rem;
}

/* --- Sección de Entradas --- */
.tickets-section {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.tickets-section h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.ticket-info {
    flex: 3;
}

.ticket-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.ticket-price {
    flex: 1;
    text-align: right;
    font-size: 1rem;
    color: #555;
    padding-right: 1rem;
}

.ticket-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #888;
    padding: 0.3rem 0.8rem;
    cursor: not-allowed;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
    padding: 0.3rem 0;
    background-color: #fff;
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Sección de Reenviar Pedido --- */
.resend-section {
    background-color: #fafafa;
    border: 1px solid #eee;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.resend-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.resend-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.resend-content p {
    flex: 3;
    font-size: 0.9rem;
    color: #555;
}

.btn-resend {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.btn-resend:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}


/* --- Pie de página --- */
footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #888;
}

footer a {
    color: #888;
    font-weight: 600;
}

/* --- Responsividad para móviles --- */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .main-box {
        padding: 1.5rem;
    }
    .event-title {
        font-size: 1.5rem;
    }
    .event-title small {
        font-size: 1rem;
    }
    .ticket-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .ticket-info {
        flex-basis: 100%;
    }
    .ticket-price {
        flex-grow: 1;
        text-align: left;
        padding-right: 0;
    }
    .resend-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .btn-resend {
        width: 100%;
    }
}