:root {
    --md-primary: #162A7A;
    --md-black: #000000;
    --md-bg: #F5F5F5;
    --md-white: #FFFFFF;
    --md-text: #1F2937;
    --md-border: #E5E7EB;
    --md-radius: 12px;
}

/* ==========================
   CALENDAR WIDGET DESIGN
========================== */
.md-calendar-box{
    max-height:330px;
}


.md-calendar-grid-days span{
    height:28px;
    font-size:12px;
}


.md-event-category{

    min-height:70px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}


.md-event-category p{

    margin-bottom:0;

}

.md-calendar-content{
    width:100%;
}


.md-calendar-content h2{

    font-size:22px;
    font-weight:700;
    color:#162A7A;
    margin-bottom:20px;

}



.md-calendar-box{

    background:#ffffff;

    border-radius:16px;

    overflow:hidden;

    border:1px solid #e8eaf0;

}



/* HEADER DEL CALENDARIO */

.md-calendar-header{

    background:#162A7A;

    color:white;

    padding:15px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}



.md-calendar-header strong{

    font-size:18px;

}



.md-calendar-header button{

    width:32px;

    height:32px;

    border-radius:50%;

    border:none;

    background:rgba(255,255,255,.2);

    color:white;

    font-size:22px;

    cursor:pointer;

    transition:.2s;

}



.md-calendar-header button:hover{

    background:white;

    color:#162A7A;

}



/* DIAS */

.md-calendar-days{

    display:grid;

    grid-template-columns:repeat(7,1fr);

    padding:15px 10px 5px;

    text-align:center;

}



.md-calendar-days span{

    font-size:11px;

    font-weight:700;

    color:#777;

}




/* NUMEROS */

.md-calendar-grid-days{

    display:grid;

    grid-template-columns:repeat(7,1fr);

    gap:5px;

    padding:10px 15px 20px;

}



.md-calendar-grid-days span{

    height:34px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:8px;

    font-size:13px;

    color:#333;

    cursor:pointer;

    transition:.2s;

}



.md-calendar-grid-days span:hover{

    background:#eef1ff;

    color:#162A7A;

}



.md-calendar-grid-days .active{

    background:#162A7A;

    color:white;

    font-weight:700;

}




/* UPCOMING EVENTS */

.md-upcoming-title{

    font-size:18px;

    margin-top:25px;

    margin-bottom:15px;

    color:#162A7A;

}



.md-event-categories{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:10px;

}



.md-event-category{

    background:#f5f6fb;

    border-radius:12px;

    padding:12px 5px;

    text-align:center;

    transition:.2s;

}



.md-event-category:hover{

    background:#162A7A;

    color:white;

}



.md-event-category span{

    font-size:22px;

}



.md-event-category p{

    margin-top:8px;

    font-size:12px;

    font-weight:700;

}
/* ==========================
   RESET
========================== */
.md-dashboard-layout{

    max-width:1500px;

    margin:auto;

    padding:30px;

    display:grid;

    grid-template-columns:
    1fr 1fr 1fr;

    gap:25px;

}


.md-hero,
.md-banner-widget,
.md-campaign-widget{

    grid-column:
    1 / -1;

}


.md-news-widget{

    grid-column:
    span 1;

}


.md-calendar-widget{

    grid-column:
    span 1;

}


.md-process-widget{

    grid-column:
    span 1;

}

/* ==========================
   NEW PROCESSES WIDGET
========================== */


.md-processes-content h2{

    font-size:22px;

    color:#162A7A;

    margin-bottom:20px;

}



.md-process-list{

    display:flex;

    flex-direction:column;

    gap:12px;

}




.md-process-item{

    display:flex;

    align-items:center;

    gap:15px;

    padding:14px;

    border-radius:14px;

    background:#f6f7fb;

    text-decoration:none;

    color:#1f2937;

    transition:.25s ease;

    border:1px solid transparent;

}



.md-process-item:hover{

    background:white;

    border-color:#162A7A;

    transform:translateX(5px);

}




.md-process-icon{

    width:45px;

    height:45px;

    border-radius:12px;

    background:#162A7A;

    color:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    flex-shrink:0;

}




.md-process-info h3{

    font-size:15px;

    margin:0 0 5px;

    color:#162A7A;

}



.md-process-info p{

    margin:0;

    font-size:12px;

    color:#666;

}
.md-quick-widget{

    grid-column:
    span 1;

}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.md-dashboard{
    background:#f4f6fb;
    min-height:100vh;
    font-family:Inter,Arial,sans-serif;
}

/* ==========================
HEADER
========================== */
.md-topbar{
    background:#fff;
    padding:20px 0;
}
.md-container{
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
}
.md-topbar-grid{

    display:grid;

    grid-template-columns:300px 1fr;

    gap:40px;

    align-items:center;

}
/* ==========================
   HERO SLIDER
========================== */


.md-hero{
    margin-top:25px;
}


.md-hero-slider{

    height:420px;
    position:relative;
    overflow:hidden;
    border-radius:18px;

}



.md-slide{

    position:absolute;

    inset:0;

    background-size:cover;

    background-position:center;

    opacity:0;

    transition:opacity .6s ease;

}



.md-slide.active{

    opacity:1;

}



.md-hero-overlay{

    width:100%;
    height:100%;

    background:
    linear-gradient(
        90deg,
        rgba(0,0,0,.75),
        rgba(0,0,0,.20)
    );


    display:flex;
    align-items:center;

}



.md-hero-content{

    color:white;

    width:50%;

    padding-left:60px;

}



.md-hero-content h2{

    font-size:42px;

    margin-bottom:25px;

}



.md-counter{

    font-size:45px;

    font-weight:800;

}



.md-hero-content p{

    font-size:18px;

    margin-top:10px;

}



.md-hero-content a{

    display:inline-block;

    margin-top:25px;

    color:white;

}



.md-slider-dots{

    position:absolute;

    bottom:20px;

    left:50%;

    transform:translateX(-50%);

}



.md-slider-dots span{

    display:inline-block;

    width:10px;

    height:10px;

    border-radius:50%;

    background:white;

    opacity:.5;

    margin:0 5px;

    cursor:pointer;

}



.md-slider-dots span.active{

    opacity:1;

}

/* ==========================
   SPORTS
========================== */


.md-sports{

    background:#f4f6fb;

}



.md-sports-grid{

    display:grid;

    grid-template-columns:
    repeat(5,1fr);

    gap:25px;

}



.md-sport-card{

    background:white;

    border-radius:18px;

    min-height:170px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:20px;

    text-decoration:none;

    color:#162A7A;

    font-weight:700;

    box-shadow:
    0 6px 20px rgba(0,0,0,.08);

    transition:.3s ease;

}



.md-sport-card:hover{

    transform:translateY(-7px);

}



.md-sport-card img{

    max-width:80px;

    max-height:80px;

    object-fit:contain;

}



.md-sport-card span{

    font-size:18px;

}



/* Responsive */

@media(max-width:1100px){


    .md-sports-grid{

        grid-template-columns:
        repeat(3,1fr);

    }


}



@media(max-width:700px){


    .md-sports-grid{

        grid-template-columns:
        repeat(2,1fr);

    }


}
footer{
    display:none;
}
.md-slider-dots span{

    width:10px;

    height:10px;

    border-radius:50%;

    display:inline-block;

    background:white;

    opacity:.4;

    margin:0 5px;

}

.md-slider-dots .active{

    opacity:1;

}
.md-hero{

    margin-top:20px;

}

.md-hero-card{

    position:relative;

    height:420px;

    border-radius:16px;

    overflow:hidden;

    background:url('../images/hero-placeholder.jpg') center center;

    background-size:cover;

}

.md-hero-overlay{

    width:100%;

    height:100%;

    background:linear-gradient(
        90deg,
        rgba(135,20,0,.80),
        rgba(255,120,20,.45)
    );

    display:flex;

    align-items:center;

}

.md-hero-content{

    width:45%;

    padding-left:60px;

    color:white;

}

.md-hero-content h2{

    font-size:42px;

    margin-bottom:25px;

}

.md-counter{

    font-size:46px;

    font-weight:bold;

    margin-bottom:20px;

}

.md-hero-content p{

    margin-bottom:10px;

    font-size:20px;

}

.md-hero-content a{

    display:inline-block;

    margin-top:20px;

    color:white;

    text-decoration:underline;

}

.md-slider-dots{

    position:absolute;

    bottom:20px;

    left:50%;

    transform:translateX(-50%);

}

.md-slider-dots span{

    width:10px;

    height:10px;

    border-radius:50%;

    display:inline-block;

    background:white;

    opacity:.4;

    margin:0 5px;

}

.md-slider-dots .active{

    opacity:1;

}
.md-upcoming{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:22px;

    font-weight:600;

    color:#222;

}

.md-icon{

    font-size:24px;

}
/* ==========================
   GENERAL SECTIONS
========================== */

.md-section{
    padding:50px 0;
}


.md-section h2{

    font-size:32px;
    color:#162A7A;
    margin-bottom:30px;
    font-weight:700;

}


/* ==========================
   CARDS
========================== */

.md-card-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}



.md-card{

    background:#fff;

    border-radius:16px;

    padding:25px;

    min-height:140px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

    transition:.3s ease;

}



.md-card:hover{

    transform:translateY(-5px);

    box-shadow:
    0 10px 25px rgba(0,0,0,.12);

}



.md-card h3{

    color:#162A7A;

    margin-bottom:15px;

}



.md-card p{

    color:#555;

    line-height:1.6;

}


/* ==========================
   NEWS
========================== */

/* ==========================
   NEWS
========================== */


.md-section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}



.md-section-header a{

    color:#162A7A;

    font-weight:700;

    text-decoration:none;

}




.md-news-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;

}




.md-news-card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);

    transition:.3s ease;

}




.md-news-card:hover{

    transform:translateY(-6px);

}




.md-news-image{

    height:180px;

    overflow:hidden;

}




.md-news-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}




.md-news-content{

    padding:25px;

}




.md-news-category{

    color:#162A7A;

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;

}




.md-news-content h3{

    margin:15px 0;

    font-size:22px;

}




.md-news-content p{

    color:#666;

    line-height:1.5;

}




.md-news-content a{

    display:inline-block;

    margin-top:20px;

    color:#162A7A;

    font-weight:700;

    text-decoration:none;

}





@media(max-width:1000px){


    .md-news-grid{

        grid-template-columns:
        repeat(2,1fr);

    }


}



@media(max-width:700px){


    .md-news-grid{

        grid-template-columns:1fr;

    }


}


/* ==========================
   CALENDAR
========================== */


.md-calendar .md-card{

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:18px;

    font-weight:600;

}



/* ==========================
   QUICK ACCESS
========================== */

/* ==========================
   QUICK ACCESS
========================== */


.md-access{

    background:#ffffff;

}



.md-access-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:25px;

}



.md-access-card{

    background:white;

    border-radius:20px;

    padding:35px 25px;

    text-align:center;

    text-decoration:none;

    color:#1f2937;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);

    transition:.3s ease;

    border:1px solid #eeeeee;

}



.md-access-card:hover{

    transform:translateY(-8px);

    box-shadow:
    0 15px 35px rgba(0,0,0,.15);

}



.md-access-icon{

    width:75px;

    height:75px;

    border-radius:50%;

    background:#162A7A;

    color:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:35px;

    margin:0 auto 20px;

}



.md-access-card h3{

    font-size:20px;

    color:#162A7A;

    margin-bottom:10px;

}



.md-access-card p{

    font-size:14px;

    color:#666;

}



/* Responsive */


@media(max-width:1000px){


    .md-access-grid{

        grid-template-columns:
        repeat(2,1fr);

    }


}



@media(max-width:600px){


    .md-access-grid{

        grid-template-columns:1fr;

    }


}



/* ==========================
   BANNERS
========================== */

.md-banner{

    background:#fff;

    min-height:180px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    font-weight:700;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

}



/* ==========================
   FOOTER
========================== */

.md-footer{

    background:#162A7A;

    color:white;

    padding:30px 0;

    text-align:center;

}



/* ==========================
   MOBILE
========================== */

@media(max-width:768px){


    .md-section{

        padding:30px 0;

    }


    .md-section h2{

        font-size:26px;

    }


}
.md-search{

    background:#000;

    border-radius:10px;

    padding:14px 20px;

    min-height:58px;

    display:flex;

    align-items:center;

}
.md-header{

    background:#203A8F;

    color:#fff;

    height:72px;

    display:flex;

    align-items:center;

}

.md-container{

    width:95%;

    max-width:1500px;

    margin:auto;

}
.md-topbar{

    background:white;

    padding:35px 0;

}

.md-topbar .md-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;

}

.md-topbar__left{

    flex:1;

}

.md-topbar__right{

    flex:2;

}

.md-topbar h2{

    font-size:42px;

    color:#1d2b87;

    font-weight:700;

}

.md-header .md-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.md-header h1{

    font-size:20px;

    font-weight:600;

}

.md-header span{

    font-size:16px;

}

.md-dashboard {
    background: var(--md-bg);
    padding: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--md-text);
}

.md-dashboard__header {
    background: var(--md-primary);
    color: var(--md-white);
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.md-dashboard__topbar {
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: center;
}

.md-dashboard__upcoming {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.md-dashboard__upcoming-icon {
    font-size: 1.1rem;
}

.md-dashboard__search {
    background: var(--md-black);
    border-radius: var(--md-radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.md-dashboard__search-label {
    color: var(--md-white);
    font-weight: 700;
    white-space: nowrap;
}

.md-dashboard__search-box {
    flex: 1;
}

/* Echo KB search input */
.md-dashboard__search-box input[type="search"],
.md-dashboard__search-box input[type="text"] {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: none;
    padding: 0 16px;
    font-size: 1rem;
    background: var(--md-white);
}

.md-dashboard__search-box button {
    border-radius: 10px;
}

@media (max-width: 900px) {
    .md-dashboard__topbar {
        grid-template-columns: 1fr;
    }

    .md-dashboard__search {
        flex-direction: column;
        align-items: stretch;
    }

    .md-dashboard__search-label {
        white-space: normal;
    }
}