/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(
        180deg,
        rgba(240, 240, 240, 1) 0%,
        rgba(238, 238, 238, 1) 50%,
        rgba(204, 204, 204, 1) 100%
    );
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    min-height: 100vh;
}

a{
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #ffffff, #f2f2f2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.header-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 120px;
    margin: 0;
    padding: 20px 40px 20px 20px;
}

.nav-menu li {
    border-bottom: 2px solid #ddd;
    padding: 10px 10px;
}

.nav-menu li a {
    text-decoration: none;
    font-size: 18px;
    font-weight:100;
    color: #555;
    transition: color 0.3s ease;
    display: block;
}

#negrop {
    color: #1c1c1d;
    font-weight: 600;
    margin: 30px 60px;
    margin-top: 45px;
}

#negropo {
    color: #3f77f1;
    font-weight: 600;
}

.nav-menu li a:hover {
    color: #7fc7f7;
    padding-bottom: 2px;
}

/* Estilo del menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

/* Líneas del menú hamburguesa */
.hamburger .line {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animación cuando el menú hamburguesa está activo */
.hamburger.active .line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Estilos del menú hamburguesa cuando está visible */
.nav-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 300px;
}

/* Estilos específicos solo para el menú hamburguesa */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 50px 0; /* padding de 50px para el menú hamburguesa */
        border-radius: 8px;
        opacity: 0;
        transform: translateY(-20px);
    }

    .nav-menu li {
        border-bottom: 2px solid #ddd; /* Línea separadora entre los elementos del menú */
        padding: 10px 0; /* Separación entre elementos */
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

/* Main content */
/* Main content */
main{
    text-align: center;
    margin: 30px;
}
.main-title {
    text-align: center;
    margin: 20px 0;
    font-size: 28px;
}

.description {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.about-section {
    margin-bottom: 40px;
    display: flex;
}

.principales{
    display: flex;
    gap: 20px;
    margin: 0 40px;
}

.otros{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 columnas de igual ancho */
    gap: 20px;
    margin: 0 40px;
}

.about-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.about-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.about-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #007BFF;
}

.about-card p {
    color: #555;
    font-size: 15px;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-top: 2px solid #ddd;
    margin-top: 20px;
}

h2 {
    text-align: center;
    margin-top: 20px;
    font-size: 28px;
}



/* Carrusel */


.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    height: 500px;
    padding: 0 200px;
}

.swiper-slide p, .swiper-slide h3 {
    width: 300px;
    height: 60px;
}

.swiper-slide p{

    text-align: center;
    margin-bottom: 20px;
    color: #555;

}

.swiper-slide img {
    width: 400px;
    height: 350px;
    object-fit: cover;
    border-bottom: 4px solid #007bff;
}


@media (max-width: 768px) {

    .otros{
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 4 columnas de igual ancho */
        gap: 20px;
        margin: 0 40px;
    }

    .otros p,h3{
        height: 35px;
    }

    .swiper-slide {
    
        text-align: center;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        overflow: hidden;
        height: 300px;
        padding: 0;
    }

    .swiper-container{
        width: 80%;
        margin: 30px 39px 0;
        overflow: hidden;
    }

    .swiper-slide img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-bottom: 4px solid #007bff;
    }
    
    .swiper-slide {
        width: 10px;
        text-align: center;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        overflow: hidden;
        height: 300px;
        /* margin: 0 auto; */
    }
    
    .swiper-container{
        width: 80%;
        margin-top: 30px;
        margin-left: 40px;
        margin-bottom: 70px;
    }


    .swiper-button-next{
        display: none;
    }

    .swiper-button-prev{
        display: none;
    }

    .swiper-pagination{
        margin-bottom: 30vh;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 50px 0; /* padding de 50px para el menú hamburguesa */
        border-radius: 8px;
        opacity: 0;
        transform: translateY(-20px);
    }

    .nav-menu li {
        border-bottom: 2px solid #ddd; /* Línea separadora entre los elementos del menú */
        padding: 10px 0; /* Separación entre elementos */
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .logo{
        height: 80px;
        width: 80px;
    }
}

footer{
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    padding-bottom: 10px;
    background: linear-gradient(
        180deg,
        rgba(240, 240, 240, 1) 0%,
        rgba(238, 238, 238, 1) 50%,
        rgba(198, 198, 198, 1) 100%
    );
}


.firspar{
    margin: 5px 0;
}

.firspa{
    margin: 20px 0;
}

.seco p{
    margin: 5px 0;
}

@media (max-width: 800px){
    .seco{
        margin-left: 0;
    }

    .firs{
        margin-left: 0;
    }

    footer{
        display: flex;
        flex-direction: column;
        text-align: center;
    }
}