/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}
#inicio {
    margin-top: 100px; /* Ajusta este valor según el tamaño del menú */
}

/* Barra de navegación */
header {
    background-color: #0D3165;
    padding: 15px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
}

header .logo-nav {
    height: 70px;
    margin-right: auto;
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 10px 15px;
}

/* Estilos generales para secciones */
section {
    padding: 30px 20px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.text, .carousel-container {
    flex: 1 1 500px;
    margin: 20px;
}

/* Carrusel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    height: 400px;
    border-radius: 8px;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    display: block;
}

/* Flechas de navegación */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: #0D3165;
    font-weight: bold;
    font-size: 24px;
    transition: background-color 0.3s;
    user-select: none;
    transform: translateY(-50%);
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(13, 49, 101, 0.1);
}

/* Encabezados */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #0D3165;
    margin-bottom: 20px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #0D3165;
    margin-bottom: 10px;
}

/* Texto */
p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* Botones de contacto */
.whatsapp-btn, .facebook-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-align: center;
    width: 180px;
    margin-top: 10px;
}

.whatsapp-btn {
    background-color: #25D366;
    margin-right: 10px;
}

.facebook-btn {
    background-color: #3b5998;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

form input, form textarea, form button {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form input:focus, form textarea:focus {
    border-color: #0D3165;
    outline: none;
    box-shadow: 0px 0px 5px rgba(13, 49, 101, 0.5);
}

/* Estilos para la sección de contacto */
#contacto {
    padding: 50px 20px;
    background-color: #f4f4f9;
    text-align: center;
}

#contacto h2 {
    font-family: 'Playfair Display', serif;
    color: #0D3165;
    font-size: 2em;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.contact-info, .contact-phone, .social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Lista de servicios */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: #333;
    line-height: 1.8;
    margin-bottom: 5px;
}

/* Responsividad */
@media (max-width: 768px) {
    /* Barra de navegación móvil */
    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #0D3165;
        position: fixed;
        top: 65px;
        right: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    header {
        padding: 10px 20px;
    }

    header .logo-nav {
        height: 50px;
    }

    /* Espacio alrededor de las secciones */
    section {
        padding: 80px 20px 40px;
    }

    .carousel-container {
        width: 100%;
        max-width: 100%; /* Para que ocupe todo el ancho de la pantalla */
    }

    .carousel {
        width: 100%;
        height: 200px; /* Define una altura fija para todas las imágenes del carrusel en móvil */
        overflow: hidden; /* Asegura que las imágenes no se salgan del contenedor */
    }

    .carousel-image {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Recorta la imagen para llenar el espacio sin distorsión */
    }

    .prev, .next {
        font-size: 20px;
        padding: 10px;
        top: 45%;
    }

    /* Ajuste de los botones de contacto */
    .whatsapp-btn, .facebook-btn {
        width: 100%;
        margin: 5px 0;
    }

    /* Texto */
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}
