/* Paleta de colores personalizada */
:root {
    --primary: rgba(0, 0, 0, 0.4); /* Azul oscuro */
    --secondary: rgba(0, 0, 0, 0.7); /* Gris oscuro */
    --accent: #ffd; /* Dorado */
    --text-dark: #333;
    --text-light: #fff;
}

/* Estilos generales */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: transparent; /* Eliminamos el fondo gris */
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    margin-bottom: 60px;
    position: relative;
    min-height: 100vh;
}

/* Video de fondo */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
    opacity: 0.8; /* Aumentamos ligeramente la opacidad para mejor visibilidad */
}


/* Capa semitransparente para mejorar legibilidad */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa más ligera para no opacar el video */
    z-index: -99;
}

/* Contenido principal */
main {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    padding-top: 60px;
}

.container {
    background-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7) !important;
}

    .navbar .navbar-brand,
    .navbar .nav-link {
        color: var(--text-light) !important;
    }

/* Estilos para QuienesSomos.cshtml */
.video-in-section {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-inner img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 15px;
}

/* Proporciones de imágenes */
.img-16-9 {
    aspect-ratio: 16 / 9;
}

.img-3-2 {
    aspect-ratio: 3 / 2;
}

.img-2-3 {
    aspect-ratio: 2 / 3;
}

.img-9-16 {
    aspect-ratio: 9 / 16;
}

.img-1-1 {
    aspect-ratio: 1 / 1;
    width: 200px;
    height: 200px;
}

.img-4-5 {
    aspect-ratio: 4 / 5;
    max-width: 400px;
    width: 100%;
}

.img-3-4 {
    aspect-ratio: 3 / 4;
    max-width: 400px;
    width: 100%;
}

/* Animaciones */
.animate__animated.animate__fadeIn,
.animate__animated.animate__fadeInDown,
.animate__animated.animate__fadeInLeft,
.animate__animated.animate__fadeInRight,
.animate__animated.animate__zoomIn,
.animate__animated.animate__pulse,
.animate__animated.animate__fadeInUp {
    animation-duration: 1s;
}

/* Asegurar que el texto sea legible */
.bg-light {
    background-color: #ffff !important;
    color: var(--text-dark) !important;
}

    .bg-light h2,
    .bg-light p {
        color: var(--text-dark) !important;
    }

.bg-dark {
    background-color: var(--secondary) !important;
    color: var(--text-light) !important;
}

/* Forzar centrado para la sección de descripción */
.quienes-somos .lead,
.quienes-somos .btn {
    text-align: center !important;
}

.quienes-somos .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Estilo para el equipo */
.rounded-circle {
    border: 3px solid var(--accent);
    transition: transform 0.3s ease;
}

    .rounded-circle:hover {
        transform: scale(1.05);
    }

/* Estilo para los números */
.text-primary {
    color: var(--primary) !important;
}

.text-warning {
    color: var(--accent) !important;
}

/* Card estilo dashboard */
.card-dashboard {
    padding: 1.75rem;
    border-radius: 0.7rem;
    border: 1px solid #eef1f4;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eaf4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    box-shadow: 0 4px 12px rgba(14, 55, 128, 0.06);
}

    .icon-circle i {
        font-size: 1.6rem;
        color: #2b7de9;
    }

.card-dashboard h5 {
    margin-bottom: .35rem;
}

.card-dashboard p {
    margin-bottom: .6rem;
    color: #6c757d;
}

.card-dashboard.active {
    background: #e6f6f2;
    border-color: #5bb99a;
    box-shadow: 0 8px 24px rgba(91, 185, 154, 0.12);
}

    .card-dashboard.active .icon-circle {
        background: #5bb99a;
    }

        .card-dashboard.active .icon-circle i {
            color: #fff;
        }

.card-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.card-dashboard,
.card-dashboard .icon-circle {
    transition: all 0.3s ease;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .carousel-inner img {
        height: 300px;
    }

    .video-in-section {
        max-height: 250px;
    }

    .img-1-1 {
        width: 150px !important;
        height: 150px !important;
    }

    .img-4-5,
    .img-3-4 {
        max-width: 300px;
    }

    .card-dashboard {
        padding: 1.25rem;
        min-height: auto;
    }
}

/* Formularios */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}
