.container {
    max-width: 1280px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}
    /* SERVICIOS */

    .servicesvig{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: left;
    }

    .servicevig{
        width: 100%;
        max-width: 30rem;
        min-height: 16rem;
        margin: 1rem 1rem;
        background: #ecfffe;
        border: 1px solid #ccc;
        color: black;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
        position: relative;
    }

    .servicevig .title-2{
        font-size: 2rem;
    }

    .servicevig:hover{
        transform: scale(1.05);
        background-color: rgb(73, 168, 164);
        border: 2px solid #8f8f8f;
        cursor: pointer;
    }

    .servicios-info ul{
        list-style: none;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        box-shadow: 0 4px 6px rgb(0, 0, 0, 0.08);
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
        margin: 1rem -2rem;
        gap: 0.5rem;
    }

    @media (max-width: 1050px)
    {
        .servicios-info ul{
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
    }

    .servicios-info li{
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-weight: bold;
        justify-content: space-between;
        background-color:rgb(131, 190, 190);
        color: rgb(248, 248, 248);
        width: 15rem;
        max-width: 15rem;
        min-height: 5rem;
        text-align: center;
        border-radius: 10px;
    }

    .servicios-info li:hover{
        background-color:rgb(61, 112, 112);
    }

    .servicios-info ul p{
        padding-left: 1rem;
    }

    .servicios-info-i-div{
        min-width: 2rem;
    }

    .servicios-info i{
        font-size: 2rem;
    }

    .descripcion{
        color: #686868;
    }

    .available {
        color: rgb(0, 122, 0);
    }
    .unavailable {
        color: rgb(255, 0, 0);
    }

    /* BARRA DE BUSQUEDA */

    .title-search-bar{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: first baseline;
        border-bottom: 1px solid #ccc;
        box-shadow: 0 4px 6px rgb(0, 0, 0, 0.08);
        padding-bottom: 2rem;
    }

    @media (max-width: 1050px)
    {
        .title-search-bar{
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .infomMostrar ul{
            display: flex;
            flex-direction: column;
        }
    }

    #busqueda{
        display: block;
        width: 20rem;
        max-width: 25rem;
        margin-right: 4.5rem;
        height: 3rem;
        max-height: 5rem;
        border: 1px solid #ccc;
        border-radius: 20px;
        background: rgb(255, 255, 255);
        text-align: center;
        color: rgb(24, 24, 24);
        font-size: large;
    }

    .search-bar{
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    .search-bar p{
        text-align: center;
        margin: 0;
    }

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.header p {
    color: #475569;
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.carta {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.08), 0 3px 5px -2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 300px;
    position: relative;
}

.carta:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.card-header {
    position: relative;
    height: 6rem; /* 🔹 antes 8rem */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 15px;
}

.card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
}

/* EMPRENDIMIENTOS */
.card-header-emp {
    position: relative;
    height: 6rem; /* 🔹 antes 8rem */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 15px;
}
.card-header-emp::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
}

.icon-container {
    position: relative;
    z-index: 0.5;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.icon-container i {
    font-size: 2rem; /* 🔹 antes 2.5rem */
}

.card-body {
    padding: 1rem; /* 🔹 antes 1.5rem */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem; /* 🔹 antes 1.25rem */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge i {
    font-size: 0.8rem;
}

.card-description {
    color: #475569;
    line-height: 1.5;
    font-size: 16px;
    flex-grow: 1;
}

/* Card - Teal */
.card-teal .card-header {
    background: linear-gradient(to bottom right, #0d9488, #0f766e);
}

/* EMPRENDIMIENTO */
.card-teal .card-header-emp {
    background: linear-gradient(to bottom right, #facf40, #e6872f);
}

.card-tag{
    color: rgb(255, 129, 12);
    font-size: 0.8rem;
    border-radius: 4px;
    padding: 0 1rem;
    position: absolute;
    right: 0;
    bottom: 0;
}

.card-tag-date{
    color: rgb(255, 12, 12);
    font-size: 0.8rem;
    border-radius: 4px;
    padding: 0 1rem;
    position: absolute;
    left: 0;
    bottom: 0;
}

.card-teal .badge {
    background: linear-gradient(to right, #f0fdfa, #ccfbf1);
    border: 1px solid rgba(20, 184, 166, 0.5);
    color: #0f766e;
}

.card-teal .badge i {
    color: #0d9488;
}
.tramitadores-disponibles.verde {
    color: green;
}

.tramitadores-disponibles.rojo {
    color: red;
}

.body-blur {
  overflow: hidden; /* Bloquea scroll */
}

.body-blur::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.3); /* opcional, oscurece un poco */
    z-index: 998; /* debajo del popup */
}

/* Resaltado temporal cuando el buscador encuentra la tarjeta */
.resaltado {
    box-shadow: 0 8px 30px rgba(0, 255, 34, 0.664);
    transform: translateY(-4px);
    transition: all 0.25s ease;
    border-radius: 5px;
    }
/* --- Fondo oscuro del popup --- */
/* --- Fondo oscuro del popup --- */
/* Fondo del popup */
.contenedorpp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Estado visible */
.contenedorpp.mostrar {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Caja principal del popup */
.popupgracias {
    width: 400px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 40px 30px;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-10px);
    animation: slideIn 0.3s ease forwards;
}

/* Animación suave al aparecer */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Imagen superior */
.popupgraciasimg {
    height: 100px;
    width: 100px;
    margin-top: -60px;
}

/* Texto principal */
.popupgracias h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 10px;
}

.popupgracias p {
    font-size: 16px;
    color: #444;
}

/* Botón */
.popupgracias button {
    margin-top: 30px;
    padding: 10px 40px;
    background: rgb(12, 77, 97);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.popupgracias button:hover {
    background: rgb(8, 60, 75);
    transform: scale(1.03);
}
