﻿:root {
    --portal-vino: #8C1D40;
    --portal-vino-oscuro: #691432;
    --portal-dorado: #D9B877;
    --portal-gris: #F7F7F7;
    --portal-texto: #333;
    --portal-radius: 14px;
    --portal-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: -5px;
    font-family: "Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background-color: var(--portal-gris);
    color: var(--portal-texto);
}

/* ---------- HERO DINÁMICO ---------- */
.portal-hero {
    position: relative;
    /* background: linear-gradient(135deg, var(--portal-vino), var(--portal-vino-oscuro)); */
    background: linear-gradient(90deg, #6a2c38 0%, #7b2f3d 50%, #5a222c 100%);
    color: white;
    text-align: center;
    padding: 60px 20px 120px;
    overflow: hidden;
}

    .portal-hero h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin: 0 0 16px;
    }
    .portal-hero h2 {
        font-size: 2.2rem;
        font-weight: 700;
        margin: 0 0 16px;
    }

    .portal-hero p {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto;
        color: rgba(255,255,255,0.9);
        line-height: 1.6;
    }

    /* Curva dinámica en hero */
    .portal-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 180px;
        background: radial-gradient(circle at bottom, rgba(255,255,255,0.05), transparent 70%);
        clip-path: ellipse(150% 100% at 50% 100%);
        z-index: 1;
    }

/* Buscador flotante */
.portal-search-container {
    position: relative;
    top: -90px;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    /*color:transparent;*/
}


/* Contadores de trámites animados */
.portal-counters {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.portal-counter {
    background: white;
    border-radius: var(--portal-radius);
    padding: 24px 30px;
    text-align: center;
    box-shadow: var(--portal-shadow);
    flex: 1 1 200px;
    min-width: 180px;
    transition: 0.25s;
    /*background-color: rgba(206, 197, 170, 0.85);*/
}

/*.portal-counterbtn {
    background: white;
    border-radius: var(--portal-radius);
    padding: 24px 30px;
    text-align: center;
    box-shadow: var(--portal-shadow);
    flex: 1 1 200px;
    min-width: 180px;
    transition: 0.25s;
    background-color: rgba(206, 197, 170, 0.85);
}*/

    .portal-counter:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    .portal-counter h2 {
        font-size: 2rem;
        margin: 0 0 8px;
        color: var(--portal-vino-oscuro);
    }

    .portal-counter p {
        font-size: 0.95rem;
        margin: 0;
        color: #666;
        font-weight: 500;
    }

/* Contenido principal */
.portal-content {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

/*.portal-section-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #3b3c36;
}*/

/* Cards de trámites */
.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portal-card {
    background: #eeeeee;
    border-radius: var(--portal-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 28px 24px;
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
}

    .portal-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, var(--portal-vino), var(--portal-dorado));
        border-radius: var(--portal-radius) var(--portal-radius) 0 0;
    }

    .portal-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        background-color: rgba(206, 197, 170, 0.85);
    }

.portal-card-icon {
    font-size: 2rem;
    color: var(--portal-vino);
    margin-bottom: 12px;
}

.portal-card h3 {
    font-size: 1.2rem;
    color: var(--portal-vino-oscuro);
    margin-bottom: 10px;
    font-weight: 600;
}

.portal-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/*.portal-card a {
    text-decoration: none;
    font-weight: 600;
    color: var(--portal-vino);
    font-size: 0.9rem;
    transition: 0.2s;
}

    .portal-card a:hover {
        color: var(--portal-dorado);
    }*/

/* Dependencias */
.portal-dep-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.portal-dep {
    background: white;
    border-radius: var(--portal-radius);
    padding: 14px 20px;
    font-weight: 600;
    color: #6D071A;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--portal-shadow);
    transition: 0.25s ease;
}

    .portal-dep:hover {
        background: #6D071A;
        color: white;
        transform: translateY(-3px);
    }


.icono-portal {
    width: auto;
    height: 64px;
    display: block;
    margin: auto;
    padding-bottom: .75rem;
    filter: brightness(0) saturate(100%) invert(12%) sepia(94%) saturate(747%) hue-rotate(330deg) brightness(89%) contrast(97%);
}

/*.icono-misDoc {
    width: auto;
    height: 64px;
    display: block;
    margin: auto;
    padding-bottom: .75rem;
}*/

.icono-misDoc {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.75rem auto; /* centrado + espacio inferior */

    background-color: rgba(163, 22, 33, 0.08); /* rojo leve y elegante */
    border-radius: 50%; /* 👈 círculo perfecto */

    filter: brightness(0) saturate(100%) invert(12%) sepia(94%) saturate(747%) hue-rotate(330deg) brightness(89%) contrast(97%);
    transition: all 0.2s ease-in-out;
}

    .icono-misDoc:hover {
        background-color: rgba(163, 22, 33, 0.15); /* un poco más visible al hover */
        transform: scale(1.05);
    }
