:root {
    --primary-color: #c4122d; /* Rojo Unilibre Vivo */
    --primary-hover: #a10d23;
    --secondary-color: #1a1a1a;
    --accent: #d4a32a; /* Dorado Institucional */
    --bg-base: #fdfefe;
    --text-main: #333333;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: var(--text-main);
    background: url('../img/fondo-cartagena.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Header dinámico con Glassmorphism */
.main-header {
    background: var(--glass-bg);
    padding: 1.2rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header img {
    height: 90px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
    object-fit: contain;
}

.main-header img:hover {
    transform: scale(1.03);
}

.main-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.main-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Contenedores Premium */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.info-card {
    background: linear-gradient(to right, #ffffff, #f9fafb);
    border-left: 5px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.info-card p {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 700;
}

h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

input[type="text"], textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 18, 45, 0.15);
}

/* Botones con Micro-animaciones */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
    box-shadow: 0 6px 15px rgba(196, 18, 45, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 18, 45, 0.35);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Listas y Tablas */
.req-list {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.req-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-main);
}

.req-list li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.rubric-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}

.rubric-table th, .rubric-table td {
    border-bottom: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    padding: 1.2rem;
    text-align: left;
    background: #fff;
}

.rubric-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--secondary-color);
}

.rubric-table th:last-child, .rubric-table td:last-child {
    border-right: none;
}

/* Alertas */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #16a34a;
}
