/* ===============================
   FONTS
================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Capitanejo';
    src: url('/static/fonts/Capitanejo-Regular.woff2') format('woff2');
}


/* ===============================
   VARIABLES CORPORATIVAS
================================ */

:root {

    /* COLORES PRINCIPALES */
    --color-primary: #002B83;
    --color-primary-light: #0A4BFF;
    --color-primary-dark: #001B52;

    /* COLOR BASE */
    --color-bg: #F8F2E4; /* Blanco Capitanejo */

    /* ACENTOS */
    --color-gold: #F5B301;
    --color-green: #16a34a;
    --color-red: #dc2626;

    /* TEXTOS */
    --color-text: #111827;
    --color-muted: #6b7280;

    /* SUPERFICIES */
    --surface: rgba(255,255,255,0.72);
    --surface-strong: rgba(255,255,255,0.92);

    /* BORDES */
    --border: rgba(0,43,131,0.08);

    /* SIDEBAR */
    --color-sidebar: #002B83;
    --color-sidebar-hover: #001f5c;

    /* EFECTOS */
    --blur: blur(12px);

    /* SOMBRAS */
    --shadow-sm:
        0 4px 10px rgba(0,0,0,.05);

    --shadow:
        0 10px 30px rgba(0,0,0,.08);

    --shadow-primary:
        0 10px 25px rgba(0,43,131,.18);

    --shadow-gold:
        0 10px 20px rgba(245,179,1,.18);

    /* TIPOGRAFÍAS */
    --font-title: 'Capitanejo', serif;
    --font-body: 'Libre Franklin', sans-serif;

    /* BORDER RADIUS */
    --radius: 20px;
}

/* ===============================
   CONTENEDOR GENERAL
================================ */

.reglamento-container{
    width: min(1200px, 92%);
    margin: 40px auto 80px;
}


/* ===============================
   HERO
================================ */

.reglamento-hero{
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--color-primary-dark),
            var(--color-primary-light)
        );

    border-radius: 32px;

    padding: 50px 45px;

    box-shadow: var(--shadow-primary);

    margin-bottom: 35px;
}

.hero-content{
    position: relative;
    z-index: 2;
}

.reglamento-hero h1{
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    color: white;

    margin-bottom: 14px;
    line-height: 1;
}

.reglamento-hero p{
    font-family: var(--font-body);
    font-size: 1.08rem;
    color: rgba(255,255,255,.86);

    max-width: 700px;
    line-height: 1.6;
}

.hero-circle{
    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.08);

    right: -60px;
    top: -60px;
}


/* ===============================
   CARDS
================================ */

.card-reglamento{
    background: var(--surface);

    backdrop-filter: var(--blur);

    border: 1px solid var(--border);

    border-radius: 28px;

    padding: 35px;

    box-shadow: var(--shadow);

    margin-bottom: 28px;
}


/* ===============================
   HEADERS SECCIONES
================================ */

.section-header{
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
}

.dot{
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--color-gold);

    box-shadow:
        0 0 10px rgba(245,179,1,.5);
}

.section-header h2{
    font-family: var(--font-title);
    font-size: 2rem;

    color: var(--color-primary);
}

.section-description{
    color: var(--color-muted);
    line-height: 1.7;

    margin-bottom: 28px;
}

.card-reglamento p{
    font-family: var(--font-body);
    color: var(--color-text);

    line-height: 1.8;
}


/* ===============================
   SISTEMA DE PUNTOS
================================ */

.points-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 22px;
}

.rule-card{
    position: relative;

    border-radius: 24px;

    padding: 28px;

    overflow: hidden;

    transition: .25s ease;
}

.rule-card:hover{
    transform: translateY(-4px);
}

.rule-card h3{
    font-family: var(--font-title);
    font-size: 1.5rem;

    margin-bottom: 14px;
}

.rule-card p{
    font-size: .96rem;
    line-height: 1.7;
}

.rule-points{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 88px;
    height: 38px;

    border-radius: 999px;

    font-weight: 800;
    font-size: .9rem;

    margin-bottom: 18px;
}

.example-box{
    margin-top: 20px;

    background: rgba(255,255,255,.6);

    border-radius: 16px;

    padding: 14px;

    font-size: .88rem;
    line-height: 1.6;

    color: var(--color-muted);
}


/* GOLD */

.rule-card.gold{
    background:
        linear-gradient(
            180deg,
            rgba(245,179,1,.15),
            rgba(245,179,1,.05)
        );

    border: 1px solid rgba(245,179,1,.25);
}

.rule-card.gold .rule-points{
    background: var(--color-gold);
    color: #fff;
}


/* BLUE */

.rule-card.blue{
    background:
        linear-gradient(
            180deg,
            rgba(10,75,255,.12),
            rgba(10,75,255,.04)
        );

    border: 1px solid rgba(10,75,255,.15);
}

.rule-card.blue .rule-points{
    background: var(--color-primary-light);
    color: white;
}


/* SILVER */

.rule-card.silver{
    background:
        linear-gradient(
            180deg,
            rgba(148,163,184,.15),
            rgba(148,163,184,.05)
        );

    border: 1px solid rgba(148,163,184,.2);
}

.rule-card.silver .rule-points{
    background: #cbd5e1;
    color: #334155;
}


/* DARK */

.rule-card.dark{
    background:
        linear-gradient(
            180deg,
            rgba(17,24,39,.08),
            rgba(17,24,39,.03)
        );

    border: 1px solid rgba(17,24,39,.08);
}

.rule-card.dark .rule-points{
    background: #111827;
    color: white;
}


/* ===============================
   ALERTA / IMPORTANTE
================================ */

.warning-card{
    border:
        1px solid rgba(245,179,1,.18);
}

.important-note{
    margin-top: 24px;

    background:
        rgba(245,179,1,.08);

    border:
        1px solid rgba(245,179,1,.18);

    border-radius: 22px;

    padding: 22px;
}

.important-note strong{
    display: block;

    color: #a16207;

    margin-bottom: 12px;
}

.important-note p{
    color: #7c5a10;
}


/* ===============================
   PREMIOS
================================ */

.premios-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 24px;

    margin-top: 30px;
}

.premio-card{
    position: relative;

    border-radius: 26px;

    padding: 32px;

    text-align: center;

    overflow: hidden;

    transition: .25s ease;
}

.premio-card:hover{
    transform: translateY(-4px);
}

.position{
    display: inline-block;

    margin-bottom: 14px;

    font-weight: 700;
    font-size: .95rem;
}

.premio-card h3{
    font-family: var(--font-title);
    font-size: 2.2rem;
}


/* FIRST */

.premio-card.first{
    background:
        linear-gradient(
            180deg,
            rgba(245,179,1,.18),
            rgba(245,179,1,.05)
        );

    border:
        1px solid rgba(245,179,1,.25);

    box-shadow: var(--shadow-gold);
}

.premio-card.first h3{
    color: #a16207;
}


/* SECOND */

.premio-card.second{
    background:
        linear-gradient(
            180deg,
            rgba(203,213,225,.25),
            rgba(203,213,225,.06)
        );

    border:
        1px solid rgba(203,213,225,.3);
}

.premio-card.second h3{
    color: #475569;
}


/* THIRD */

.premio-card.third{
    background:
        linear-gradient(
            180deg,
            rgba(180,83,9,.14),
            rgba(180,83,9,.04)
        );

    border:
        1px solid rgba(180,83,9,.18);
}

.premio-card.third h3{
    color: #92400e;
}


/* ===============================
   LISTAS
================================ */

.rules-list{
    display: flex;
    flex-direction: column;
    gap: 16px;

    padding-left: 20px;
}

.rules-list li{
    color: var(--color-text);

    line-height: 1.7;
}


/* ===============================
   FOOTER
================================ */

.reglamento-footer{
    text-align: center;

    margin-top: 45px;
}

.reglamento-footer p{
    color: var(--color-muted);
    font-size: .92rem;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px){

    .reglamento-hero{
        padding: 40px 28px;
    }

    .card-reglamento{
        padding: 26px;
    }

    .section-header h2{
        font-size: 1.6rem;
    }

    .rule-card{
        padding: 24px;
    }

    .premio-card h3{
        font-size: 1.8rem;
    }

}










/* ===============================
   PARTICIPANTES
================================ */

.participants-card {
    border: 1px solid rgba(0,43,131,.12);
    background:
        linear-gradient(
            135deg,
            rgba(0,43,131,.06),
            rgba(255,255,255,.78)
        );
}

.participants-content {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    align-items: flex-start;
}

.participants-icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-primary-light)
        );

    color: white;
    font-size: 28px;

    box-shadow: var(--shadow-primary);
}

.participants-content h3 {
    font-family: var(--font-title);
    font-size: 1.7rem;
    color: var(--color-primary);

    margin-bottom: 12px;
}

.participants-content p + p {
    margin-top: 10px;
}


/* ===============================
   TÉRMINOS
================================ */

.terms-card {
    border: 1px solid rgba(0,43,131,.12);
}

.terms-list {
    margin-top: 18px;
}

.terms-list li {
    padding-left: 4px;
}


/* ===============================
   MODAL - SECCIONES INTERNAS
================================ */

.modal-section {
    padding: 20px;
    margin-bottom: 18px;

    border-radius: 18px;
    border: 1px solid rgba(0,43,131,.10);

    background: rgba(255,255,255,.72);
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 12px;

    font-family: var(--font-title);
    font-size: 1.35rem;

    color: var(--color-primary);
}

.modal-section h3 i {
    color: var(--color-gold);
}

.modal-section p {
    margin: 0 0 12px;
}

.modal-section p:last-child {
    margin-bottom: 0;
}

.modal-section--highlight {
    background:
        linear-gradient(
            135deg,
            rgba(0,43,131,.08),
            rgba(255,255,255,.78)
        );

    border-color: rgba(0,43,131,.16);
}

.modal-section--terms {
    background:
        linear-gradient(
            135deg,
            rgba(245,179,1,.10),
            rgba(255,255,255,.78)
        );

    border-color: rgba(245,179,1,.22);
}

.modal-terms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin: 0;
    padding-left: 20px;
}

.modal-terms-list li {
    color: var(--color-text);
    line-height: 1.65;
    font-family: var(--font-body);
}


/* ===============================
   RESPONSIVE PARTICIPANTES
================================ */

@media (max-width: 768px) {

    .participants-content {
        grid-template-columns: 1fr;
    }

    .participants-icon {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }

    .participants-content h3 {
        font-size: 1.45rem;
    }

    .modal-section {
        padding: 16px;
    }

    .modal-section h3 {
        font-size: 1.18rem;
    }

}