<style>
/* =================================================================
   MÓDULO CORPORATIVO DE TRÁMITES Y SERVICIOS - CDCE SUCRE
   Estilos encapsulados para evitar conflictos con actualizaciones
   ================================================================= */

.tramites-page {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.5;
}

/* Contenedor general de soporte */
.tramites-page .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tramites-page .padding-y {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

/* HERO SECTION */
.tramites-page .tramites-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}

.tramites-page .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 50%);
    pointer-events: none;
}

.tramites-page .hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.tramites-page .badge-tech {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.tramites-page .tramites-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tramites-page .tramites-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin: 0;
}

/* GRID DE TARJETAS */
.tramites-page .tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* TARJETA PREMIUM */
.tramites-page .tramite-card-premium {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tramites-page .tramite-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* ETIQUETAS DE CATEGORÍA */
.tramites-page .card-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tramites-page .card-tag.legal { background-color: #eff6ff; color: #1d4ed8; }
.tramites-page .card-tag.personal { background-color: #f0fdf4; color: #15803d; }
.tramites-page .card-tag.admin { background-color: #fefce8; color: #a16207; }
.tramites-page .card-tag.planteles { background-color: #f5f3ff; color: #6d28d9; }

/* INFORMACIÓN PRINCIPAL DE LA TARJETA */
.tramites-page .card-main-info {
    margin-bottom: 1rem;
}

.tramites-page .tramite-icon {
    width: 3rem;
    height: 3rem;
    background-color: #f1f5f9;
    color: #2563eb;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tramites-page .tramite-card-premium h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    padding-right: 4rem; /* Evita solapamiento con el badge */
}

.tramites-page .tramite-desc {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* REQUISITOS */
.tramites-page .tramite-requirements {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f1f5f9;
}

.tramites-page .tramite-requirements h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tramites-page .tramite-requirements h4 i {
    color: #2563eb;
}

.tramites-page .tramite-requirements ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.tramites-page .tramite-requirements li {
    margin-bottom: 0.25rem;
}

.tramites-page .tramite-requirements li:last-child {
    margin-bottom: 0;
}

/* ACCIONES Y METADATOS */
.tramites-page .card-action-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.tramites-page .meta-info {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tramites-page .text-success {
    color: #16a34a;
}

/* BOTONES */
.tramites-page .btn-action-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    margin-top: auto;
}

.tramites-page .btn-action-card:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.tramites-page .btn-action-card.secondary {
    background-color: #e2e8f0;
    color: #334155;
}

.tramites-page .btn-action-card.secondary:hover {
    background-color: #cbd5e1;
    color: #0f172a;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tramites-page .tramites-hero {
        padding: 3rem 1rem;
    }
    .tramites-page .tramites-hero h2 {
        font-size: 2rem;
    }
    .tramites-page .padding-y {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }
}
</style>