* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-left: 15px solid #ffffff;
    border-right: 15px solid #ffffff;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    padding: 0 15px;
    position: relative;
}

@font-face {
    font-family: 'AvenirRegular';
    src: url(../fonts/AvenirRegular.ttf) format('truetype');
}

/* =========================
   Título
========================= */

.title-box {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
    margin-bottom: 20px;
}

.title {
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    color: hsl(315, 63%, 39%);
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'AvenirRegular', Arial, sans-serif;
    letter-spacing: .2px;
}

.title-box::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: hsl(315, 63%, 39%);
    margin-top: 5px;
}

/* =========================
   Grid
========================= */

.partidosAcreditados {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 10px 5px 20px;
    align-items: stretch;
}

.partidosAcreditados .partido {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;

    padding: 16px 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);

    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-height: 100%;
}

.partidosAcreditados .partido:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    border-color: rgba(161, 0, 133, 0.20);
}

/* Título card */
.partidosAcreditados .partido h3 {
    font-family: 'AvenirRegular', Arial, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #111;
    margin: 4px 0 10px;
    line-height: 1.15;
}

/* Logo */
.partidosAcreditados .partido img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 6px 0 12px;
    border-radius: 10px;
    background: #fff;
}

/* Subtítulos dentro de card */
.partidosAcreditados .partido h2 {
    font-family: 'AvenirRegular', Arial, sans-serif;
    font-weight: 800;
    font-size: .95rem;
    margin: 6px 0 8px;
    color: hsl(315, 63%, 39%);
}

/* Texto de card */
.partidosAcreditados .partido p {
    font-family: 'AvenirRegular', Arial, sans-serif;
    font-size: .92rem;
    line-height: 1.35;
    margin: 4px 0;
    color: #1f2937;
}

.partidosAcreditados .partido .domicilio {
    color: hsl(346, 100%, 60%);
    font-weight: 700;
}

/* Link del domicilio */
.partidosAcreditados .partido a {
    text-decoration: none;
}

.partidosAcreditados .partido a:hover .domicilio {
    text-decoration: underline;
}

/* =========================
   Docs
========================= */

.partidosAcreditados .partido-docs {
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    text-align: left;
}

.partidosAcreditados .docs-title {
    font-family: 'AvenirRegular', Arial, sans-serif;
    font-weight: 800;
    font-size: .92rem;
    margin: 0 0 8px;
    color: #111;
}

.partidosAcreditados .docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.partidosAcreditados .docs-item {
    margin: 0;
}

.partidosAcreditados .docs-link {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid rgba(161, 0, 133, 0.20);
    background: rgba(161, 0, 133, 0.04);

    color: hsl(315, 63%, 39%);
    font-family: 'AvenirRegular', Arial, sans-serif;
    font-weight: 800;
    font-size: .88rem;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.partidosAcreditados .docs-link:hover {
    background: rgba(161, 0, 133, 0.08);
    border-color: rgba(161, 0, 133, 0.35);
    transform: translateY(-1px);
}

/* >= 576px: 2 columnas */
@media (min-width: 576px) {
    .partidosAcreditados {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 18px 10px 28px;
    }
}

/* >= 992px: 3 columnas */
@media (min-width: 992px) {
    .partidosAcreditados {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        padding: 26px 15px 36px;
    }

    .partidosAcreditados .partido {
        border-radius: 14px;
        padding: 20px 18px;
    }

    .partidosAcreditados .partido img {
        width: 150px;
        height: 150px;
    }

    .partidosAcreditados .partido h3 {
        font-size: 1.05rem;
    }

    .partidosAcreditados .partido p {
        font-size: .95rem;
    }
}