/* General Styles */
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;
    }
}

/* SLIDER */
.swiper-container {
    width: 100%;
    height: 88vh;
    /* Slightly reduced height */
    position: relative;
    overflow: hidden;
}

/* Overlay for slide titles */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

/* Slide titles */
.slide-title {
    color: #fff;
    font-size: 1.8rem;
    text-align: center;
    padding: 10px 20px;
    background: rgba(140, 0, 1, 0.85);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, opacity 0.5s ease;
    font-family: 'Merriweather', serif;
}

/* Hide the title on hover for a cleaner look */
.swiper-slide:hover .slide-title {
    transform: translateY(-10px);
    opacity: 0.9;
}

/* Adjust images for better responsiveness */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom navigation buttons */
/* Custom navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.swiper-button-next {
    right: 20px; /* Mueve el botón de siguiente a la derecha */
}

.swiper-button-prev {
    left: 20px; /* Mueve el botón de anterior a la izquierda */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(140, 0, 1, 0.7);
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
    transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #8c0001;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    /* Ajustes en el tamaño del contenedor */
    .swiper-container {
        height: 60vh; /* Reducido para ocupar menos espacio en pantallas pequeñas */
    }

    /* Ajuste de los títulos */
    .slide-title {
        font-size: 1.5rem; /* Reducido para pantallas más pequeñas */
        padding: 8px 15px;
    }

    /* Ajuste de los botones de navegación */
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    /* Ajuste de la imagen */
    .swiper-slide img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

    /* Ajuste de la paginación (si la usas) */
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }

    /* Asegúrate de que los botones de navegación sean más visibles */
    .swiper-button-next,
    .swiper-button-prev {
        background-color: rgba(140, 0, 1, 0.7);
    }

    /* Asegúrate de que las imágenes ocupen el 100% del ancho del contenedor */
    .swiper-slide img {
        width: 100%;
        object-fit: cover;
    }

    /* Reducir el margen inferior del contenedor */
    .swiper-container {
        margin-bottom: 0; /* Elimina cualquier espacio extra debajo */
    }
}



/* CONTENT AFTER SLIDER */
.content-after-slider {
    padding: 40px 20px;
    background-color: var(--secondary-color);
    background-image: radial-gradient(circle, var(--primary-color) 1px, #f8f1e6 1px);
    background-size: 20px 20px;
    text-align: center;
    border-radius: 8px;
}

.texto {
    background-color: #f8f1e6;
    width: 80%;
    margin: 20px auto;
    text-align: left;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.content-title {
    font-size: 2rem;
    font-weight: 600;
    color: #8c0001;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Merriweather', serif;
    text-align: center;
    /* Alineación centrada */
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.content-text strong {
    color: #8c0001;
    font-weight: 700;
}

.content-divider {
    width: 60px;
    height: 3px;
    background-color: #8c0001;
    margin: 20px auto;
    border: none;
}

@media (max-width: 768px) {
    .content-title {
        font-size: 1.5rem;
    }

    .content-text {
        font-size: 1rem;
    }
}

/* CARDS */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 40px 20px;
    background-color: var(--secondary-color);
    background-image: radial-gradient(circle, var(--primary-color) 1px, #f8f1e6 1px);
    background-size: 20px 20px;
}

.card {
    background-color: #f8f1e6;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.8rem;
    color: #8c0001;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #8c0001;
    border-radius: 12px 12px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .card {
        width: 90%;
    }
}


/*Final*/
/* Sección de Especialidades */
.seccion {
    max-width: 900px;
    margin: auto;
    margin-bottom: 75px;
    padding: 30px;
    background-color: #f8f1e6;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.seccion h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #8c0001;
    font-weight: bold;
    font-family: 'Merriweather', serif;
}

.seccion p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #666;
}

.seccion ul {
    list-style-type: disc;
    padding-left: 40px;
    text-align: left;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.1rem;
}

.seccion li {
    margin-bottom: 12px;
}

.boton {
    background-color: #8c0001;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton:hover {
    background-color: #700001;
    transform: scale(1.05);
}

.especialidades-lista {
    display: flex;
    justify-content: space-between;
}

.especialidades-lista ul {
    padding: 0;
    margin: 0;
    width: 48%;
}


.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%;
}