html {
   box-sizing: border-box;
    font-size: 62.5%;
    min-height: 100%;
    position: relative;
}

*, *:before, *:after{
    box-sizing: inherit
}

*{
    margin: 0;
    padding: 0;
}

body{
    font-size: 1.6rem;
    height: 100%;
    background-color: var(--azulOscuro);
}




/***********************************************************

        ************ VARIABLES **********

************************************************************/
:root{
    --fuenteTitulos: "Libre Baskerville", serif;
    --fuenteTextos:  "Montserrat", sans-serif;

    --azulOscuro: #003F66;
    --azulClaro:    #54BDFF;
    --blanco: #ffffff;
}


/***********************************************************

        ************ STILOS GENERALES **********

************************************************************/
.contenedor {
    margin: 0 auto;
    margin-top: 20rem;
    perspective: 1000px;
    width: 80%;
    height: 60vh;
    cursor: pointer;
}

img{
    width: 100%;
    height: 100%;
}

h2{
    font-size: 3.8rem;
    font-family: var(--fuenteTitulos);
    font-weight: 700;
}

h4{
    font-size: 2rem;
    font-family: var(--fuenteTextos);
    font-weight: 600;
    margin-top: 2rem;
}

h3{
    font-size: 3.2rem;
    margin: 0;
    padding: 0;
}


.espaciadoLetras{
    letter-spacing: 5px;
}

p{
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
    color: var(--azulOscuro);
}

.btn-acciones{
    border: solid 1px var(--azulClaro);
    padding: 1rem;
    width: 10rem;
    border-radius: 1rem;
    background-color: var(--azulOscuro);
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-acciones I{
    border-radius: 1rem;
}

.btn-acciones span{
    font-size: 1.2rem;
}

 .prueba{
    width: 15rem;
    height: 15rem;
    margin: 0 auto;
}


/***********************************************************

        ************ ESTILOS **********

************************************************************/
.tarjeta {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.tarjeta.volteada {
    transform: rotateY(180deg);
}

.cara {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.63) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.658) 0px 4px 4px, rgba(0, 0, 0, 0.644) 0px 8px 8px, rgba(0, 0, 0, 0.678) 0px 16px 16px;
}

/*************** FRENTE ***************/

 .frente {
    background-color: var(--blanco);   
}

.content__frente{
    color: var(--azulOscuro);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 2rem;
    position: relative;
}

.line {
    position: absolute;
    height: .3rem;
    background-color: var(--azulOscuro);
    
}

.line::before,
.line::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}


.line::before {
    left: -5px;
}

.line::after {
    right: -5px;
}

.line-top {
    top: 39%;
    left: 25%;
    width: 50%;
}

.line-top::before {
    background-color: var(--azulOscuro); 
    border: .5rem solid var(--azulOscuro);
}

.line-top::after {
    background-color: var(--azulOscuro); 
    border: .5rem solid var(--azulOscuro);
}


.frente__informacion-logo{
    width: 35%;
}

.frente__informacion{
   text-align: center;
}


.frente__contacto{
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.frente__contacto-elemto {
    display: grid;
    grid-template-columns: auto 2fr;
    column-gap: 2rem;
}

.frente__contacto-elemto span{
    width: 100%;
}

.click-instruction {
    font-size: clamp(0.7rem, 1.6vw, 1.2rem);
    margin-top: 25px;
    opacity: 0.7;
    font-style: italic;
    color: black;
}

.frente__bottons{
    position: absolute;
    bottom: -6rem;
    right: -20rem;
    width: 50%;
}

.content__btn{
    width: 100%;
    display: flex;
    justify-content: space-between;
    
}

/*************** ATRAS ***************/

 .atras {
    background-color: var(--blanco);
    transform: rotateY(180deg);
    color: var(--azulOscuro);
}

.atras__servicios{
    margin-top: 5rem;
}

.atras__servicios-lista{
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    
}

.atras__servicios-item{
    background-color: var(--azulOscuro);
    margin-bottom: .5rem;
    color: var(--blanco);
    padding: 1rem;
    border-radius: .5rem;
    border-left: solid 1rem var(--azulClaro );
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    width: 100%;
}

.atras__servicios-item:hover{
    transform: translateX(10px);
}

.acordeon{
    width: 100%;
}

.accordion-button{
    background-color: var(--azulOscuro);
    color: var(--blanco);
}

.accordion-button:not(.collapsed){
    background-color: var(--azulClaro);
    color: var(--blanco);
}

/* Estilo para el modal */
.custom-modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Posición fija para cubrir toda la pantalla */
    z-index: 1050; /* Z-index alto para estar por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilitar scroll si el contenido es muy grande */
    background-color: rgba(0,0,0,0.7); /* Fondo semi-transparente oscuro */
    justify-content: center;
    align-items: center;
}

.custom-modal-content {
    background-color: #1a3a5c;
    margin: auto;
    padding: 30px;
    border-radius: 1rem;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

.custom-modal-content h3 {
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.custom-modal-content p {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.custom-modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.custom-modal-footer .btn {
    min-width: 120px;
}

/* Animación para el modal */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}


.content-atras{
    height: 90% !important;
    overflow-y: auto ;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atras__servicios{
    width: 90%;
    max-width: 90%;
    margin-top: 2rem;
}

.accordion-item{
    margin-bottom: 1rem;
    border-radius: .5rem !important;
    
}

/*************** LINEAS ***************/
.lineaTop{
    text-align: center;
    border: solid .1rem black;
    width: 98%;
    position: absolute;
    top: 3%;
    left: 1%;
}

.linealeft{
    border: solid .1rem black;
    height: 98%;
    position: absolute;
    left: 2%;
    top: 1.5%
}

.lineaRigth{
    border: solid .1rem black;
    height: 98%;
    position: absolute;
    right: 2%;
    top: 1.5%
}

.lineaBootom{
    text-align: center;
    border: solid .1rem black;
    width: 98%;
    position: absolute;
    bottom: 3%;
    left: 1%;
}


/***********************************************************

        ************ MEDIAQUERYS **********

************************************************************/ 

@media (max-height: 900px) {
    .contenedor {
        margin-top: 5rem;
        perspective: 1000px;
        width: 90%;
        height: 75vh;
    }

    .frente__informacion-logo{
        width: 30%;
    }

    .frente__informacion-nombre{
        font-size: 3.2rem;
    }

    .frente__informacion-texto{
        font-size: 2.5rem;
    }

    .frente__informacion-texto_dos{
        font-size: 1.6rem;
    }

    .frente__contacto-elemto {
        column-gap: 1rem;
    }

    .frente__contacto-elemto{
        font-size: 1.2rem;
    }

    h4{
        margin-top: 1rem;
    }

    .frente__bottons{
        right: -24rem;
        bottom: -3rem;
        width: 58%;
    }

    .btn-acciones{
        font-size: 1rem;
    }

    .atras__servicios{
        margin-top: 1.5rem;
    }

    .atras__servicios-item{
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 820px){
    

    .frente__bottons{
        right: 10rem;
        bottom: -4rem;
        width: 60%;
    }

    .btn-acciones{
        font-size: 1rem;
    }

    .atras__servicios{
        margin-top: 1.5rem;
    }

    .atras__servicios-item{
        font-size: 1.5rem;
    }

    .accordion-button{
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px){
    .contenedor {
        margin-top: 4rem;
        perspective: 1000px;
        width: 90%;
        height: 80vh;
    }

    .line-top {
        top: 45%;
        left: 25%;
        width: 50%;
    }

    .frente__informacion-logo{
        width: 40%;
    }

    .frente__informacion-nombre{
        font-size: 3.2rem;
    }

    .frente__informacion-texto{
        font-size: 2.5rem;
    }

    .frente__informacion-texto_dos{
        font-size: 1.6rem;
    }

    .frente__contacto-elemto {
        column-gap: 1rem;
    }

    .frente__contacto-elemto{
        font-size: 1.2rem;
    }

    h4{
        margin-top: 1rem;
    }

    .frente__bottons{
        right: 10rem;
        bottom: -6rem;
        width: 60%;
    }

    .btn-acciones{
        font-size: 1rem;
    }

    .atras__servicios{
        margin-top: 1.5rem;
    }

    .atras__servicios-item{
        font-size: 1.5rem;
    }

    .accordion-button{
        font-size: 2rem;
    }
}

@media screen and (max-width: 412px){
    .contenedor {
        margin-top: 0rem;
        perspective: 1000px;
        width: 97%;
        height: 95vh;
    }

    .line-top {
        top: 45%;
        left: 25%;
        width: 50%;
    }

    .frente__informacion-logo{
        width: 50%;
    }

    .frente__informacion-nombre{
        font-size: 2.1rem;
        margin-top: 2rem;
    }

    .frente__informacion-texto{
        font-size: 1.6rem;
    }

    .frente__informacion-texto_dos{
        font-size: 1.1rem;
    }

    .frente__contacto-elemto {
        column-gap: 1rem;
    }

    .frente__contacto-elemto{
        font-size: 1.2rem;
    }

    h4{
        margin-top: 1rem;
    }

    .frente__bottons{
        right: 2rem;
        bottom: -8rem;
        width: 90%;
    }

    .btn-acciones{
        font-size: 1rem;
    }

    .atras__servicios{
        margin-top: 1.5rem;
    }

    .atras__servicios-item{
        font-size: 1.5rem;
    }

    .accordion-button{
        font-size: 1.4rem;
    }

    .atras__servicios-item{
        font-size: 1.2rem;
    }

    .atras__titulo h2{
        font-size: 2.5rem;
    }

    .atras__titulo{
        margin-top: 2rem;
    }

   
    .atras__servicios{
        width: 90%;
        max-width: 90%;
        margin-top: 2rem;
    }

    .prueba{
        width: 10rem;
        height: 10rem;
    }

    .click-instruction{
        font-size: 1.2rem;
    }
}


