body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--secondary-color);
    background-image: radial-gradient(circle, var(--primary-color) 1px, #f8f1e6 1px);
    background-size: 20px 20px;
}

:root {
    --primary-color: #8c0001;
    --secondary-color: #dcdcdc;
    --text-color: #000;
    --menu-padding: 0.5rem;
    --menu-item-spacing: 2rem;
    --transition-duration: 0.3s;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #f8f1e6;
    color: var(--text-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header h1 {
    margin: 0;
    font-family: 'Merriweather', serif;
}

header h1 a img {
    height: 50px;
    margin-left: 100%;
}

nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin-left: var(--menu-item-spacing);
    position: relative;
}

.menu-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: var(--menu-padding);
    transition: color var(--transition-duration) ease, background-color var(--transition-duration) ease;
    font-family: 'Lato', sans-serif;
}

/* Hover Effect */
.menu-item a:hover {
    color: var(--primary-color);
    background-color: rgba(140, 0, 1, 0.1);
    /* Agregado un fondo semi-transparente */
    text-decoration: underline;
    /* Agregado subrayado para mayor visibilidad */
}


/* Active Item */
.menu-item.current a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Indicator for Active Item */
.menu-item.current::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Arrow Button */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    justify-content: center;
    align-items: center;
}

.menu-toggle.open .arrow {
    transform: rotate(180deg);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--primary-color);
    transition: transform var(--transition-duration) ease;
}



/* Responsive Styles */
@media (max-width: 1110px) {
    .container {
        flex-direction: column;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu {
        flex-direction: column;
        background-color: #f8f1e6;
        width: 100%;
    }

    .menu-item {
        text-align: center;
        margin: 0;
        padding: 1.2rem 0;
        border-top: 1px solid #f8f1e6;
    }

    .menu-toggle {
        display: flex;
    }

    nav.show-menu {
        display: flex;
    }

    header h1 a img {
        margin-left: 0%;
    }
}

@media (max-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
}

/* Contenedor principal */
.form-section {
    padding: 2rem;
    background-color: #f8f1e6;
    border-radius: 12px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    text-align: center;
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Información de contacto */
.contact-info {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Formulario */
.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Botón de envío */
button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: var(--hover-color);
    transform: scale(1.02);
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    z-index: 1000;
    /* Asegura que esté por encima de otros elementos */
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #f8f1e6;
    color: #000;
    padding: 60px 20px;
    /* Aumentado el padding */
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    font-family: 'Lato', sans-serif;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 40px;
    /* Aumentado el margen inferior */
}

.footer-info p {
    margin: 10px 0;
    /* Aumentado el margen entre párrafos */
    line-height: 1.6;
    /* Aumentado el line-height */
}

.footer a {
    color: #8c0001;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #e63946;
}

.footer-social {
    margin: 30px 0;
    /* Aumentado el margen */
}

.footer-social a {
    margin: 0 20px;
    /* Aumentado el espacio entre iconos */
    display: inline-block;
}

.footer-social .iconos-footer {
    font-size: 32px;
    color: #8c0001;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .iconos-footer:hover {
    color: #e63946;
    transform: scale(1.2);
}

.footer-map {
    margin-top: 40px;
    /* Aumentado el margen superior */
}

.footer iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logof {
    width: 15%;
}