* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e90b0b 0%, #e96059 100%);
    min-height: 100vh;
    padding: 20px;
}

.container, .login-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header a {
    color: #3498db;
    text-decoration: none;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

h2, h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

button, .btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #219a52;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 20px;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px;
}

.dashboard-cards .card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.dashboard-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dashboard-cards .icon {
    font-size: 50px;
    margin-bottom: 15px;
}


/* Estilos para página de validación */
.datos-validacion p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.5;
}

.datos-validacion strong {
    display: inline-block;
    width: 140px;
    font-weight: 600;
    color: #2c3e50;
}

.folio-destacado {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: inline-block;
    letter-spacing: 0.5px;
}


.info-text {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

.btn-add {
    background: #27ae60;
    color: white;
}
.btn-add:hover {
    background: #219a52;
}

.btn-links {
    background: #f39c12;
    color: white;
}
.btn-links:hover {
    background: #e67e22;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}