/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-uca: #003b5c;
    --azul-oscuro: #002b43;
    --azul-claro: #eaf3f7;

    --gris-fondo: #f5f7f9;
    --gris-borde: #dfe5e9;
    --gris-texto: #65727c;
    --gris-oscuro: #26343d;

    --blanco: #ffffff;

    --sombra:
        0 4px 15px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   BODY
========================================================= */

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--gris-fondo);

    color: var(--gris-oscuro);

    min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: var(--azul-uca);

    color: white;

    border-bottom:
        4px solid
        var(--azul-oscuro);
}


.header-container {
    width: 90%;
    max-width: 1200px;

    margin: auto;

    padding: 24px 0;
}


.brand {
    display: flex;

    align-items: center;

    gap: 16px;
}


.brand-icon {
    width: 48px;
    height: 48px;

    background: white;

    color: var(--azul-uca);

    border-radius: 6px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 24px;

    font-weight: bold;
}


.brand h1 {
    font-size: 23px;

    margin-bottom: 4px;
}


.brand p {
    font-size: 14px;

    opacity: 0.85;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.main-container {
    width: 90%;

    max-width: 1200px;

    margin: auto;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 55px 0 35px;
}


.eyebrow {
    display: inline-block;

    color: var(--azul-uca);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}


.hero h2 {
    font-size: 36px;

    color: var(--gris-oscuro);

    margin-bottom: 12px;
}


.hero p {
    color: var(--gris-texto);

    font-size: 16px;

    max-width: 700px;

    line-height: 1.6;
}


/* =========================================================
   CONTROLES
========================================================= */

.controls {
    background: white;

    border: 1px solid var(--gris-borde);

    border-radius: 8px;

    padding: 20px;

    margin-bottom: 35px;

    box-shadow: var(--sombra);
}


/* =========================================================
   BUSCADOR
========================================================= */

.search-box {
    display: flex;

    align-items: center;

    gap: 10px;

    border:
        1px solid
        var(--gris-borde);

    border-radius: 6px;

    padding: 0 14px;

    background: white;
}


.search-icon {
    font-size: 17px;
}


.search-box input {
    width: 100%;

    border: none;

    outline: none;

    padding: 14px 5px;

    font-size: 15px;

    background: transparent;
}


.search-box input::placeholder {
    color: #9aa5ac;
}


/* =========================================================
   FILTROS
========================================================= */

.filters {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 15px;
}


.filter-button {
    border: 1px solid var(--gris-borde);

    background: white;

    color: var(--gris-texto);

    padding: 8px 14px;

    border-radius: 20px;

    cursor: pointer;

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border 0.2s ease;
}


.filter-button:hover {
    border-color: var(--azul-uca);

    color: var(--azul-uca);
}


.filter-button.active {
    background: var(--azul-uca);

    border-color: var(--azul-uca);

    color: white;
}


/* =========================================================
   ENCABEZADO DEL DIRECTORIO
========================================================= */

.directory-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}


.directory-header h2 {
    font-size: 24px;

    margin-bottom: 5px;
}


.directory-header p {
    color: var(--gris-texto);

    font-size: 14px;
}


/* =========================================================
   GRID DE TARJETAS
========================================================= */

.cards-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(300px, 1fr)
        );

    gap: 20px;

    padding-bottom: 50px;
}


/* =========================================================
   TARJETA
========================================================= */

.distribution-card {
    background: white;

    border:
        1px solid
        var(--gris-borde);

    border-radius: 8px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow: var(--sombra);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.distribution-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.10);
}


/* =========================================================
   PARTE SUPERIOR DE TARJETA
========================================================= */

.card-top {
    padding: 15px 18px 0;
}


.category {
    display: inline-block;

    background: var(--azul-claro);

    color: var(--azul-uca);

    font-size: 11px;

    font-weight: bold;

    padding: 5px 9px;

    border-radius: 4px;
}


/* =========================================================
   CONTENIDO
========================================================= */

.card-content {
    padding: 15px 18px 20px;

    flex-grow: 1;
}


.card-content h3 {
    font-size: 18px;

    line-height: 1.35;

    margin-bottom: 10px;

    color: var(--gris-oscuro);
}


.description {
    color: var(--gris-texto);

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 18px;
}


/* =========================================================
   CORREO
========================================================= */

.email-container {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px;

    background: var(--gris-fondo);

    border-radius: 5px;
}


.email-icon {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    border-radius: 5px;

    font-size: 14px;
}


.email {
    font-size: 13px;

    font-weight: 600;

    color: var(--azul-uca);

    word-break: break-all;
}


/* =========================================================
   FOOTER DE TARJETA
========================================================= */

.card-footer {
    padding: 0 18px 18px;
}


.copy-button {
    width: 100%;

    border: 1px solid var(--azul-uca);

    background: white;

    color: var(--azul-uca);

    padding: 10px;

    border-radius: 5px;

    cursor: pointer;

    font-size: 13px;

    font-weight: bold;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.copy-button:hover {
    background: var(--azul-uca);

    color: white;
}


.copy-button.copied {
    background: #2e7d32;

    border-color: #2e7d32;

    color: white;
}


/* =========================================================
   SIN RESULTADOS
========================================================= */

.no-results {
    background: white;

    border: 1px solid var(--gris-borde);

    border-radius: 8px;

    padding: 50px 20px;

    text-align: center;

    margin-bottom: 50px;
}


.no-results h3 {
    margin-bottom: 8px;
}


.no-results p {
    color: var(--gris-texto);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--azul-oscuro);

    color: white;

    text-align: center;

    padding: 25px;

    font-size: 13px;

    opacity: 0.95;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .header-container,
    .main-container {
        width: 92%;
    }


    .hero {
        padding-top: 35px;
    }


    .hero h2 {
        font-size: 28px;
    }


    .cards-grid {
        grid-template-columns: 1fr;
    }


    .filters {
        flex-direction: column;
    }


    .filter-button {
        width: 100%;

        text-align: left;
    }

}