/* estilos.css - Estilos principales para el sistema de preinscripción CETIS 151 */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Formularios */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.section-title {
    color: #4a5568;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.5em;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

label.required::after {
    content: " *";
    color: #e53e3e;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
}

small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 12px;
}

/* Botones base */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

/* Botones específicos */
.btn-success {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    box-shadow: 0 7px 14px rgba(56, 161, 105, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    box-shadow: 0 7px 14px rgba(237, 137, 54, 0.3);
}

.btn-pdf {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
    box-shadow: 0 7px 14px rgba(229, 62, 62, 0.3);
}

.btn-print {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.btn-print:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
    box-shadow: 0 7px 14px rgba(49, 130, 206, 0.3);
}

.btn-new {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.btn-new:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    box-shadow: 0 7px 14px rgba(56, 161, 105, 0.3);
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Mensajes */
.error-message {
    background: #fed7d7;
    color: #9b2c2c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
}

.success-message {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.success-icon {
    font-size: 80px;
    color: #38a169;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Contenedor de datos */
.datos-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dato-item {
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dato-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.dato-label {
    font-weight: bold;
    color: #4a5568;
    display: block;
    margin-bottom: 5px;
}

.dato-valor {
    color: #2d3748;
    font-size: 1.1em;
}

.carrera-item {
    background: #f7fafc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #667eea;
}

.folio {
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: center;
    font-size: 1.3em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .container {
        padding: 10px;
    }
}

/* Animaciones para inputs */
input:focus, select:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilos para el mensaje de CURP validada */
.curp-validada {
    background: #e6fffa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #38a169;
}

/* Mejoras para impresión */
@media print {
    .btn, .button-group {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .datos-container, .success-message {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Tooltip */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
}