﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

/* =====================================================
   Estilos del Site Master
   ===================================================== */

:root {
    --primary-color: #007a33;
    --secondary-color: #00a859;
    --accent-color: #009e60;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar modernizada */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    height: auto !important;
}

.navbar-brand {
    background-color: white !important;
    z-index: 1000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-link, .dropdown-toggle {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.6s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover, .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link i, .dropdown-toggle i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

/* Estilos para menús */
.dropdown-menu, .submenu {
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 5px 0;
}

/* Evitar que los menús se corten */
.dropdown-menu {
    min-width: 200px;
}

/* Desplegar menú al pasar el cursor — solo en escritorio */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Mejorar la accesibilidad con teclado */
.dropdown-menu a:focus,
.dropdown-menu button:focus {
    background-color: #f8f9fa;
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

/* Contenedor principal */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Footer modernizado */
footer {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer h5::before {
    content: '';
    width: 3px;
    height: 1.25rem;
    background-color: var(--accent-color);
    border-radius: 2px;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer a:hover {
    color: var(--accent-color);
}

footer ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

footer i {
    color: var(--accent-color);
    width: 1.25rem;
    text-align: center;
}

/* Botón de login */
.login-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.login-info a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.login-info a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Fix para LoginStatus */
#MainContent_LoginStatus1 {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background-color: rgba(220, 38, 38, 0.9);
    margin-left: 0.5rem;
}

#MainContent_LoginStatus1:hover {
    background-color: rgba(220, 38, 38, 1);
}

/* Copyright bar */
.copyright-bar {
    background-color: var(--text-dark);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        padding: 0.375rem 0.75rem;
    }

    .nav-link, .dropdown-toggle {
        padding: 0.5rem 0.75rem !important;
    }
}

/* Animación de iconos */
.nav-link:hover i, .dropdown-toggle:hover i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
