/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700|Work+Sans:300,400,500,600,700,800,900');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Variables de Color */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color: #343a40;
    --text-light: #6a6a6a;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --accent-dark: #1a1a1a;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

/*********************************
    1. Reset y Estilos Generales
*********************************/
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -webkit-text-shadow: rgba(0,0,0,.01) 0 0 1px;
    text-shadow: rgba(0,0,0,.01) 0 0 1px;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    margin-bottom: 0.5em;
    font-weight: 700;
}

h2.section_title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1em;
}

h3.title_card {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 1em;
}

p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Clases de utilidad */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.mr-3 { margin-right: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.w-100 { width: 100%; }
.p-4 { padding: 1.5rem; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; }
.text-center { text-align: center; }

/* Clases de utilidad responsive (corregidas) */
.d-none { display: none !important; }
.d-md-block { display: none !important; } /* Oculto por defecto */
@media (min-width: 768px) {
    .d-md-block { display: block !important; } /* Muestra en pantallas medianas y grandes */
    .d-md-none { display: none !important; } /* Oculta en pantallas medianas y grandes */
}
@media (max-width: 767.98px) {
    .d-md-none { display: block !important; } /* Muestra solo en pantallas pequeñas */
}

/*********************************
    2. Layout Principal (Sticky Footer)
*********************************/
.super_container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

main.home {
    flex: 1;
    position: relative;
    /* La clave para que el contenido no quede debajo del header */
    padding-top: 80px; 
}

.home_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: -1;
}

.home_content {
    background: rgba(255, 255, 255, 0.9);
    min-height: 100%;
}

/*********************************
    3. Header (Menú y hamburguesa)
*********************************/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--accent-dark);
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Ubuntu', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main_nav ul li {
    display: inline-block;
    margin-left: 30px;
}

.main_nav ul li a {
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.main_nav ul li a:hover,
.main_nav ul li.active a {
    color: #ffffff;
}

.header_search_input {
    width: 200px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    outline: none;
    border-radius: 20px;
    padding-left: 45px;
    color: #ffffff;
    font-size: 14px;
}

.header_search_input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search_container form {
    position: relative;
}

.header_search_icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 14px;
}

.user_profile a {
    font-size: 24px;
    color: rgba(255,255,255,0.7);
}

.user_profile a:hover {
    color: #ffffff;
}

/* Oculta el menú principal y muestra la hamburguesa por defecto (móvil) */
.main_nav, .header_search, .user_profile {
    display: none;
}

.hamburger {
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    display: block;
}

@media (min-width: 768px) {
    /* Muestra el menú completo en pantallas grandes */
    .main_nav, .header_search, .user_profile {
        display: flex;
        align-items: center;
    }
    /* Oculta la hamburguesa */
    .hamburger {
        display: none;
    }
}

/*********************************
    4. Menú Responsive (Hamburguesa)
*********************************/
.responsive_menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 101;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.responsive_menu.active {
    right: 0;
}

.menu_close_container {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transform: rotate(45deg);
}

.menu_close div {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    top: 9px;
    transition: all 0.3s ease;
}

.menu_close div:last-of-type {
    transform: rotate(90deg);
}

.menu_close:hover div {
    background: var(--primary-color);
}

.menu_nav {
    flex-grow: 1;
}

.menu_nav ul li {
    margin-bottom: 15px;
}

.menu_nav ul li a {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.menu_nav ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.menu_search .header_search_input {
    width: 100%;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.menu_search .header_search_input::placeholder {
    color: var(--text-light);
}

.menu_search .header_search_icon {
    color: var(--text-light);
}

/*********************************
    5. Menú en Cuadrícula (Module Grid)
*********************************/
.module_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.module_card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.module_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: var(--hover-effect-light);
}

.module_icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.module_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.module_description {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.5;
}

/*********************************
    6. Formularios y Tablas
*********************************/
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
}

/*********************************
    7. Footer
*********************************/
.footer {
    background-color: var(--bg-dark); /* Color oscuro para el fondo del footer */
    color: rgba(255, 255, 255, 0.7); /* Texto claro semi-transparente */
    padding: 2.5rem 0;
    margin-top: auto; /* Esta propiedad es la clave */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1); /* Sombra para separarlo del contenido */
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ffffff;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* Media query para pantallas más grandes */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Contenedor para centrar la tabla */
.table-container {
    /* Centra el contenedor y le da un ancho del 70% */
    width: 70%;
    margin: 2rem auto 0;
}

/* Opcional: Estilo para la tabla misma para asegurar que se extienda dentro de su contenedor */
.table-container table {
    width: 100%;
    /* Asegura que la tabla ocupe todo el espacio de su contenedor */
}

.form-container {
    max-width: 600px; /* Limita el ancho del formulario para que no se extienda demasiado en pantallas grandes */
    margin: 2rem auto; /* Centra el contenedor horizontalmente */
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-light); /* Una sombra suave para un mejor efecto */
}

/*********************************
    8. Formularios Mejorados
*********************************/

/* Campos de texto, select, textarea */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 70%;
    padding: 14px /*altura*/ 16px;/*anchura*/
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #fff;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 0.4rem; /* Espacio entre los campos */
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Botones principales */
button,
input[type="submit"],
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

/* Efecto hover */
button:hover,
input[type="submit"]:hover,
.btn:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Efecto al presionar (click) */
button:active,
input[type="submit"]:active,
.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Ajustes para formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 1rem;
    color: var(--text-color);
}

/* Mejora visual del contenedor */
.form-container {
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
/* Estilo de cada ítem del checklist */
.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.checklist-item:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
}

/* Estilo de la etiqueta */
.checklist-item label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
}

/* Checkbox personalizado */
.checklist-item input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

/* Efecto al marcar */
.checklist-item input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Icono de “check” al marcar */
.checklist-item input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: 2px;
  left: 5px;
}

/* Botón del formulario */
button.btn {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

button.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

button.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

