:root{
    --green-primary: #34A853;
    --green-secondary: #1A542A;
    --green-dark: #0D2A15;
    --red-primary: #6B1E11;
    --light: #F5F3EB;
    --white: #FFFFFF;

    --text-main: rgba(255,255,255,0.96);
    --text-soft: rgba(245,243,235,0.82);
    --text-muted: rgba(245,243,235,0.72);

    --glass: rgba(255,255,255,0.08);
    --glass-strong: rgba(255,255,255,0.12);
    --border: rgba(255,255,255,0.12);

    --shadow-main: 0 25px 80px rgba(0, 0, 0, 0.22);
    --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.12);

    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --container: 1180px;
    --transition: .25s ease;
}

*,
*::before,
*::after{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

html,
body{
    min-height: 100%;
}

body{
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 10% 10%, rgba(52,168,83,.20), transparent 18%),
        radial-gradient(circle at 85% 18%, rgba(255,255,255,.08), transparent 12%),
        radial-gradient(circle at 88% 88%, rgba(107,30,17,.18), transparent 18%),
        linear-gradient(135deg, var(--green-dark) 0%, var(--green-secondary) 48%, #244f31 100%);
    overflow-x: hidden;
}

img{
    max-width: 100%;
    height: auto;
    display: block;
}

a{
    text-decoration: none;
}

.page{
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.page::before{
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    filter: blur(4px);
    pointer-events: none;
}

.page::after{
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(107,30,17,0.10);
    filter: blur(18px);
    pointer-events: none;
}

.tree-mark{
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 420px;
    opacity: .07;
    pointer-events: none;
}

.tree-mark::before{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 250px;
    background: var(--light);
    border-radius: 50px;
}

.tree-mark::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: var(--light);
    border-radius: 50%;
}

.card{
    width: min(var(--container), 100%);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
}

.card::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 18%),
        linear-gradient(90deg, rgba(255,255,255,0.02), transparent 45%);
    pointer-events: none;
}

.card::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--green-primary), var(--red-primary), var(--green-primary));
    opacity: .95;
}

.content{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 34px;
    padding: 46px;
}

.left{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logos{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.logos img{
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.15));
    background: transparent;
}

.logo-colegio{
    width: 84px;
    height: 84px;
}

.logo-escuela{
    width: 78px;
    height: 78px;
    border-radius: 14px;
    background: rgba(255,255,255,0.94);
    padding: 8px;
}

.badge{
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(52,168,83,0.16);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--light);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1{
    margin: 0 0 24px;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -0.05em;
    max-width: 10ch;
    color: var(--white);
}

.description{
    max-width: 62ch;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-soft);
    margin: 0 0 32px;
}

.info-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 700px;
}

.info-box{
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
}

.info-box span{
    display: block;
    margin-bottom: 8px;
    font-size: .80rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(245,243,235,.74);
}

.info-box strong{
    display: block;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--white);
}

.bottom-note{
    margin-top: 28px;
    font-size: .95rem;
    color: var(--text-muted);
}

.right{
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight{
    width: 100%;
    max-width: 420px;
    padding: 34px 28px 30px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)),
        linear-gradient(180deg, rgba(107,30,17,0.10), rgba(107,30,17,0.02));
    border: 1px solid rgba(255,255,255,0.10);
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.highlight::before{
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(107,30,17,0.12);
}

.highlight::after{
    content: "";
    position: absolute;
    left: -30px;
    bottom: -55px;
    width: 120%;
    height: 110px;
    background: rgba(52,168,83,0.92);
    border-radius: 55% 45% 0 0 / 100% 100% 0 0;
}

.seal{
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.seal img{
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.highlight h2{
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--white);
}

.highlight p{
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(245,243,235,.92);
}

.pill{
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--light);
    color: var(--red-primary);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .03em;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    margin-bottom: 22px;
}

.reglamento-box{
    position: relative;
    z-index: 1;
    margin-top: 4px;
    text-align: center;
}

.reglamento-text{
    margin: 0 0 12px;
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(245,243,235,.88);
}

.reglamento-btn{
    display: inline-block;
    transition: transform var(--transition), filter var(--transition), opacity var(--transition);
}

.reglamento-btn:hover{
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.05);
}

.reglamento-btn:focus-visible{
    outline: 2px solid var(--light);
    outline-offset: 4px;
    border-radius: 14px;
}

.reglamento-btn img{
    width: 150px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

@media (max-width: 1100px){
    .content{
        grid-template-columns: 1fr;
        gap: 24px;
    }

    h1{
        max-width: none;
    }

    .right{
        justify-content: flex-start;
    }

    .highlight{
        max-width: 100%;
    }
}

@media (max-width: 768px){
    .page{
        padding: 16px;
    }

    .content{
        padding: 28px 20px;
    }

    .logo-colegio{
        width: 72px;
        height: 72px;
    }

    .logo-escuela{
        width: 68px;
        height: 68px;
    }

    .description{
        font-size: 1rem;
        line-height: 1.7;
    }

    .info-grid{
        grid-template-columns: 1fr;
    }

    .tree-mark{
        display: none;
    }

    .highlight{
        padding: 28px 20px 26px;
    }

    .highlight::after{
        height: 90px;
    }
}

@media (max-width: 480px){
    h1{
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .badge{
        font-size: .80rem;
        padding: 9px 14px;
    }

    .highlight{
        border-radius: 22px;
    }

    .highlight h2{
        font-size: 1.95rem;
    }

    .highlight p{
        font-size: .95rem;
    }

    .pill{
        width: 100%;
        text-align: center;
    }

    .reglamento-btn img{
        width: 130px;
    }
}