@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* Fondo claro */
    color: #333;
    scroll-behavior: smooth; /* Para un desplazamiento suave */
    font-size: 18px; /* Tamaño de fuente aumentado */
    line-height: 1.6; /* Altura de línea para mejorar la legibilidad */
}

header {
    background: #1e3a5f; /* Azul oscuro */
    color: #fff;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
    border-radius: 0 0 10px 10px; /* Bordes redondeados */
}

header h1 {
    margin: 0;
    padding: 1rem;
    font-size: 2rem; /* Tamaño de fuente aumentado */
}

nav {
    display: flex;
    justify-content: center; /* Centra los enlaces de navegación */
    background: #2d5a8d; /* Azul intermedio */
    position: fixed;
    width: 100%;
    top: 60px; /* Ajusta esto según el alto de tu header */
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
}

nav a {
    color: #fff;
    padding: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s; /* Transición suave */
    font-size: 1.1rem; /* Tamaño de fuente aumentado */
}

nav a:hover {
    background: #3a7bbb; /* Azul más claro para el hover */
}

section {
    padding: 2rem;
    margin: 4rem auto; /* Aumenta el margen superior */
    max-width: 1200px; /* Aumentado para pantallas más grandes */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
    border-radius: 10px; /* Bordes redondeados */
    transition: transform 0.3s; /* Transición suave */
    text-align: center; /* Centrar el contenido de las secciones */
}

section#inicio {
    margin-top: 8rem; /* Ajusta el margen superior para la sección de inicio */
}

section:hover {
    transform: translateY(-5px); /* Efecto hover */
}

h2 {
    font-size: 2.5rem; /* Tamaño de fuente aumentado */
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem; /* Tamaño de fuente aumentado */
    margin-bottom: 0.5rem;
}

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Color de WhatsApp */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s; /* Transición suave */
}

.floating-button:hover {
    transform: scale(1.1); /* Efecto hover */
}

.floating-button img {
    width: 70%;
    height: 70%;
}

iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.responsive-img {
    width: 100%;
    max-width: 800px; /* Cambiado a 800px */
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 20px; /* Bordes redondeados */
}

.columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.column {
    flex: 1;
    min-width: 300px;
    max-width: 48%;
    margin: 0.5rem;
    background-color: #f7f7f7;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.column.full-width {
    flex-basis: 100%;
    max-width: 100%;
}

.column:hover {
    transform: translateY(-10px);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem; /* Tamaño de fuente aumentado */
    margin-top: 1rem;
    display: inline-block;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
}

.contact-button {
    background-color: #2d5a8d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem; /* Tamaño de fuente aumentado */
    margin-top: 1rem;
    display: inline-block;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #1e3a5f;
}

.emoji {
    font-size: 1.8rem; /* Tamaño de fuente aumentado */
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        top: 0;
        right: -100%; /* Inicialmente oculta el menú */
        background: #2d5a8d;
        width: 70%; /* Ancho del menú */
        height: 100vh; /* Altura del menú, ajusta según sea necesario */
        position: fixed;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease; /* Transición suave */
    }

    nav.show {
        right: 0; /* Muestra el menú al agregar la clase .show */
    }

    .mobile-menu-button {
        display: block;
        background: #1e3a5f;
        color: #fff;
        border: none;
        padding: 1rem;
        cursor: pointer;
        width: 100%;
        text-align: left; /* Alinea el texto del botón a la izquierda */
    }

    .close-menu-button {
        display: none; /* Oculta el botón de cierre por defecto */
        position: absolute;
        top: 10px;
        right: 10px; /* Alinea el botón de cierre a la derecha */
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }

    nav.show .close-menu-button {
        display: block; /* Muestra el botón de cierre cuando el menú está abierto */
    }

    .columns {
        flex-direction: column;
    }

    .column {
        max-width: 100%;
    }

    .column.full-width {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .close-menu-button {
        display: none; /* Ocultar el botón de cierre en pantallas grandes */
    }
}
