/* styles.css - Versión completa con footer fijo */
/* Estilos base y tipografía */
html {
    height: 100%;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* Estructura principal */
.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-bottom: 20px; /* Espacio antes del footer */
}

/* Fondo especial para index */
body.index-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Img/document_12792554.jpg') center center / cover no-repeat fixed;
    z-index: -2;
}

body.index-bg::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 30, 0.75);
    z-index: -1;
}

/* Navbar */
.navbar {
    background-color: rgba(15, 25, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    margin: 1rem auto;
    max-width: 95%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-brand:hover {
    color: #1abc9c !important;
    transform: scale(1.03);
}

.nav-link {
    color: #dfe6e9 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1abc9c !important;
    background-color: rgba(26, 188, 156, 0.15);
    transform: translateY(-2px);
}

/* Contenido principal */
.container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px); /* Ajuste para el footer */
}

.container.mt-5.text-center.text-white {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.card-header {
    background-color: #1abc9c;
    color: white;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Botones */
.btn {
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1abc9c;
    border-color: #1abc9c;
}

.btn-primary:hover {
    background-color: #16a085;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Tablas */
.table {
    margin-top: 1rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #1abc9c;
    color: white;
    border: none;
}

.table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1abc9c;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: auto; /* Crucial para el sticky footer */
}

footer p {
    margin-bottom: 0;
}

/* Efectos y utilidades */
.form-control:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 0.25rem rgba(26, 188, 156, 0.25);
}

.text-white {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 767px) {
    .navbar {
        margin: 0.5rem auto;
        border-radius: 10px;
        padding: 0.6rem 1rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem !important;
    }

    .container.mt-5.text-center.text-white {
        padding: 1.5rem 1rem;
    }

    footer {
        padding: 1rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}