/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: rgb(255, 255, 255);
    height: 80px;
}

/* Mejora del estilo del logo */
.logo img {
    height: 60px;
}

/* Estilos generales para el nav y las opciones */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 60px; /* Más espacio entre opciones */
    margin-left: 40px; /* Acercar las opciones al logo */
}

.nav-link {
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

/* Línea debajo de las opciones al hacer hover, excepto para el botón de contacto */
.nav-link:not(.btn-contacto):hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: black;
    bottom: -3px;
    left: 0;
}

/* Estilos del botón de contacto */
.btn-contacto {
    padding: 8px 20px;
    border: 1px solid black;
    border-radius: 20px;
    font-size: 18px;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-contacto:hover {
    background-color: black;
    color: white;
}

.btn-contacto::after {
    content: none; /* Eliminar la línea debajo del botón de contacto */
}

/* Hamburguesa y otros estilos para móviles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 5px;
}

/* Estilos del modal */
.modal-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-menu-card {
    background-color: white;
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    margin-top: -200px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.modal-list {
    list-style: none;
    text-align: center;
    padding-top: 20px;
}

.modal-list li {
    margin: 20px 0;
}

.modal-link {
    color: black;
    font-size: 20px;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.modal-link:hover::after,
.modal-link:focus::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: black;
    bottom: -3px;
    left: 0;
}

/* Estilos para pantallas grandes */
@media (min-width: 768px) {
    .logo img {
        height: 70px; /* Ajuste de tamaño del logo para escritorio */
        margin-left: 20px; /* Ajuste de posición */
    }
    
    .header {
        justify-content: center; /* Centrar el contenido */
    }

    .nav-list {
        margin-left: 80px; /* Separar más el menú del logo */
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Contenedor para los iconos sociales */
.social-icons {
    display: flex;
    gap: 0px; /* Espacio entre los iconos */
    align-items: center;
    justify-content: flex-end; /* Alineación a la derecha */
}

/* Estilo para los iconos dentro de círculos */
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* Ancho del círculo */
    height: 40px; /* Alto del círculo */
    border-radius: 50%; /* Para hacerlo circular */
    background-color: #2E7D32; /* Color de fondo del círculo */
    color: white; /* Color del icono */
    font-size: 20px; /* Tamaño del icono */
    transition: background-color 0.3s ease; /* Efecto al pasar el mouse */
    text-decoration: none; /* Elimina el subrayado o línea blanca */
    margin-top: -80px;
    margin-right: 37px;
}

.social-icon:hover {
    background-color: #266629; /* Cambia el color de fondo al pasar el mouse */
}

/* Ocultar los iconos en dispositivos móviles */
@media (max-width: 768px) {
    .social-icons {
        display: none; /* Los iconos no se muestran en pantallas pequeñas */
    }
}
