﻿

:root {
    --tramite-text: #2f2f2f;
    --tramite-muted: #656565;
    --tramite-accent: #2f6b49;
    --tramite-accent-hover: #25583f;
    --tramite-badge-bg: #eef6ff;
    --cedula-badge-bg: rgba(206, 197, 170, 0.75);
    --tramite-badge-text: #2b6db0;
    --cedula-badge-text: #2C2C2C;
    --tramite-divider: #e6e6e6;
}

* {
    box-sizing: border-box
}



/* === CARD === */
.tramite-card {
    background-image: url('/img/fondocards.webp');
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;

    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    margin-top: 1.8rem;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .tramite-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

.tramite-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tramite-info {
    flex: 1 1 60%;
    min-width: 240px;
}

.tramite-titulo {
    font-weight: 700;
    font-size: 1.21rem;
    margin: 0 0 4px 0;
    /*color: var(--tramite-text);*/
    color: #6D071A;
}

.tramite-subtitulo {
    display: block;
    font-weight: 550;
    font-size: 1.1rem;
    margin-bottom: 1px;
    color: #3b3c36;
}

.tramite-descripcion {
    font-weight: 420;
    font-size: .99rem;
    color: var(--tramite-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Número de líneas visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .tramite-descripcion.expandido {
        -webkit-line-clamp: unset;
        overflow: visible;
    }

/* === ACCIONES (Badge y botón) === */
.tramite-acciones {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.tramite-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--tramite-badge-bg);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--tramite-badge-text);
    text-decoration: none;
}

.cedula-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cedula-badge-bg);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--cedula-badge-text);
    text-decoration: none;
}

    .cedula-badge:hover {
        color: #1F1F1F;
    }

.cedula-badge svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    opacity: 0.95;
}

    .tramite-badge svg {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        display: block;
        opacity: 0.95;
    }

.tramite-badge-text {
    font-weight: 600;
}

.tramite-boton {
    background: var(--tramite-accent);
    color: #fff;
    font-weight: 700;
    border: 0;
    border-radius: 20px;
    padding: 12px 20px; /* ✅ ajusta altura total */
    font-size: 15px; /* opcional, para balance visual */
    line-height: 1; /* ✅ evita que el texto se desplace verticalmente */
    height: 40px; /* ✅ altura fija */
    display: inline-flex; /* ✅ asegura alineación vertical */
    align-items: center;
    justify-content: center;
    transition: transform .05s ease-in-out, box-shadow .2s;
    box-sizing: border-box;
    margin-top:1rem;
}

    .tramite-boton:hover {
        background: var(--tramite-accent-hover);
        color: #fff;
    }

    .tramite-boton:active {
        transform: translateY(1px);
    }


/*.tramite-divider {
    height:25px; 
    background-image: url('/img/fondo_vino.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-top: 20px;
    border-radius: 2px;
}*/
.tramite-divider {
    height: 2px;
    background: var(--tramite-divider);
    margin-top: 20px;
    border-radius: 2px;
} 


@media (max-width:720px) {
    .tramite-acciones {
        width: 100%;
        justify-content: space-between;
        margin-top: 6px;
    }

    .tramite-info {
        flex: 1 1 100%;
    }

    .tramite-boton {
        padding: 10px 18px;
        font-size: 13px;
    }

    .tramite-titulo {
        font-size: 20px;
    }
}
