﻿/* RESET Y CONFIGURACIÓN GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* TOP BAR */
.top-bar {
    background-color: #1a1a1a;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

    .top-bar a {
        color: white;
        text-decoration: none;
        transition: opacity 0.3s;
    }

        .top-bar a:hover {
            opacity: 0.8;
        }

/* NAVBAR */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* HERO CAROUSEL - FULL WIDTH */
#heroCarousel {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        height: 500px;
        width: 100%;
    }

        #heroCarousel .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

/* Ajustar caption del carrusel */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 20%;
}

    .carousel-caption h1 {
        font-size: 3rem;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .carousel-caption p {
        font-size: 1.2rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

/* Eliminar bordes redondeados del carrusel */
.carousel,
.carousel-inner,
.carousel-item {
    border-radius: 0 !important;
}

/* CONTADORES */
.counter-section {
    width: 100%;
    margin: 0;
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    display: inline-block;
}

.counter-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* CARDS */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        height: 350px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .counter {
        font-size: 2rem;
    }

    .top-bar {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item {
        height: 250px;
    }

    .carousel-caption {
        padding: 10px;
    }

        .carousel-caption h1 {
            font-size: 1.2rem;
        /*}*/

        .carousel-caption p {
            font-size: 0.7rem;
        }

    .counter {
        font-size: 1.5rem;
    }
}

/* MAIN CONTENT - Ajustes para que el contenido normal tenga padding */
#main_Content {
    padding: 0;
    margin: 0;
}

/* Asegurar que Eventos.aspx y otras páginas mantengan su container */
.eventos-section,
.registro-section {
    padding: 20px 0;
}

/* FOOTER */
footer {
    margin-top: 2rem !important;
}


/******* LOGIN ********/

.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    max-width: 450px;
    width: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

    .login-header i {
        font-size: 60px;
        margin-bottom: 15px;
    }

    .login-header h3 {
        margin: 0;
        font-weight: 600;
    }

    .login-header p {
        margin: 10px 0 0;
        opacity: 0.9;
    }

.login-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
        display: block;
    }

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control {
    border-left: none;
}

    .form-control:focus {
        border-color: #2a5298;
        box-shadow: none;
    }

.btn-login {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: transform 0.2s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    }

.alert-danger {
    border-radius: 10px;
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

    .login-footer a {
        color: #2a5298;
        text-decoration: none;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.input-group {
    position: relative;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        margin: 20px;
    }

    .login-header {
        padding: 20px;
    }

    .login-body {
        padding: 20px;
    }
}

/******* LOGIN ********/