/* 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: #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-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;
}


.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #007BFF;
}

.card p {
    color: #555;
}


.grid a{
    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;
}

.grid a: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;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@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;
}

.contact-grid-footer {
    display: grid;
    grid-template-columns: auto;
    gap: 10px;
    align-items: center;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item-footer a{
    color: #000;
}

.contact-item svg {
    width: 20px;
    height: 20px;
}


@media (max-width: 800px){
    .seco{
        margin-left: 0;
    }

    .firs{
        margin-left: 0;
    }

    footer{
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .contact-grid-footer{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact-item-footer span{
        display: none;
    }
}