/*Generales*/
body{
    margin: 0;
    text-align: center;
        font-family: "Poppins", serif;
        font-weight: 400;
        font-style: normal;
}

/*barra de navegación o menu interactivo*/

.fondo-nav {
    background-color: #4CBAB6;
    padding: 0;
}

a.nav-link {
    padding: 20px auto !important;
    color: white !important;
    box-shadow: none;
}

a.nav-link:hover {
    background-color: #1B3A45;
}
.navbar-toggler:focus {
    box-shadow: none;

}

/*seccion de Header o Carrusel*/
 
header{
    background-image: url(imagenes/separador1.jpg);
    background-repeat: no-repeat;
    background-position: bottom center;
    color: white;
    padding-bottom: 20px;
    }

    /*sección principal del contenido*/
.contenido{
    width: 100%;
}
.ficha1{
    display: flex;
    width: 100%;
    margin-top: 100px;
    height: 520px;
    background-color: #A5AAA9;
}
.ficha2{
    display: flex;
    width: 100%;
    margin-top: 100px;
    height: 520px;
}
.fichacont1{
    display: flex;
    width: 50%;
    text-align: left;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color:#fff;
}
.fichacont1 p{
    width: 50%;
}
.ficha1 img{
    width: 35%;
    margin-left: 10%;
}
.fichacont2{
    display: flex;
    width: 50%;
    text-align: left;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.fichacont2 p{
    width: 50%;
    
    margin-left: 10%;
}
.ficha2 img{
    width: 35%;
}


/*Sección de Footer*/

footer{
    display: flex;
    width: 100%;
    background-color: #1B3A45;
    color: white;
    margin-top: 30px;
    text-decoration: none;
}
.fsec{
    display: flex;
    color: white;
    width: 20%;
    margin-left: 10%;
    flex-direction: column;
}
.fsec img{
    width: 20%;
    float: left;
}
.fsec p{
    float: left;
    text-align: center;
    width: 70%;
    margin-left: 5%;
    margin-top: 13px;
}
.felemento a {
    text-decoration: none;
    color: white;
    width: 100%;
}
.felemento{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 130px;
    width: 100%;
    float: left;
}


/* sección del main o contenido principal de nosotros*/


.tarjetas{
    display: flex;
    width: 70%;
    flex-direction: column;
    margin-top: 50px;
    margin-left: 15%;
}
.horarios{
    display: flex;
    width: 100%;
    flex-direction: column;
    text-align: center;
}



/*Tarjeta de contacto*/
.cartas{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    margin-top: 60px ;
}
.carta{
    position:relative;
    width: 40%;
    height: 350px;
}
.carta div{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backface-visibility: hidden;
    transition: 1s;
    border-radius: 20px;

}
.carta p,h4{
    width: 70%;
}
.carta img{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.carta .frente{
    transform: perspective(500px) rotateY(0deg);
}
.carta .revez{
    background-color: #1B3A45;
    color: #fff;
    transform: perspective(500px) rotateY(180deg);
}
.carta:hover .frente{
   transform: perspective(500px) rotateY(180deg);
}
.carta:hover .revez{
    transform: perspective(500px) rotateY(360deg);
}


/*servicios*/
.menu{
    margin-top: 50px;
}

/* Contenedor principal */
#container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

/* Columna de categorías */
#categories {
    flex: 1;
    min-width: 250px;
}

#categories ul {
    list-style: none;
    padding: 0;
}

#categories li {
    background-color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    text-align: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Colores personalizados para los botones */
#categories li:nth-child(1) {
    background-color: #dd7eea;
}

#categories li:nth-child(2) {
    background-color: #ff1720;
}

#categories li:nth-child(3) {
    background-color: #ff1c80;
}

#categories li:nth-child(4) {
    background-color: #00a13f;
}

#categories li:nth-child(5) {
    background-color: #752a95;
}

#categories li:nth-child(6) {
    background-color: #ff6110;
}
#categories li:nth-child(7) {
    background-color: #7fe0d1;
}

#categories li:hover {
    transform: scale(1.05);
}

/* Botones con color más oscuro al presionarlos */
#categories li:nth-child(1):active {
    background-color: #8a2597;
}

#categories li:nth-child(2):active {
    background-color: #ae0e13;
}

#categories li:nth-child(3):active {
    background-color: #d71066;
}

#categories li:nth-child(4):active {
    background-color: #038535;
}

#categories li:nth-child(5):active {
    background-color: #530b71;
}

#categories li:nth-child(6):active {
    background-color: #d74d08;
}
#categories li:nth-child(7):active {
    background-color: #49c9b6;
}

/* Columna de contenido */
#content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Espacio para imágenes */
#images {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#images img {
    width: calc(50% - 10px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Caja de información */
#info-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}



/* Formato de registro*/


#overlay {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2;
    cursor: pointer;
}

/* Contenedor de la ventana emergente */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    z-index: 3;
    width: 75%;
    text-align: center;
    border-radius: 10px;
}


Form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-top: 50px;
    padding: 15px;
}

.form-container {
    background: #edf8f6;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.row label {
    text-align: right;
}

.row > * {
    padding: 5px;
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #1B3A45;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}






/*Apartados de Querys */

@media (max-width: 1200px){
    .tarjetas{
        width: 80%;
        margin-left: 10%;
    }
    .carta p{
        font-size: 16px;
    }

    /*menu interactivo*/
    #container {
        flex-direction: column;
    }

    #categories {
        flex: none;
        width: 100%;
    }

    #content {
        flex: none;
    }
    .ficha1 img{
        width: 43%;
        margin-left: 7%;
    }
    .ficha2 img{
        width: 43%;
    }
}

@media (max-width: 992px){
    
    .home{
         width: 25%;
    }
    .ficha1, .ficha2{
        height: 350px;
    }
    .ficha1 img{
        width: 40%;
        margin-left: 0%;
        height: auto;
        margin-left: 8%;
    }
    .ficha2 img{
        width: 40%;
        margin-left: 0%;
        height: auto;
    }
    .fichacont2{
        margin-left: 5%;
    }
    .fichacont2 p{
        width: 80%;
    }
    .tarjetas{
        width: 90%;
        margin-left: 5%;
    }
    .carta p{
        font-size: 14px;
    }



    /*menu interactivo*/

    #images img {
        max-width: 100%;
    }

}
@media (max-width: 768px){
    
    .home{
        width: 25%;
    }
    .navbar img {
        width: 100%;
    }   
    
    .empresa{
        width: 80%;
    }
    header{
        margin-top: 30px;
    }
    .ficha1 img{
        width: 48%;
        margin-left: 0%;
    }
    .ficha2 img{
        width: 48%;
        margin-left: 5%;
    }
    .fichacont1 p{
        width: 80%;
    }
    .fichacont2 p{
        width: 80%;
    }
    .fichacont2{
        margin-left: 0%;
    }
    footer{
        background-color: #4CBAB6;
    }
    .fsec{
        display: flex;
        width: 30%;
        margin-left: 2.5%;
        margin-top: 25px;
    }
    .felemento{
        flex-direction: column;
    }
    .felemento a{
        margin-top: 10px;
    } 
    .fsec p{
        width: 100%;
    }
    /*Nosotros*/
    .horarios{
        margin-top: 200px;
    }

    /*sección de tarjetas */
    .tarjetas{
        width: 100%;
        margin-left: 0%;
    }
    .carta p{
        font-size: 14px;
    }
    .carta{
        width: 46%;
    } 

    /*menu interactivo*/
    .menu{
        margin-top: 50px;
    }
    #container {
        padding: 10px;
    }

    #info-box {
        padding: 15px;
    }
    Form {
        margin-top: 50px;
    }
    #popup{
        position: absolute;
        width: 100%;
        font-size: 15px;
        z-index: 3;
        margin-top: 100px;
    }


}


@media (max-width: 576px){
    
    header{
        margin-top: 20px;
    }
    .ficha1{
        flex-direction: column;
        height: 1100px;
        margin-top: 0px;

    }
    .ficha2{
        flex-direction: column-reverse;
        height: 1100px;
        margin-top: 0px;
    }
    .fichacont1 p{
        width: 75%;
        margin: 0;
    }
    .fichacont1{
        width: 100%;
        height: 100%;
    }
    .fichacont2{
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .ficha1 img{
        width: 100%;
        margin-left: 0%;
    }
    .fichacont2 p{
        width: 75%;
        margin: 0;
    }
    .ficha2 img{
        width: 100%;
        margin-left: 0%;
    }

    .navbar img {
        width: 200px;
    }
    a.navbar-brand {
        margin:auto;
    }


    footer{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #1B3A45;
        padding-bottom: 100px;
    }
    .fsec{
        width: 60%;
        align-items: center;
        justify-content: center;
    }
    .felemento{
        margin-top: 40px;
    }


     /*sección de tarjetas */
     .tarjetas{
        width: 100%;
        margin-left: 0%;
    }
    .cartas{
        flex-direction: column;
    }
    .carta:nth-child(2){
        margin-top: 60px;
    }
    .carta{
        width: 65%;
    }
    .carta p{
        font-size: 14px;
    }


    /*menu interactivo*/
    #categories li {
        font-size: 0.9rem;
    }

    #info-box h2 {
        font-size: 1.2rem;
    }

    #info-box p {
        font-size: 0.9rem;
    }
    #popup{
        font-size: 13px;
        margin-top: 20px;
    }
}


@media (min-width:575px) {

    .navbar img {
        width:auto;
    }
    a.navbar-brand {
        margin:auto;
    }

}

@media (min-width:767px) {

    .navbar img {
        width: auto;
    }
    a.navbar-brand {
        margin:auto;
    }

}
@media (max-width:375px) {

    .navbar img {
        width:auto;
    }
    a.navbar-brand {
        margin:auto;
    }
    .ficha1,.ficha2{
        height: 800px;
    }
    .carta{
        width: 80%;
    }
}
