/* ============================================
   MATRICULACIÓN - CSS ESPECÍFICO
   Colores de marca PortoVial (Rojo/Negro/Blanco)
   ============================================ */

/* Hero Section (Igual a Empresa-Hero) */
.matriculacion-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0a0a 60%, #7b1d1d 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #dc2626;
}

.matriculacion-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(220, 38, 38, .18) 0%, transparent 70%);
    pointer-events: none;
}

.matriculacion-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.matriculacion-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    color: #e5e5e5;
}

/* Categorías de Requisitos */
.requisitos-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.categoria-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.categoria-icon {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    color: #dc2626;
    transition: all 0.3s ease;
}

.categoria-card:hover .categoria-icon {
    background: #dc2626;
    color: white;
}

.categoria-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.categoria-description {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.categoria-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: white;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.categoria-card:hover .categoria-link {
    background: #dc2626;
    color: white;
}

/* Sección de Requisitos Detallados */
.requisitos-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
    border: 1px solid #e5e7eb;
}

.requisitos-content h2 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.requisitos-content h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: #dc2626;
    border-radius: 3px;
}

.requisitos-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.requisitos-list li {
    background: #fdf2f2;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
    padding-left: 3.5rem;
    color: #1f2937;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.requisitos-list li:hover {
    transform: translateX(5px);
    background: #fee2e2;
}

.requisitos-list li::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Pasos del Proceso */
.proceso-pasos {
    counter-reset: paso;
    margin: 3rem 0;
    position: relative;
}

.proceso-pasos::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.proceso-paso {
    position: relative;
    padding: 2rem;
    padding-left: 5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    z-index: 1;
}

.proceso-paso:hover {
    transform: translateX(10px);
    border-color: #dc2626;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.proceso-paso::before {
    counter-increment: paso;
    content: counter(paso);
    position: absolute;
    left: 1rem;
    top: 2rem;
    width: 32px;
    height: 32px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #dc2626;
}

.proceso-paso h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.proceso-paso p {
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

/* Tabla de Costos */
.costos-tabla {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.costos-tabla thead {
    background: #1a1a1a;
    color: white;
}

.costos-tabla th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.costos-tabla td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 1rem;
}

.costos-tabla tr:last-child td {
    border-bottom: none;
}

.costos-tabla tr:hover td {
    background: #f9fafb;
}

.costo-monto {
    font-weight: 800;
    color: #dc2626;
    font-size: 1.125rem;
}

/* Alertas de Matriculación */
.matriculacion-alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid;
    display: flex;
    gap: 1.25rem;
    align-items: start;
}

.matriculacion-alert.importante {
    background: #fef2f2;
    border-color: #dc2626;
}

.matriculacion-alert.info {
    background: #eff6ff;
    border-color: #3b82f6;
}

.alert-icon {
    font-size: 1.5rem;
    margin-top: 0.125rem;
}

.matriculacion-alert.importante .alert-icon {
    color: #dc2626;
}

.matriculacion-alert.info .alert-icon {
    color: #3b82f6;
}

.alert-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.alert-content p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .matriculacion-hero h1 {
        font-size: 2rem;
    }

    .requisitos-categorias {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .categoria-card {
        padding: 1rem 0.5rem;
    }

    .categoria-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .categoria-title {
        font-size: 1rem;
    }

    .categoria-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .proceso-paso {
        padding-left: 4rem;
    }

    .proceso-pasos::before {
        left: 1.5rem;
    }

    .costos-tabla {
        display: block;
        overflow-x: auto;
    }
}