@import url(/static/css/font.css);
/* Variables de Color */
:root {
    --primary-color: #E70000; /* Rojo vibrante */
    --secondary-color: #FF4D4D; /* Rojo más claro para detalles */
    --dark-background: white; /* Negro profundo */
    --text-light: black; /* Gris claro para texto */
    --card-background: #282828; /* Gris oscuro para tarjetas */
    --border-color: #444444; /* Gris para bordes */
    --black-color: black;
    --dark-red-color: #A50000; /* Nuevo color rojo oscuro */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

.custom-bold{
    font-weight: bold;
    color: var(--primary-color)!important;
}
.custom-bold-2{
    font-weight: bold;
}

.title-font {
    font-family: 'StretchPro';
    color: var(--text-light);
}

.text-font {
    font-family: 'MonserratCustom';
}
.text-justify{
    text-align: justify;
}

/* Fuentes base y reseteo básico */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--dark-background);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

main{
    margin-top: 100px;
}

/* Estilos de botones */
.btn-main, .btn-secondary, .btn-main-alt {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-main {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.1em;
}

.btn-main:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-main-alt {
    background-color: var(--card-background);
    color: var(--primary-color);
    margin-top: 30px;
}

.btn-main-alt:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--dark-background);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 0.9em;
    padding: 8px 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--card-background);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

/* Hero Section (Encabezado principal) */
.hero {
    
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    padding: 0;
    padding-top: 90px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-background);
    z-index: 1;
    opacity: 0.7;
}

.hero * {
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}


/* Contenedores de sección */
.section-container {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}



/* Footer */
footer {
    background-color: #0F0F0F;
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    text-align: left;
    width: 100%;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section a {
    color: white;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Redes Sociales */
.social-media {
    margin: 30px auto;
    text-align: center;
    max-width: 1200px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.social-media p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: white;
}

.social-media a {
    color: white;
    font-size: 2.2em;
    margin: 0 18px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-media a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Copyright */
.copyright {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.navbar-logo {
    width: 8em;
    height: 0.9em;
}

.navbar-brand a {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.navbar-brand a:hover {
    color: var(--dark-background);
}

.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-size: medium;
    align-items: center;
}

.navbar-links li {
    margin-left: 30px;
}

.navbar-links a {
    color:var(--black-color);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.navbar-links a:hover {
    color: var(--black-color);
}

.navbar-links a:not(.apart)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--card-background);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
}

.navbar-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--dark-background);
    cursor: pointer;
}




/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .team-logo{
        width: 50%!important;
        height: auto;
    }
    .team-text-container {
        padding: 20px;
    }
    .section-container {
        padding: 40px 15px;
    }
    
    .btn-main {
        padding: 10px 20px;
        font-size: 1em;
    }

    /* Navbar en Móvil */
    .navbar-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: all 0.4s ease-in-out;
        padding: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        border-top: 1px solid var(--border-color);
        z-index: 10;
        display: flex;
    }

    .navbar-links.active {
        max-height: min-content;
        padding: 5px 0;
    }
 
    .navbar-links li {
        margin: 10px 0;
        /* width: 100%; */
        text-align: center;
    }

    .navbar-links a {
        padding: 10px 20px;
        display: block;
        color: var(--dark-background);
    }

    .navbar-links a:hover {
        color: var(--dark-background);
    }

    .navbar-links a::after {
        display: none;
    }

    .hamburger {
        display: block;
    }

    html {
        scroll-padding-top: 70px;
    }


    /* Footer en Móvil */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
        padding: 0;
    }

    .footer-section h3 {
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-section ul {
        padding: 0;
    }

    .footer-section li {
        margin-bottom: 8px;
    }

    .social-media {
        margin: 40px auto 20px auto;
        padding-top: 25px;
    }

    .social-media p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .social-media a {
        font-size: 1.8em;
        margin: 0 10px;
    }

    .copyright {
        margin-top: 25px;
        font-size: 0.8em;
    }
}

/* Ajuste para el desplazamiento del ancla en pantallas grandes */
@media (min-width: 769px) {
    html {
        scroll-padding-top: 70px;
    }


}

/* Estilos para el Dropdown del Navbar */
.dropdown-link {
    position: relative;
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    position: absolute;
    background-color: var(--card-background); /* Color de fondo */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    margin-top: 0.5em;
    padding:1em;
    border-radius: 5px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease, visibility 0.3s;
}
.dropdown-menu li {
    padding: 5px 14px;
    margin: 0;
}
.dropdown-menu a {
    color: var(--text-light); /* Color del texto del enlace */
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
}
.social-work{
    background-color: yellow;
    padding: 1em;
    border-radius: 5px;
    transition: all 0.3s ease-in;
}
.social-work:hover{
    scale: 1.05;
}
.social-work span{
    color: blue;
}


/* Muestra el dropdown cuando el usuario hace hover */
.dropdown-link:hover .dropdown-menu {
    max-height: 200px; /* Asegúrate de que este valor sea mayor que la altura total del menú */
    opacity: 1;
    visibility: visible;
}

/* Ajustes para la versión móvil */
@media (max-width: 768px) {
    main{
        margin-top: 0px;
    }
    .dropdown-link {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-link > a {
        display: block;
        padding: 10px 20px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    /* JavaScript will toggle this class */
    .dropdown-link.active {
        max-height: 200px; /* Ajusta este valor según la altura máxima de tu menú */
        transition: max-height 0.3s ease-in;
    }
    .dropdown-menu.active{
        display: block!important;
        width: auto!important;
        transform: translateX(0);
    }

    .dropdown-menu a {
        color: var(--dark-background);
        background-color: var(--dark-red-color);
        padding: 10px 20px;
        border-top: 1px solid var(--dark-red-color);
    }
    
    .dropdown-menu li:first-child a {
        border-top: none;
    }

    .dropdown-menu a:hover {
        background-color: var(--primary-color);
        color: var(--dark-background);
    }
}

/* Estilos para las nuevas secciones */
.team-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.team-logo-container {
    flex-shrink: 0;
    width: 100%;
    margin: 0 auto;
}

.team-logo {
    width: 100%;
    height: auto;
}


.team-text-container {
    
    text-align: center;
}

@media (min-width: 769px) {
    .team-content {
        flex-direction: row;
        text-align: left;
        gap: 60px;
    }
    .team-logo-container {
        width: 25em;
        height: 25em;
        margin: 0;
    }
    .team-text-container {
        width: 70%;
        text-align: justify;
    }
    .team-text-container h2 {
        text-align: left;
    }
}

/* Banner Section */
.banner-section {
    background-color: var(--primary-color);
    text-align: center;

}
.bg-img{
    width: 8em;
}

.banner-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--text-light);
    font-size: 1.8em;
    padding: 1em;
}


/* Mision and Vision Section */
.mission-vision-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.mv-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: justify;
}
.mv-item {
    padding: 20px;
    max-width: 500px;
    text-align: center;
}
.mv-item h2 {
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-color);
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 20px auto;
}

@media (min-width: 769px) {
    .mv-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 60px;
        text-align: justify;
    }
    .mv-item {
        flex: 1;
        max-width: 50%;
    }
    .mv-item h2 {
        text-align: center;
    }
    .separator {
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 0 auto 20px auto;
    }
}

/* Instagram Section */
.instagram-section {
    background-image: url("/static/images/background.png");
    background-repeat: round;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.instagram-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.instagram-link {
    z-index: 1;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-link h2 {
    color: var(--text-light);
    font-size: 2.5em;
    margin: 0;
}

.instagram-link:hover {
    color: var(--primary-color);
}