/* 
 * Estilos Páginas Públicas - Sistema de Constancias SMIE - ISC
 * Archivo: public/css/guest.css
 * Descripción: Estilos para páginas sin autenticación (validación pública)
 */

/* ============================================
    Variables CSS
============================================ */
:root {
    --smie-red: #9a242f;
    --smie-red-dark: #7a1d25;
    --smie-blue: #516b80;
    --smie-blue-dark: #3d5160;
}

/* ============================================
   Body y Contenedor Principal
   ============================================ */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--smie-blue) 0%, var(--smie-red) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ============================================
   Contenedor Guest
   ============================================ */
.guest-container {
    width: 100%;
    max-width: 600px;
}

.guest-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.4s ease;
}

/* ============================================
   Header
   ============================================ */
.guest-header {
    background: linear-gradient(135deg, var(--smie-blue), var(--smie-blue-dark));
    color: white;
    padding: 2rem;
    text-align: center;
}

.guest-logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.guest-logo i {
    font-size: 2.5rem;
    color: var(--smie-red);
}

.guest-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.guest-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ============================================
   Body del Card
   ============================================ */
.guest-body {
    padding: 2rem;
}

/* ============================================
   Footer
   ============================================ */
.guest-footer {
    background-color: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

.guest-footer p {
    margin: 0.25rem 0;
}

.guest-footer a {
    color: var(--smie-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guest-footer a:hover {
    color: var(--smie-blue-dark);
    text-decoration: underline;
}

/* ============================================
   Botones Personalizados
   ============================================ */
.btn-primary {
    background-color: var(--smie-red);
    border-color: var(--smie-red);
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--smie-red-dark);
    border-color: var(--smie-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--smie-blue);
    border-color: var(--smie-blue);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--smie-blue-dark);
    border-color: var(--smie-blue-dark);
}

/* ============================================
   Formularios
   ============================================ */
.form-control:focus {
    border-color: var(--smie-blue);
    box-shadow: 0 0 0 0.25rem rgba(81, 107, 128, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
}

/* ============================================
   Resultado de Validación - Válido
   ============================================ */
.validation-result.valid {
    border: 3px solid #198754;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background-color: #d1e7dd;
    animation: fadeIn 0.4s ease;
}

.validation-result.valid .icon {
    width: 80px;
    height: 80px;
    background-color: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.validation-result.valid .icon i {
    font-size: 2.5rem;
    color: white;
}

.validation-result.valid h3 {
    color: #0f5132;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ============================================
   Resultado de Validación - Inválido
   ============================================ */
.validation-result.invalid {
    border: 3px solid #dc3545;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background-color: #f8d7da;
    animation: fadeIn 0.4s ease;
}

.validation-result.invalid .icon {
    width: 80px;
    height: 80px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.validation-result.invalid .icon i {
    font-size: 2.5rem;
    color: white;
}

.validation-result.invalid h3 {
    color: #842029;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ============================================
   Info Box para Datos del Evento
   ============================================ */
.info-box {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-box h4 {
    color: var(--smie-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.info-box .info-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-box .info-row:last-child {
    border-bottom: none;
}

.info-box .info-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
}

.info-box .info-value {
    color: #212529;
}

/* ============================================
   Badge de Autenticidad
   ============================================ */
.authenticity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--smie-blue), var(--smie-blue-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    margin: 1rem 0;
    box-shadow: 0 4px 10px rgba(81, 107, 128, 0.3);
}

.authenticity-badge i {
    font-size: 1.25rem;
}

/* ============================================
   Animaciones
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 576px) {
    body {
        padding: 1rem 0.5rem;
    }

    .guest-container {
        max-width: 100%;
    }

    .guest-card {
        border-radius: 0.75rem;
    }

    .guest-header {
        padding: 1.5rem 1rem;
    }

    .guest-header h1 {
        font-size: 1.25rem;
    }

    .guest-header p {
        font-size: 0.875rem;
    }

    .guest-logo {
        width: 70px;
        height: 70px;
    }

    .guest-logo i {
        font-size: 2rem;
    }

    .guest-body {
        padding: 1.5rem;
    }

    .guest-footer {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .info-box .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .info-box .info-label {
        min-width: auto;
        font-size: 0.875rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .guest-container {
        max-width: 100%;
    }

    .guest-card {
        box-shadow: none;
    }

    .guest-footer {
        border-top: 2px solid #dee2e6;
    }

    .btn {
        display: none;
    }
}