@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


*{
    font-family: "Playfair Display", serif;
}

body{
    padding: 0;
    margin: 0;
}


/* nav */

nav {
    padding: 10px;
    display: flex;
    position: fixed;
    top: 20px;
    left: 60px;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(23, 37, 56, 0.832);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(15px);
    box-shadow: 0 70px 80px rgba(29, 29, 29, 0.179);
    border-radius: 30px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    z-index: 3;
}

nav img {
    width: 18%;   
}

nav .hamburger {
   display: none;
}

.container-nav-options{
    display: flex;
    justify-content: space-around;
    gap: 25px;
}

.container-nav-options li{
    list-style: none;
    font-size: 1rem;
}

nav ul a li:hover {
    color: rgb(201, 172, 99);
    transition: all 0.5s;
}

nav ul a li:active {
    color: rgb(196, 148, 29);
}

.container-nav-options a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    color: rgb(240, 240, 240);
}


/* header */

.container-header-box {
    background: url(./img/header-img-1.jpg) no-repeat center center;
    background-size: cover;
    width: 85%;
    top: 10px;
    color: rgb(245, 245, 245);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    height: 70vh;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.container-header-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 21, 36, 0.5);
    border-radius: 20px; 
    z-index: 1;
}

.container-header-box * {
    position: relative;
    z-index: 2; 
}

.container-txt-btn-header-box{
    position: absolute;
    bottom: 50px;
    left: 50px;
    line-height: 1.5rem;
}
.container-txt-btn-header-box h1 {
    font-size: 3.5rem;

}
.container-txt-btn-header-box h2 {
    font-size: 1.6rem;
    font-weight: 400;
    width: 70%;
}


/* 3 boxes section */

.container-3-boxes {
    margin-top: 100px;
    margin-left: 6%;
    margin-right: 6%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#txt-como-actuamos-title{
    line-height: 2rem;
}

.container-3-boxes .box {
    border-radius: 20px;
    padding: 20px;
    
}

.container-3-boxes .box-1{
    color: #fff;
    background-color: #4d5a70f3;
    flex-basis: 50%;
    
}
.container-3-boxes .box-1 .container-title-txt h2{
    font-size: 2rem ;
}

.container-3-boxes .box-1 .container-title-txt p{
    font-size: 1.1rem;
}


.container-3-boxes .container-2-boxes .box-2 {
    background: url(./img/box-2-background.webp) no-repeat center center;
    background-size: cover;
    color: #fff;   
    line-height: 1.3rem;
}

.container-3-boxes .container-2-boxes .box-2 h2 {
    font-size: 2rem;
}
.container-3-boxes .container-2-boxes .box-2 ol li {
    font-size: 1.1rem;
    width: 70%;
    font-weight: 500;
}
.container-3-boxes .container-2-boxes .box-3 {
    margin-top: 10px;
    background: url(./img/box-3-background.webp) no-repeat center center;
    background-size: cover;
    color: #fff;
    line-height: 1.3rem;
}

.container-3-boxes .container-2-boxes .box-3 h2 {
    font-size: 2rem;
    width: 70%;
    line-height: 1.5rem;
}
.container-3-boxes .container-2-boxes .box-3 ol {
    font-size: 1.1rem;
    width: 70%;
    font-weight: 500;
}

/* info section */

.container-info {
    background-color: #f3f7fe;
    padding-top: 40px;
    padding-left: 100px;
    padding-right: 100px;
    margin-top: 100px;
    padding-bottom: 160px;
}

.container-info h2 {
    font-size: 2rem;
}

/*about container */


.container_about {
    background: url(./img/back-about-module.webp) no-repeat center center;
    background-size: cover;
    height: 70vh;
    width: 88%;
    margin: 50px auto;
    border-radius: 20px;
    box-shadow: 0 70px 80px rgba(29, 29, 29, 0.179);
    overflow: hidden;
    position: relative;
}

.container_about h1,p {
    color: white;
    font-family: "Playfair Display", serif;
}

.container_about h1{
    font-size: 2rem;
}

.container_about_text-title {
    padding: 3vh 7vh;
    width: 45%;
}

.container_text p{
    font-size: 1.2rem;
}

.container_about_person {
    width: 37%;
    height: auto;
    padding-bottom: 50px;
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: rgba(56, 66, 112, 0.669);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); 
}

.container_about_person p {
    font-size: 1.4rem;
    text-align: right;
    padding-top: 6%;
    padding-right: 10%;
}


/* freq-cuesti */

.container-frequent-cuestions {
    background: url(./img/background-info-fqc-azul.webp) no-repeat center center;
    background-size: cover;
    border-radius: 30px;
    margin-top: 30px;
    padding-bottom: 50px;
    width: 100%;
    height: auto;
    padding-top: 60px;
}

.container-frequent-cuestions p {
    font-size: 1.3rem;
    width: 50%;
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
    margin-left: 50px;
}

/* accordion */

.accordion{
    margin-top: 20px;
}

.accordion-button {
    background-color:  #eef4ff;
    color: rgb(53, 53, 53);
    cursor: pointer;
    padding: 15px;
    width: 50%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.accordion-button:hover {
    background-color: #4d5a70f3;
    color: #e9e9e9;
}

.accordion-button.active {
    background-color: #4d5a70f3;
    color: #e9e9e9;
  }

.accordion-content {
    text-align: justify;
    padding: 0 15px;
    background-color: #fbfbf2;
    width: 47%;
    display: none;
    overflow: hidden;
}

.accordion-content p {
    margin: 15px 0;
    color: rgb(40, 40, 40);
}

/* Footer */

footer{
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 30px;
    padding: 60px;
    background: url(/blue-back-uniform.jpg) no-repeat;
    background-size: cover;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 30px 0px 80px rgba(29, 29, 29, 0.179);
}

footer a{
    text-decoration: none;
}

footer img {
    max-width: 300px;
    margin-left: -10px;
}


footer h4{
    text-align: center;
    color: #eef4ff;
    font-size: 1.8rem;
}

  .container-donde-estamos-footer h3{
    font-size: 1.5rem;
    color: #eef4ff;
  }

  .container-donde-estamos-footer ul li {
    list-style: none;
    font-size: 1.3rem;
  }

  iframe{
    width: 39%; 
    height: 350px;
    border-radius: 20px;
    z-index: 1;
  }

  .container-title-loader{
    display: flex;
    gap: 150px;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: -110px;
  }

  .container-location-title{
    margin-top: -50px;
  }

  .container-title-loader .container-location-title h4{
    font-size: 1.4rem;
    font-style: italic;
    margin-top: 50px;
    color: #7a7a7a;
  }

.loader {
    width: 48px;
    height: 48px;
    display: block;
    margin: 20px auto;
    box-sizing: border-box;
    position: relative;
  }
  
  .loader::after {
    content: '';
    width: 48px;
    height: 48px;
    left: 0;
    bottom: 0;
    position: absolute;
    border-radius: 50% 50% 0;
    border: 15px solid rgb(68, 152, 168);
    transform: rotate(45deg) translate(0, 0);
    box-sizing: border-box;
    animation: animMarker 0.4s ease-in-out infinite alternate;
  }
  
  .loader::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 150%;
    width: 24px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    animation: animShadow 0.4s ease-in-out infinite alternate;
  }
  
  @keyframes animMarker {
    0% {
      transform: rotate(45deg) translate(5px, 5px);
    }
  
    100% {
      transform: rotate(45deg) translate(-5px, -5px);
    }
  }
  
  @keyframes animShadow {
    0% {
      transform: scale(0.5);
    }
  
    100% {
      transform: scale(1);
    }
  }

.card {
    height: auto; /* Ajusta si necesitas más espacio */
    width: 90%;
    /* background: #b2bbc5; */
    background: rgba(27, 41, 47, 0.236) url(./img/back-card-form.jpg) no-repeat center center;
    background-blend-mode: overlay;
    background-size: cover;   
    box-shadow: 16px 16px 32px #c8c8c8, -16px -16px 32px #fefefe;
    border-radius: 20px;
    margin: 50px auto; 
    display: flex;
    justify-content: space-around;
    padding: 60px 0 60px;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 200px;
  }

  .container-title-info-img-form img{
    border-radius: 15px;
    width: 500px;
    position: relative;
  }
  .container-title-parraf-form{
    position: relative;
    background-color: #546b7aba;
    color: #e9e9e9;
    backdrop-filter: blur(15px);
    padding: 20px;
    width: 70%;
    border-radius: 20px;
    margin-top: -70px;
    margin-left: 20px;
    z-index: 1;
  }

  form{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  /* Caja de entrada con estilo */
  .inputBox {
    position: relative;
    width: 250px;
  }
  
  /* Estilos para el input */
  .inputBox input {
    width: 100%;
    padding: 10px;
    outline: none;
    border: none;
    color: #000;
    font-size: 1em;
    background: transparent;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transition: 0.1s;
    border-bottom-left-radius: 8px;
  }
  
  /* Etiqueta flotante */
  .inputBox span {
    margin-top: -40px;
    position: absolute;
    left: 0;
    transform: translateY(-4px);
    margin-left: 10px;
    padding: 10px;
    pointer-events: none;
    font-size: 12px;
    color: #000;
    transition: 0.5s;
    letter-spacing: 3px;
    border-radius: 8px;
  }
  
  /* Animación cuando el input está en focus o tiene un valor válido */
  .inputBox input:valid ~ span,
  .inputBox input:focus ~ span {
    transform: translateX(113px) translateY(-15px);
    font-size: 0.8em;
    padding: 5px 10px;
    background: #000;
    letter-spacing: 0.2em;
    color: #fff;
    border: 2px;
  }
  
  .inputBox input:valid,
  .inputBox input:focus {
    border: 2px solid #000;
    border-radius: 8px;
  }

  .inputBox textarea {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    outline: none;
    border: none;
    color: #000;
    font-size: 1em;
    background: transparent;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transition: 0.1s;
    border-bottom-left-radius: 8px;
    resize: none;
  }
  .container-checkbox-enter{
    margin-top: 60px;
  }
  
  .inputBox textarea:valid ~ span,
  .inputBox textarea:focus ~ span {
    transform: translateX(113px) translateY(25px);
    font-size: 0.8em;
    padding: 5px 10px;
    background: #000;
    letter-spacing: 0.2em;
    color: #fff;
    border: 2px;
  }
  .inputBox .accidente-span{
    transform: translateY(-40px);
  }
  
  .inputBox textarea:valid,
  .inputBox textarea:focus {
    border: 2px solid #000;
    border-radius: 8px;
  }

  .container-flex{
    display: flex;
    gap: 60px;
  }

  .checkboxContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #000;
  }
  
  .checkboxContainer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }
  

  .enter {
    height: 45px;
    width: 240px;
    border-radius: 5px;
    border: 2px solid #000;
    cursor: pointer;
    background-color: transparent;
    transition: 0.5s;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 1em;
  }
  
  .enter:hover {
    background-color: #000;
    color: #fff;
  }  

  .modal-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.137);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;  
    opacity: 0;         
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* ====== Modal Box ====== */
  .modal {
    background-color: rgba(23, 37, 56, 0.739);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 40px;
    width: 90%;
    max-width: 310px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
  }
  .modal h2 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.2rem;
  }
  .modal p {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .button-close {
    background-color: #d4d4d4;
    color: #2e2e2e;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
  }
  .button-close:hover {
    background-color: #282828;
    color: #eef4ff;
  }

  .modal-overlay.active {
    visibility: visible;
    opacity: 1;
  }

  .whatsapp-float {
    position: fixed;
    bottom: 50px;   
    right: 60px;      
    z-index: 999;    
    text-decoration: none;
  }
  .whatsapp-float-1{
    bottom: 130px;
  }
  
  .Btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75px;
    height: 75px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    background-color: rgba(23, 37, 56, 0.832);
  }
  
  .sign {
    width: 100%;
    transition-duration: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .sign svg {
    width: 25px;
  }
  
  .sign svg path {
    fill: white;
  }
  
  .text {
    position: absolute;
    right: 0%; 
    width: 0%;
    opacity: 0;
    color: white;
    font-size: 1.3em;
    font-weight: 600;
    transition-duration: 0.3s;
  }
  
  .Btn:hover {
    width: 200px;
    border-radius: 40px;
    transition-duration: 0.3s;
  }
  
  .Btn:hover .sign {
    width: 30%;
    transition-duration: 0.3s;
    padding-left: 10px;
  }
  
  .Btn:hover .text {
    opacity: 1;
    width: 70%;
    transition-duration: 0.3s;
    padding-right: 10px;
  }
  
  .Btn:active {
    transform: translate(2px, 2px);
  }
  
      


@media screen and (max-width: 768px) {

    /* nav */

    nav img {
        width: 60%;   
    }


    nav {
        left: 10px;
        width: 90%;
    }


.hamburger {
    cursor: pointer;
  }
  
  .hamburger input {
    display: none;
  }
  
  .hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .line {
    fill: none;
    stroke: rgb(236, 236, 236);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition:
      stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .line-top-bottom {
    stroke-dasharray: 12 63;
  }
  
  .hamburger input:checked + svg {
    transform: rotate(-45deg);
  }
  
  .hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
  }
  

    #nav-options{
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        background-color: rgba(23, 37, 56, 0.947);
        box-shadow: 0 70px 80px rgba(29, 29, 29, 0.179);
        width: 80%;
        border-radius: 20px;
        padding: 30px;
        opacity: 0;
        visibility: hidden;
        color: #f1f1f1;
        transition: opacity 0.3s ease;
        transform: translateY(-20px);
    }

    #nav-options.show{
        opacity: 1; /* true */
        visibility: visible; /* true */
        transform: translateY(0);
    }
    #nav-options.close{
        opacity: 0; /* true */
        visibility: hidden; /* true */
        transform: translateY(-20px);
    }

    /* header */

    .container-header-box{
        width: 80%;
        top: 80px;
    }

    

    .container-txt-btn-header-box{
        bottom: 50px;
        left: 20px;
    }
    .container-txt-btn-header-box h1 {
        font-size: 1.9rem;
        line-height: 2.5rem;
        margin-bottom: 70px;
    }
    .container-txt-btn-header-box h2 {
        width: 92%;
        text-align: left;
        font-size: 1.2rem;
        line-height: 1.76rem;
    }
    .container-txt-btn-header-box button {
        margin-top: 50px;
        width: 95%;
    }


    nav .hamburger{
        display: block;
    }

    /* 3-boxes */

    .container-3-boxes {
        flex-wrap: wrap;
    }
    .container-3-boxes .box-1{
        flex-basis: auto;
    }

    .container-3-boxes .container-2-boxes .box-2 {
        background: url(./img/blue-lines-back-box-2.jpg) no-repeat center center;
        background-size: cover;
    }

    .container-3-boxes .container-2-boxes .box-2 ol li {
        padding: 10px;
        font-size: 1.2rem;
        text-align: justify;
        margin-left: -15px;
        width: 90%;
    }

    .container-3-boxes .container-2-boxes .box-3 {
        background: url(./img/box-blue-3.jpg) no-repeat center center;
        background-size: cover;
    }

    .container-3-boxes .container-2-boxes .box-3 h2 {
        font-size: 2rem;
        width: 95%;
        line-height: 1.9rem;
    }
    .container-3-boxes .container-2-boxes .box-3 ol {
        font-size: 1.2rem;
        text-align: justify;
        margin-left: -10px;
        width: 80%;
    }

    .container-3-boxes .box-1 .container-title-txt p{
        text-align: justify;
    }

    /* info section */

    .container-info{
        padding-left: 20px;
        padding-right: 20px;
    }

    .container-frequent-cuestions {
        background: url(./img/background-info-fqc-mobile-blue.webp) no-repeat center center;
        background-size: cover;
        border-radius: 30px;
        margin-top: 30px;
        width: 100%;
        height: 120vh;
        padding-top: 20px;
        padding-bottom: 100px;
    }
    
    .container-frequent-cuestions p {
        font-size: 1.1rem;
        width: 85%;
        font-weight: 300;
        line-height: 1.2;
        text-align: justify;
        color: #fff;
        margin-left: 25px;
    }

    .accordion-button{
        width: 100%;
    }
    .accordion-content{
        width: 90%;
    }
    .accordion-content ul {
        margin-left: -20px;
    }

    footer{
        border-top-left-radius: 0;
        border-top-right-radius: 50px;
        padding: 20px;
        gap: 1px;
        justify-content: flex-start;
        flex-direction: column-reverse;
        z-index: -1;
    }

    footer img {
        width: 80%;
    }

    footer .vertical-line {
        display: none;
    }
    .horizontal-line {
        border-top: 2px solid rgb(222, 221, 221);
        width: 100%;
        margin: 30px 0;
    }

    #txt-como-actuamos-title {
        font-size: 1.3rem;
        line-height: 1.5rem;
        margin-bottom: 50px;
        text-align: center;
    }
    #como-te-ayudamos{
        font-size: 1.5rem;
        text-align: center;
        line-height: 2rem;
    }

    .container_about {
        display: flex;
        flex-direction: column;
        position: static;
        height: auto;
        width: 90%;
        justify-content: center;
    }

    .container_about_text-title {
        width: 75%;
        text-wrap: balance;
        text-align: justify;
        margin-bottom: 15%;
    }

    .container_text p  {
        font-size: 1.4rem;
    }


    .container_about_person {
        position: static;
        width: 100%;
    }

    .container-footer{
        flex-direction: column-reverse;
    }

    .container-title-loader{
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
        align-items: center;
    }

    .container-title-loader h4{
        text-align: center;
    }

    iframe{
        width: 90%;
    }
    .card{
        flex-direction: column;
    }
    .container-flex{
        flex-direction: column;
    }
    .container-title-info-img-form img {
        width: 90%;
        margin-left: 20px;
    }
    .container-title-parraf-form{
        margin-bottom: 60px;
        margin-left: 40px;
    }
    .whatsapp-float {
      bottom: 20px;   
      right: 20px;    
    }
    .whatsapp-float-1 {
      bottom: 110px;   
      right: 20px;    
    }
}
