/* Variables de colores */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --background-color: #f5f7fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --hover-bg: rgba(255, 255, 255, 1);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --gradient-start: #f5f7fa;
    --gradient-end: #e4e8eb;
    --overlay-color: rgba(10, 20, 40, 0.6);
}

/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
    color: var(--text-dark);
    background: url('background.jpg') no-repeat center center fixed, linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-size: cover;
    margin: 0;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-color);
    z-index: 0;
    pointer-events: none;
}

main, .container, .card, .navbar, footer {
    position: relative;
    z-index: 1;
}

/* Estilos de las tarjetas */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
    background: var(--hover-bg);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-text {
    color: var(--text-dark);
    opacity: 0.9;
    line-height: 1.6;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

/* Estilos de la navegación */
.navbar {
    background: var(--primary-color) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-brand i {
    margin-right: 8px;
    color: var(--text-light);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Estilos del footer */
footer {
    background: var(--primary-color) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Estilos de los formularios */
.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    border-color: var(--primary-color);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Estilos de las alertas */
.alert {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Estilos de botones */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #000;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para títulos y textos en páginas */
.display-4 {
    color: var(--text-light);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.lead {
    color: var(--text-light);
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Estilos para el modal de nueva herramienta */
.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
}

/* Asegurar que el modal esté por encima de todo */
.modal-dialog {
    z-index: 1060;
}

.modal-content {
    z-index: 1070;
}

.modal-backdrop {
    z-index: 1040;
}

/* Asegurar que el contenido del modal sea interactivo */
.modal.show .modal-dialog {
    transform: none;
}

/* Asegurar que el fondo no interfiera con el modal */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Estilos para formularios flotantes */
.formulario-flotante {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.formulario-contenido {
    position: relative;
    width: 400px;
    max-width: 90%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.formulario-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 12px 12px 0 0;
}

.formulario-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.formulario-body {
    padding: 2rem;
    background: white;
}

.formulario-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: white;
    border-radius: 0 0 12px 12px;
}

/* Contenedor de video */
.video-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-contenido {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-header {
    padding: 1rem 1.5rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.video-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.video-body {
    background: #000;
    padding: 0;
}

.video-body .ratio {
    margin: 0;
}

.video-body iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 600px) {
    .formulario-contenido {
        width: 95%;
        margin: 10px auto;
    }
    
    .formulario-header,
    .formulario-body,
    .formulario-footer {
        padding: 1rem;
    }
    
    .video-contenido {
        width: 95%;
        margin: 10px auto;
    }
    
    .video-header {
        padding: 0.75rem 1rem;
    }
}

/* Estilos para mejorar la legibilidad del texto */
.text-muted {
    color: #6c757d !important;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Estilos para iconos */
.bi {
    margin-right: 0.5rem;
}

/* Estilos para grupos de botones */
.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Estilos para mejorar la accesibilidad */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Estilos para mejorar el contraste */
.card-title,
.card-text,
.form-label {
    color: var(--text-dark) !important;
}

/* Estilos para el contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos para el contenido principal */
main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Estilos para mejorar la experiencia de usuario */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: #dc3545;
}

/* Estilos para mejorar la navegación */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para mejorar las tarjetas en hover */
.card:hover .card-title {
    color: var(--primary-color);
}

/* Estilos para mejorar los formularios */
.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Estilos para mejorar las alertas */
.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left: 4px solid #17a2b8;
    color: #0c5460;
} 