*
{
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
}

body{
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

}



/* inicio header */

.logo-container img{
    width: 40px;
}


header{
    position: sticky;
    top: 0px;
    background-color: #001f3f;
    width: 100%;
    z-index: 1000;
}

section{
    position: relative;
    height: calc(100vh - 3rem);
    width: 100%;
    background: url('bg.jpg') no-repeat top center / cover;
    overflow: hidden;
}



.container{
    max-width: 65rem;
    padding: 0 2rem;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.logo-container{
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-btn{
    flex: 3;
    display: flex;
}

.nav-links{
    flex: 2;
}

.log-sign{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.logo{
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 3rem;
}

.logo span{
    font-weight: 300;
}

.btn{
    display: inline-block;
    padding: .5rem 1.3rem;
    font-size: .8rem;
    border: 2px solid #fff;
    border-radius: 2rem;
    line-height: 1;
    margin: 0 .2rem;
    transition: .3s;
    text-transform: uppercase;
}

.btn.solid, .btn.transparent:hover{
    background-color: #fff;
    color: #39259d;
}

.btn.transparent, .btn.solid:hover{
    background-color: transparent;
    color: #fff;
}

.nav-links > ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-link{
    position: relative;
}

.nav-link > a{
    line-height: 3rem;
    color: #fff;
    padding: 0 .8rem;
    letter-spacing: 1px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
}

.nav-link > a > i{
    margin-left: .2rem;
}

.nav-link:hover > a{
    transform: scale(1.1);
}

.dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    width: 15rem;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: .5s;
}

.dropdown ul{
    position: relative;
}

.dropdown-link > a{
    display: flex;
    background-color: #fff;
    color: #000000;
    padding: .7rem 0.02rem;
    font-size: .8rem;
    align-items: center;
    justify-content: space-between;
    transition: .3s;
}

.dropdown-link:hover > a{
    background-color: #001f3f;
    color: #fff;
}

.dropdown-link:not(:nth-last-child(2)){
    border-bottom: 1px solid #efefef;
}

.dropdown-link i{
    transform: rotate(-90deg);
}

.arrow{
    position: absolute;
    width: 11px;
    height: 11px;
    top: -5.5px;
    left: 32px;
    background-color: #fff;
    transform: rotate(45deg);
    cursor: pointer;
    transition: .3s;
    z-index: -1;
}

.dropdown-link:first-child:hover ~ .arrow{
    background-color: #000000;
}

.dropdown-link{
    position: relative;
}

.dropdown.second{
    top: 0;
    left: 100%;
    padding-left: .8rem;
    cursor: pointer;
    transform: translateX(10px);
}

.dropdown.second .arrow{
    top: 10px;
    left: -5.5px;
}

.nav-link:hover > .dropdown,
.dropdown-link:hover > .dropdown{
    transform: translate(0, 0);
    opacity: 1;
    pointer-events: auto;
}

.hamburger-menu-container{
    flex: 1;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.hamburger-menu{
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hamburger-menu div{
    width: 1.6rem;
    height: 3px;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    z-index: 1001;
    transition: .5s;
}

.hamburger-menu div:before,
.hamburger-menu div:after{
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    background-color: #fff;
    border-radius: 3px;
    transition: .5s;
}

.hamburger-menu div:before{
    transform: translateY(-7px);
}

.hamburger-menu div:after{
    transform: translateY(7px);
}

#check{
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    z-index: 90000;
    cursor: pointer;
    opacity: 0;
    display: none;
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div{
    background-color: transparent;
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div:before{
    transform: translateY(0) rotate(-45deg);
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div:after{
    transform: translateY(0) rotate(45deg);
}

@keyframes animation{
    from{
        opacity: 0;
        transform: translateY(15px);
    }
    to{
        opacity: 1;
        transform: translateY(0px);
    }
}

@media (max-width: 920px){
    .hamburger-menu-container{
        display: flex;
    }

    #check{
        display: block;
    }

    .nav-btn{
        position: fixed;
        height: calc(100vh - 3rem);
        top: 3rem;
        left: 0;
        width: 100%;
        background-color: #001f3f;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(100%);
        transition: .65s;
    }

    #check:checked ~ .nav-btn{
        transform: translateX(0);
    }

    #check:checked ~ .nav-btn .nav-link,
    #check:checked ~ .nav-btn .log-sign{
        animation: animation .5s ease forwards var(--i);
    }

    .nav-links{
        flex: initial;
        width: 100%;
    }

    .nav-links > ul{
        flex-direction: column;
    }

    .nav-link{
        width: 100%;
        opacity: 0;
        transform: translateY(15px);
    }

    .nav-link > a{
        line-height: 1;
        padding: 1.6rem 2rem;
    }

    .nav-link:hover > a{
        transform: scale(1);
        background-color: #001f3f;
    }

    .dropdown, .dropdown.second{
        position: initial;
        top: initial;
        left: initial;
        transform: initial;
        opacity: 1;
        pointer-events: auto;
        width: 100%;
        padding: 0;
        background-color: #001f3f;
        display: none;
    }
    
    .nav-link:hover > .dropdown,
    .dropdown-link:hover > .dropdown{
        display: block;
    }

    .nav-link:hover > a > i,
    .dropdown-link:hover > a > i{
        transform: rotate(360deg);
    }

    .dropdown-link > a{
        background-color: transparent;
        color: #fff;
        padding: 1.2rem 2rem;
        line-height: 1;
    }

    .dropdown.second .dropdown-link > a{
        padding: 1.2rem 2rem 1.2rem 3rem;
    }

    .dropdown.second .dropdown.second .dropdown-link > a{
        padding: 1.2rem 2rem 1.2rem 4rem;
    }

    .dropdown-link:not(:nth-last-child(2)){
        border-bottom: none;
    }

    .arrow{
        z-index: 1;
        background-color: #001f3f;
        left: 10%;
        transform: scale(1.1) rotate(45deg);
        transition: .5s;
    }

    .nav-link:hover .arrow{
        background-color: #211565;
    }

    .dropdown .dropdown .arrow{
        display: none;
    }

    .dropdown-link:hover > a{
        background-color: #170b65;
    }

    .dropdown-link:first-child:hover ~ .arrow{
        background-color: #dfdfdf;
    }

    .nav-link > a > i{
        font-size: 1.1rem;
        transform: rotate(-90deg);
        transition: .7s;
    }

    .dropdown i{
        font-size: 1rem;
        transition: .7s;
    }

    .log-sign{
        flex: initial;
        width: 100%;
        padding: 1.5rem 1.9rem;
        justify-content: flex-start;
        opacity: 0;
        transform: translateY(15px);
    }
}




/* Video Section */
.video-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.video-section video {
    width: 200%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.video-overlay h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: rgb(14, 3, 34);
}

.video-overlay p {
    font-size: 17px;
    margin-bottom: 20px;
}

/* Contenedor de los botones */
.button-container {
    display: flex;
    gap: 10px; /* Espacio entre los botones */
    justify-content: center; /* Centra los botones horizontalmente */
    flex-wrap: wrap; /* Permite que los botones se apilen en pantallas pequeñas */
}

/* Estilo base para los botones */
.cta-video-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    font-size: 15px;
    color: #fff;
    background-color: #001f3f;
    text-align: center;
    border: 2px solid gold; /* Borde dorado de 2px */
        text-decoration: none;
    transition: background-color 0.3s ease;
    width: 150px; /* Ancho fijo para que los botones tengan el mismo tamaño */
    height: 50px; /* Alto fijo para que todos los botones tengan la misma altura */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

/* Cambio de color al pasar el ratón */
.cta-video-button:hover {
    background-color: rgb(0, 37, 77);
}

/* Responsividad para pantallas medianas */
@media (max-width: 768px) {
    .cta-video-button {
        width: 130px; /* Ajusta el ancho para pantallas medianas */
        height: 45px; /* Ajusta el alto para pantallas medianas */
        font-size: 13px;
    }
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 480px) {
    .cta-video-button {
        width: 100%; /* Los botones ocuparán toda la línea en pantallas pequeñas */
        height: auto; /* Altura automática para adaptarse al ancho */
        padding: 12px; /* Relleno ajustado para mejorar la legibilidad */
        font-size: 12px;
    }
}



/* Estilos responsivos */
@media (max-width: 768px) {
    .video-section {
        height: 500px;
    }

    .video-overlay h1 {
        font-size: 27px;
    }

    .video-overlay p {
        font-size: 16px;
    }

   
  
}


















/* Final header */






/* Inicio primera parte body */

/* Primera Parte */
.first-section {
    background-image: url('../img/juridico.gif');
    background-size: cover;
    height: 30vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.content p, .content h1, .content button {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.content p:nth-child(1) {
    animation-delay: 0.5s;
}

.content h1 {
    animation-delay: 1s;
}

.content p:nth-child(3) {
    animation-delay: 1.5s;
}

.content button {
    animation-delay: 2s;
}

.news-ticker {
    margin-top: 30px;
    width: 80%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.news-ticker p {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 15s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

button {
    background-color: #ff4a4a;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ffffff;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .content h1 {
        font-size: 24px;
    }

    .news-ticker {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 20px;
    }

    .news-ticker {
        font-size: 12px;
    }

    button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

































/* Footer inicio */

/* Footer General */
footer {
    background-color: #001f3f;
    color: white;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    color: #ffffff;

}

.footer-logo h1 {
    font-size: 40px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    color: #ffffff;
}

.footer-logo p {
    max-width: 400px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    font-size: 13px;
    color: #ffffff;

}

.footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 55%;
}

.footer-section h3 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ffffff;

}

.footer-section ul {
    list-style: none;
    padding: 0;
    color: #ffffff;

}

.footer-section li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    font-size: 13px;
    color: #ffffff;


}

.footer-section li:hover {
    transform: translateX(5px);
    color: #ffffff;

}

.footer-section p {
    margin: 10px 0;
    font-size: 13px;
    color: #ffffff;


}



.social-icons a {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: #ffffff;

}



.icon{
color: #ffffff;
}
.social-icons a:hover {
    transform: scale(1.1);
}

.footer-legal {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    color: #ffffff;

}

.footer-legal p {
    margin: 0;
    font-size: 9px;
    color: #ffffff;

}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .footer-sections {
        width: 100%;
        flex-direction: column;
    }

    .footer-logo {
        text-align: center;
        margin-bottom: 40px;
    }

    .footer-logo p {
        margin: 0 auto;
    }

    .footer-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .footer-logo h1 {
        font-size: 60px;
    }

    .footer-section h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-logo h1 {
        font-size: 48px;
    }

    .footer-legal p {
        font-size: 12px;
    }
}


/* Footer final */





















h1 {
    font-family: 'Poppins', sans-serif, 'arial';
    font-weight: 600;
    font-size: 72px;
    color: white;
    text-align: center;
}

h4 {
    font-family: 'Roboto', sans-serif, 'arial';
    font-weight: 400;
    font-size: 20px;
    color: #9b9b9b;
    line-height: 1.5;
}

/* ///// inputs /////*/

input:focus ~ label, textarea:focus ~ label, input:valid ~ label, textarea:valid ~ label {
    font-size: 0.75em;
    color: #ffffff;
    top: -5px;
    -webkit-transition: all 0.225s ease;
    transition: all 0.225s ease;
}

.styled-input {
    float: left;
    width: 293px;
    margin: 1rem 0;
    position: relative;
    border-radius: 4px;
}

@media only screen and (max-width: 768px){
    .styled-input {
        width:100%;
    }
}

.styled-input label {
    color: #999;
    padding: 1.3rem 30px 1rem 30px;
    position: absolute;
    top: 10px;
    left: 0;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    pointer-events: none;
}

.styled-input.wide { 
    width: 650px;
    max-width: 100%;
}

input,
textarea {
    padding: 30px;
    border: 0;
    width: 100%;
    font-size: 1rem;
    background-color: #ffffff;
    color: white;
    border-radius: 4px;
}

input:focus,
textarea:focus { outline: 0; }

input:focus ~ span,
textarea:focus ~ span {
    width: 100%;
    -webkit-transition: all 0.075s ease;
    transition: all 0.075s ease;
}

textarea {
    width: 100%;
    min-height: 15em;
}

.input-container {
    width: 650px;
    max-width: 100%;
    margin: 20px auto 25px auto;
}

.submit-btn {
    
    padding: 7px 35px;
    border-radius: 60px;
    display: inline-block;
    background-color: #4b8cfb;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.06),
              0 2px 10px 0 rgba(0,0,0,0.07);
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

.submit-btn:hover {
    transform: translateY(1px);
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.10),
              0 1px 1px 0 rgba(0,0,0,0.09);
}

@media (max-width: 768px) {
    .submit-btn {
        width:100%;
        float: none;
        text-align:center;
    }
}

input[type=checkbox] + label {
  color: #ccc;
  font-style: italic;
} 

input[type=checkbox]:checked + label {
  color: #f00;
  font-style: normal;
}













.contenedor-contacto {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido horizontalmente */
    padding: 20px; /* Espaciado alrededor del contenedor */
}

.mapa-contacto {
    width: 100%;
    max-width: 1200px; /* Limita el ancho del mapa */
    margin-bottom: 30px; /* Espaciado debajo del mapa */
}

.mapa-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px; /* Bordes redondeados */
}

.contenido-contacto {
    display: flex;
    flex-direction: column;
    background-color: white;
    max-width: 1200px; /* Limita el ancho del contenido */
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra para resaltar */
    overflow: hidden; /* Evita desbordamientos */
}

.info-contacto, .formulario-contacto {
    padding: 30px; /* Espaciado interno */
    flex: 1;
}

.info-contacto {
    background-color: #030e30;
    color: white;
    text-align: center; /* Centra el texto */
   
}

.titulo-info {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.descripcion-info {
    margin-bottom: 15px;
}

.lista-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-info {
    margin: 8px 0;
    font-size: 1.1em;
}

.titulo-formulario {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
}

.input-formulario, .textarea-formulario {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Bordes redondeados */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

.textarea-formulario {
    height: 120px;
}

.boton-enviar {
    background-color: #0d062e;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 1.1em;
    border-radius: 8px; /* Bordes redondeados */
    cursor: pointer;
    transition: background-color 0.3s; /* Transición suave */
}

.boton-enviar:hover {
    background-color: #0d1746;
}

/* Responsivo */
@media (min-width: 768px) {
    .contenido-contacto {
        flex-direction: row;
    }
    .info-contacto, .formulario-contacto {
        width: 50%;
    }
}





















.imagen-fondo {
    position: relative;             /* Necesario para la superposición */
    width: 100%;
    height: 100vh;                  /* Ocupa toda la altura de la pantalla */
    overflow: hidden;
}

.imagen-fondo img {
    width: 100%;
    height: 120%;
    object-fit: cover;              /* Cubre el contenedor sin distorsión */
    display: block;
}

.imagen-fondo::before {
    content: "";                    /* Crea el overlay del gradiente */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgb(0, 0, 0),        /* Negro casi opaco arriba */
        rgba(0, 0, 0, 0.925)         /* Negro más claro abajo */
    );
    pointer-events: none;           /* Permite interacciones a través del overlay */
}










#sheetdb-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  #sheetdb-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  .inputBox {
    margin-bottom: 15px;
    position: relative;
  }
  
  .inputBox input,
  .inputBox textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333; /* Color del texto */
  }
  
  .inputBox textarea {
    min-height: 100px;
    resize: none;
  }
  
  .inputBox input::placeholder,
  .inputBox textarea::placeholder {
    color: #aaa; /* Color del placeholder */
  }
  
  .inputBox input:focus,
  .inputBox textarea:focus {
    border-color: #0b083b;
    outline: none;
    color: #000; /* Cambiar el texto a negro al escribir */
  }
  
  .boton-enviar {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: #cfced3;
    color: rgb(0, 0, 0);
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .boton-enviar:hover {
    background: #1e1d2e8e;
  }
  
  .banderas-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.bandera {
    width: 50px;
    height: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bandera:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
