/* CSS Document - EduFuturo Uruguay (Código Final y Corregido) */
@import url('https://fonts.googleapis.com/css?family=Lato:700|Open+Sans:400,600,700');

/* =========================================
   1. ESTILOS GLOBALES
   ========================================= */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    color: #6f6f6f;
    font-size: 14px;
    position: relative;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #333333;
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

a:hover {
    text-decoration: none;
    color: #cd2122;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Clases de utilidad */
.p-color { color: #cd2122; }
.p-color-bg { background: #cd2122; }
.float-left { float: left; }
.float-right { float: right; }
.clear-fix:after { display: table; content: ''; clear: both; }
.tran3s { transition: all 0.3s ease-in-out; }
.round-border { border-radius: 50%; }

/* Contenedor principal */
.container {
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* =========================================
   2. HEADER & NAV (ESTILOS DE ESCRITORIO)
   ========================================= */
header.main-header {
    width: 100%;
    background: #fff;
    z-index: 999;
    position: relative;
}

.top-header {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 13px;
}

.top-header .left-side li {
    display: inline-block;
    margin-right: 20px;
}

.top-header .left-side i {
    margin-right: 5px;
    color: #cd2122;
}

.top-header .right-side li {
    display: inline-block;
    margin-left: 10px;
}

.main-menu-wrapper {
    padding: 20px 0;
    /* FIX: Clearfix para que el contenedor envuelva el logo y el menú flotantes */
}
.main-menu-wrapper:after { 
    content: ""; 
    display: table; 
    clear: both; 
} 

/* FIX: Asegura que el logo flote correctamente para alinear con el menú */
.logo { 
    float: left;
    padding-top: 5px; /* Pequeño ajuste vertical opcional */
}

/* Buscador */
.main-menu-wrapper form {
    position: relative;
    width: 200px;
    float: right;
    margin-left: 20px;
}

.main-menu-wrapper form input {
    border: 1px solid #ddd;
    padding: 5px 10px;
    width: 100%;
    border-radius: 3px;
}

.main-menu-wrapper form button {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: none;
    padding: 6px;
    color: #888;
}

/* Estilos de la barra de navegación de Bootstrap */
.navbar {
    margin-bottom: 0;
    border: none;
    min-height: auto;
}

/* IMPORTANTE: Oculta el botón de hamburguesa en escritorio */
.navbar-toggle {
    display: none; 
}

/* Navegación (Escritorio) */
.navbar-nav {
    float: left;
}
.navbar-nav > li {
    float: left;
    margin-left: 25px;
}

.navbar-nav > li > a {
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 0;
    display: block;
}

.navbar-nav > li > a:hover {
    color: #cd2122;
}

/* =========================================
   3. BANNER & SLIDER
   ========================================= */
#banner, .carousel-inner .item {
    height: 600px;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
}

/* ... Centrado del contenido del banner y botones ... */

/* =========================================
   4. SECCIONES
   ========================================= */

/* Área de Gestión (Cajas rojas debajo del banner) */
.theme-manage-area {
    margin-top: -50px; 
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

/* CORRECCIÓN: Evita que la foto del profesor tape el título en la tarjeta */
.popular-course .item .text {
    padding: 45px 20px 20px 20px;
    text-align: center;
    border-bottom: 3px solid #cd2122;
    position: relative;
}

/* ... Estilos de Footer ... */

/* =========================================
   5. RESPONSIVE / MEDIA QUERIES (Hamburguesa)
   ========================================= */

/* --- TABLETS (max-width: 991px) --- */
@media (max-width: 991px) {
    .navbar-nav > li {
        margin-left: 15px;
    }
    
    .theme-manage-area .item-part {
        min-height: auto;
        padding: 30px;
    }

    #banner h1 {
        font-size: 40px !important;
    }
}

/* --- MOVILES (max-width: 767px) --- */
@media (max-width: 767px) {
    
    /* Global Grid Reset: Apilar columnas en móviles */
    .col-md-4, .col-sm-6, .col-md-3, .col-sm-12 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Logo y Menú */
    .main-menu-wrapper {
        padding: 10px 0;
    }

    /* FIX: El logo ahora se centra cuando se anula su float */
    .logo {
        float: none;
        text-align: center;
        display: block;
        margin-bottom: 15px;
        padding-top: 0;
    }
    
    /* ESTILO Y VISIBILIDAD DEL BOTÓN HAMBURGUESA */
    .navbar-toggle {
        float: none;
        margin: 10px auto; 
        display: inline-block; /* Vuelve a mostrar el botón */
        background-color: #cd2122; 
        border: none;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #fff; 
    }

    /* ESTILO DEL MENÚ COLAPSADO */
    .navbar-collapse {
        text-align: center;
        border-top: 1px solid #eee;
        box-shadow: none;
        width: 100%;
    }

    .navbar-nav {
        float: none;
    }
    .navbar-nav > li {
        float: none;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav > li > a {
        padding: 15px 0;
    }
    
    /* Quitar margen negativo en móvil (Gestión) */
    .theme-manage-area {
        margin-top: 0;
    }

    /* ... otros ajustes móviles ... */
}
/* =========================================
   ESTILOS: CRÉDITO DEL PROYECTO (FOOTER)
   ========================================= */

/* Estilo para la línea de atribución de Nexento */
.project-credit {
    font-size: 0.75rem; /* Pequeño y discreto */
    color: #666; /* Gris del texto de copyright */
    margin-top: 5px; 
    padding-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado dentro del bottom-footer */
    gap: 8px;
    line-height: 1.5; /* Espaciado extra para que no se pegue */
}

/* Enlace de texto a Nexento */
.project-credit a {
    color: #cd2122 !important; /* Color de acento de EduFuturo (Rojo) */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-credit a:hover {
    color: #fff !important; /* Se ilumina a blanco al pasar el ratón */
}

/* Contenedor de los iconos sociales de Nexento */
.nexento-social-credit {
    margin-left: 5px;
}

/* Iconos sociales */
.nexento-social-credit a {
    color: #666 !important; /* Color gris como el texto, lo sobrescribo por si hay herencia */
    font-size: 1rem; /* Tamaño discreto */
    margin-left: 8px; /* Espacio entre iconos */
    opacity: 0.8;
}

.nexento-social-credit a:hover {
    color: #cd2122 !important; /* Color de acento al pasar el ratón */
    opacity: 1;
}

/* Ajuste para que los parrafos dentro de bottom-footer se centren correctamente */
.bottom-footer p {
    margin: 0;
}