/* Estilos base */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f3ee;
    color: #547794;
    font-size: 16px;
    line-height: 1.6;
}

/* Contenedor principal */
.fondo {
    background-color: #547794; /* Fondo azul */
    min-height: 100vh; /* Mantén la altura mínima de la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Oculta el exceso de fondo */
    color: #f6f3ee;
    padding: 0; /* Elimina el padding */
}

/* Menú desplegable (para móviles) */
.menu-toggle {
    display: none; /* Oculto por defecto */
    font-size: 24px;
    cursor: pointer;
    color: #f6f3ee;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.superior {
    background-color: #547794;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: top 0.3s;
}

.arr {
    font-size: 18px;
    cursor: pointer;
    color: #f6f3ee;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.arr:hover {
    background-color: rgba(246, 243, 238, 0.1);
}

/* Contenedor de texto */
.contenedor-texto {
    background-color: rgba(246, 243, 238, 0.1);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 20px;
    text-align: center;
}

.nam {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #f6f3ee;
}

.tex {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #f6f3ee;
}

.botones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#mas, #mas1 {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #f6f3ee;
    color: #f6f3ee;
    cursor: pointer;
    transition: all 0.3s;
}

#mas:hover, #mas1:hover {
    background-color: #f6f3ee;
    color: #547794;
}

.ft {
    width: 100%; /* Ocupa el 100% del contenedor */
    height: 1200px; /* Altura fija igual a la imagen */
    object-fit: cover; /* Ajusta la imagen sin dejar bordes sobrantes */
    display: block; /* Elimina espacios adicionales debajo de la imagen */
    margin: 0; /* Elimina márgenes */
    padding: 0; /* Elimina rellenos */
    border: none; /* Elimina bordes */
}

/* Página 1: Texto a la izquierda, imagen a la derecha (PC) */
.fondo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
}

.contenedor-texto {
    flex: 1;
    margin-right: 50px;
}

.ft {
    flex: 1;
    max-width: 50%;
    height: auto;
}

/* Página 2: Atención personalizada */
.pag2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #f6f3ee;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.cua {
    max-width: 50%;
    text-align: left;
}

.titpag2 {
    font-size: 2rem;
    line-height: 1.2;
    color: #547794;
    margin-bottom: 20px;
}

.txtpag2 {
    font-size: 1rem;
    line-height: 1.5;
    color: #547794;
    margin-bottom: 20px;
}

.etiqueta {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

.fttc {
    max-width: 50%;
    text-align: right;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);

}

.ftt {
    max-width: 100%;
    height: auto;
}

.cuad {
    display: none; /* Ocultar en móviles */
}

/* Página 3: Video arriba, cuadros de texto 2x2 debajo (PC) */
.pag3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f6f3ee;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.vid {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);

}

.vid video {
    width: 100%;
    height: auto;
    display: block;
}

.titpag3 {
    font-size: 2rem;
    line-height: 1.2;
    color: #547794;
    margin-bottom: 40px;
    text-align: center;
}
.card{
    text-align: justify;
}

.cuadro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

.cuadritos {
    background-color: #c2c9cd;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    width: 100%;
    height: auto;
}

.cuadritos p {
    font-size: 1rem;
    line-height: 1.5;
    color: #547794;
}

.containerft{
    display: flex;

}

.cardsd {
    display: flex;
    border-radius: 20px;
    margin-left: 10px;
    height: 200px;
    background-color: black;
    flex: 1;
    transition: .3s all ease;
}

.cardsd:hover {
    flex: 2;
    background-color: black;
}

/* Página 4: Reseñas */
.pag4 {
    background-color: #f6f3ee;
    padding: 50px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-reseñas {
    font-size: 2rem;
    line-height: 1.2;
    color: #547794;
    margin-bottom: 40px;
}

.lista-reseñas {
    max-width: 800px;
    margin: 0 auto;
}

.reseña {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #c2c9cd;
    border-radius: 10px;
    text-align: left;
}

.foto-usuario img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.contenido-reseña {
    flex: 1;
    
}

.estrellas {
    color: gold;
    font-size: 24px;
    margin-bottom: 10px;
}

.nombre-usuario {
    font-weight: bold;
    margin-bottom: 10px;
    color: #547794;
}

.texto-reseña {
    font-size: 1rem;
    line-height: 1.5;
    color: #547794;
}

.agregar-reseña {
    margin-top: 40px;
    padding: 20px;
    background-color: #c2c9cd;
    border-radius: 10px;
}

.agregar-reseña h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #547794;
}

#form-reseña input,
#form-reseña textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #547794;
    border-radius: 5px;
    background-color: #f6f3ee;
    color: #547794;
}

#form-reseña textarea {
    height: 100px;
}

#form-reseña button {
    background-color: #547794;
    color: #f6f3ee;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#form-reseña button:hover {
    background-color: #3a5a6e;
}

/* Página 5: Redes sociales y ubicación */
.pag5 {
    background-color: #547794;
    padding: 50px;
    text-align: center;
    color: #f6f3ee;
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-redes {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.carrusel-redes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.carrusel-redes img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.carrusel-redes img:hover {
    transform: scale(1.1);
}

.ubicacion iframe {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: none;
    border-radius: 10px;
}
@media(max-width: 450px){
    .pag2{
        display: flex;
        flex-direction: column;
    }
    .cua {
        max-width: 100%;
        text-align: justify;
    }
    .card-container{
        margin: auto;
        align-content: center;
    }
    .titpag3{
        align-content: center;
        margin: auto 0;
    }
    .card{
        margin: auto;
        width: 90%;
    }
}

/* Media Queries para responsividad */
@media (max-width: 1024px) {
    /* Página 1: Texto arriba, foto abajo */
    .fondo {
        text-align: justify;
        flex-direction: column;
        padding: 20px;
    }

    .contenedor-texto {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .ft {
        max-width: 100%;
    }

    /* Página 3: Video arriba, cuadros de texto 1x4 debajo */
    .pag3 {
        padding: 20px;
    }

    .cuadro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cuadritos {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostrar el botón de menú en móviles */
    }

    .superior {
        flex-direction: column;
        align-items: center;
        top: -100%; /* Ocultar el menú por defecto */
        transition: top 0.3s;
    }

    .superior.active {
        top: 0; /* Mostrar el menú cuando está activo */
    }

    .arr {
        width: 100%;
        text-align: center;
    }

    .nam {
        font-size: 2rem;
    }

    .tex {
        font-size: 1rem;
    }

    .titpag2, .titpag3, .titulo-reseñas, .titulo-redes {
        font-size: 1.5rem;
    }

    .botones {
        flex-direction: column;
    }

    #mas, #mas1 {
        width: 100%;
    }

    .pag2, .pag3, .pag4, .pag5 {
        padding: 20px;
    }

    /* Centrar mejor el contenido en móviles */
    .contenedor-texto, .pag2, .pag3, .pag4, .pag5 {
        text-align: center;
    }

    .pag3 .vid, .pag3 .cuadro {
        width: 100%;
        max-width: 100%;
    }

    .pag3 .cuadro {
        gap: 20px;
    }

    .pag3 .cuadritos {
        width: 100%;
        height: auto;
    }
}