* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    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;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}

a{
    text-decoration: none;
}

/* Estilos del 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;
}

.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; 
        border-radius: 8px;
        opacity: 0;
        transform: translateY(-20px);
    }

    .nav-menu li {
        border-bottom: 2px solid #ddd; 
        padding: 10px 0; 
        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;
    }

}

#negrop {
    color: #3f77f1;
    font-weight: 600;
}


/* Estilos de la Sección Main */

main{
    margin: 0;
    padding: 0;
    text-align: center;
}

.text{
    margin-top: 90px;
}

.text p{
    margin-top: 10px;
    color: #555;
}

/* Estilos del div Container */

.container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 100px;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    min-height: 45vh;
    margin-bottom: 30px;
}

.bloques {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-wrap: nowrap;
}

.bloques h3{
    margin-bottom: 10px;
    font-size: 20px;
    color: #007BFF;
}

.bloques p {
    color: #555;
}

.bloques:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}


footer{
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    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;
    }

    /* Estilos bloques, para celular */

    .bloques{
        text-wrap: wrap;
    }

    .container{
        margin-top: 30px;
    }

    .text{
        text-wrap: wrap;
        margin:20px 30px;
    }
}