/* =====================================================
   CAPORALES CRISTOS
   Diseño moderno - Marrón / Rojo / Dorado
===================================================== */

:root {
    --cristo-brown: #4a1f18;
    --brown-dark: #2b100d;
    --brown-light: #7a3829;
    --red: #a32620;
    --red-dark: #711713;
    --terracotta: #b9573e;
    --gold: #d59b3b;
    --cream: #fff8ef;
    --white: #ffffff;
    --text: #3b2823;
}


/* ===============================
   GENERAL
================================ */

.caporales-cristos {
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow: hidden;
}

.container-cristos {
    width: min(1150px, 92%);
    margin: auto;
}


/* ===============================
   HEADER
================================ */

.caporales-header {
    min-height: 520px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;

    background:
        linear-gradient(
            rgba(43, 16, 13, .88),
            rgba(74, 31, 24, .90)
        ),
        url("../img/caporales-cristos.jpg") center/cover;

    color: white;
}

.caporales-header::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(213,155,59,.22),
            transparent 55%
        );
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 20px;
}

.subtitle {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 4px;
    color: #f1c875;
    margin-bottom: 22px;
}

.header-content h1 {
    font-size: clamp(35px, 6vw, 75px);
    line-height: 1.05;
    font-weight: 300;
    margin: 0;
}

.header-content h1 strong {
    display: block;
    color: #f0b94e;
    font-weight: 800;
}

.header-content p {
    max-width: 720px;
    margin: 25px auto;
    font-size: 16px;
    line-height: 1.8;
    color: #f9e9dd;
}

.header-line {
    width: 90px;
    height: 4px;
    margin: 30px auto 0;
    background: var(--gold);
    border-radius: 10px;
}


/* ===============================
   TITULOS
================================ */

.section-title {
    text-align: center;
    padding: 85px 0 45px;
}

.section-title span,
.mini-title {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-title h2 {
    font-family: Georgia, serif;
    color: var(--cristo-brown);
    font-size: clamp(32px, 5vw, 48px);
    margin: 8px 0 15px;
}

.title-line {
    width: 65px;
    height: 3px;
    margin: auto;
    background: var(--gold);
}


/* ===============================
   HISTORIA
================================ */

.history-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 70px;
    align-items: center;
}

.history-text p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.history-text strong {
    color: var(--red);
}


/* ===============================
   FECHA FUNDACIÓN
================================ */

.history-badge {
    position: relative;
    padding: 55px 30px;
    text-align: center;
    color: white;

    background:
        linear-gradient(
            145deg,
            var(--cristo-brown),
            var(--red-dark)
        );

    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(74,31,24,.25);
}

.history-badge::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(213,155,59,.5);
    border-radius: 12px;
    pointer-events: none;
}

.cross-symbol {
    color: var(--gold);
    font-size: 35px;
    margin-bottom: 10px;
}

.history-badge span {
    display: block;
    letter-spacing: 4px;
    font-size: 11px;
}

.history-badge strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    color: #f0bd59;
}

.history-badge b {
    font-size: 18px;
    letter-spacing: 5px;
}

.history-badge small {
    display: block;
    margin-top: 15px;
    opacity: .8;
}


/* ===============================
   LOGROS
================================ */

.achievements-title {
    padding-bottom: 35px;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.achievement-card {
    display: flex;
    gap: 18px;
    align-items: center;

    padding: 25px 20px;

    background: white;
    border-radius: 14px;

    border-bottom: 4px solid var(--red);

    box-shadow: 0 10px 30px rgba(74,31,24,.08);

    transition: .3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(74,31,24,.18);
}

.achievement-number {
    min-width: 58px;
    height: 58px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: var(--cristo-brown);
    color: var(--gold);

    font-size: 22px;
    font-weight: 800;
}

.achievement-card h3 {
    margin: 0;
    font-size: 13px;
    color: var(--red);
}

.achievement-card p {
    margin: 5px 0;
    font-size: 11px;
    line-height: 1.5;
}

.achievement-card span {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
}


/* ===============================
   FILIALES
================================ */

.branches {
    margin-top: 90px;
    padding: 70px;

    border-radius: 25px;

    color: white;

    background:
        linear-gradient(
            120deg,
            rgba(74,31,24,.97),
            rgba(163,38,32,.94)
        );
}

.branch-content {
    max-width: 800px;
}

.branch-content h2 {
    font-family: Georgia, serif;
    font-size: 42px;
    margin: 10px 0;
}

.branch-content p {
    line-height: 1.8;
    color: #f8dfd5;
}

.cities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.cities div {
    padding: 11px 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
}

.cities i {
    color: var(--gold);
    margin-right: 7px;
}


/* ===============================
   PRESIDENTES
================================ */

.presidents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.president {
    position: relative;

    padding: 25px;

    background: white;

    border-left: 5px solid var(--brown-light);

    border-radius: 8px;

    box-shadow: 0 8px 25px rgba(74,31,24,.08);

    transition: .3s;
}

.president:hover {
    transform: translateX(6px);
}

.president span {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.president h3 {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--cristo-brown);
}

.president.active {
    background: var(--cristo-brown);
    border-color: var(--gold);
}

.president.active h3,
.president.active span {
    color: white;
}

.president.active span {
    color: var(--gold);
}


/* ===============================
   MISIÓN / OBJETIVO
================================ */

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 85px;
}

.mission-card {
    padding: 45px;

    background: white;

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(74,31,24,.09);

    border-top: 5px solid var(--red);

    transition: .3s;
}

.mission-card:hover {
    transform: translateY(-7px);
}

.mission-card.objective {
    border-top-color: var(--gold);
}

.card-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--cristo-brown);
    color: var(--gold);

    font-size: 22px;

    margin-bottom: 25px;
}

.mission-card span {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--red);
}

.mission-card h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    color: var(--cristo-brown);
    margin: 10px 0 15px;
}

.mission-card p {
    line-height: 1.8;
    font-size: 14px;
}


/* ===============================
   FRASE FINAL
================================ */

.final-message {
    position: relative;
    margin: 90px 0 0;
    padding: 80px 20px;

    text-align: center;

    background: var(--brown-dark);
    color: white;

    border-radius: 25px 25px 0 0;
}

.quote-symbol {
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: .5;
    color: var(--gold);
}

.final-message h2 {
    font-family: Georgia, serif;
    font-size: clamp(25px, 4vw, 40px);
    font-weight: 400;
}

.final-message p {
    font-size: 22px;
    color: #efbd5a;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 992px) {

    .history-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .history-badge {
        max-width: 350px;
        margin: auto;
    }

    .achievements {
        grid-template-columns: repeat(2, 1fr);
    }

    .presidents {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .caporales-header {
        min-height: 470px;
    }

    .subtitle {
        letter-spacing: 2px;
    }

    .history-grid,
    .achievements,
    .presidents,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        padding-top: 60px;
    }

    .branches {
        padding: 40px 25px;
        margin-top: 60px;
    }

    .branch-content h2 {
        font-size: 32px;
    }

    .cities {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cities div {
        text-align: center;
    }

    .mission-card {
        padding: 30px;
    }

    .final-message {
        margin-top: 60px;
        padding: 65px 20px;
    }

}