:root{
    --prime-color: rgba(2, 62, 125, 1);
    --secondary-color: rgba(221, 221, 221, 1);
    --rights-color: rgba(203, 228, 255, 1);
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

ul{
    list-style: none;

}

a{
    text-decoration: none;
}

/* Menu de navegacion */
header{
    background-color: var(--prime-color);
    padding: 36px;
}

.navbar .cont-imgLogo{
    display: flex;
        justify-content: center;
        margin-bottom: 36px;
}

.navbar .list-first{
    display: flex;
        justify-content: center;
        gap: 32px;
}

.navbar .list-first li a{
    color: var(--secondary-color);
    font-family: "Open Sans", serif;
    margin-bottom: 2px;
}


.navbar .list-first li:hover{
    border-bottom: solid rgb(255, 255, 255) 2px;
    color: white;
    font-weight: bold;
}

/* headings */
h1, h2{
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    -webkit-text-stroke: 0.6px;
    font-style: normal;
    font-size: 36px;
    text-align: center;
}

h1{
    color: var(--prime-color);
    padding-bottom: 20px;
}

h2{
    color: var(--secondary-color);
    padding: 36px 0;
}


/* Banner */
.banner{
    position: relative;
}

.banner .img-banner{
    width: 100%;
}

.banner .txt-banner,.txt-bannerEn{
    position: absolute;
    top: 25%;
    left: 6%;
    color: var(--rights-color);
    font-size: 50px;
    font-family: "Bodoni Moda", serif;
    font-weight: 700;
    text-shadow: 2px 2px 3px black;
    max-width: 50%;
    -webkit-text-stroke: .2px;
}

.banner .txt-banner::before{
    content: '';
    animation: changeTxt 10s infinite ease-in;
}

.banner .txt-bannerEn::before{
    content: '';
    animation: changeTxtEn 10s infinite ease-in;
}

/* animacion de texto en rotacion del banner*/
@keyframes changeTxt {
    0%{
        content: 'Defendemos sus derechos con compromiso y experiencia';
    }

    33%{
        content: 'Asesoramiento jurídico integral a su alcance.';
    }

    66%{
        content: 'Soluciones legales que generan resultados.';
    }

    100%{
        content: 'Defendemos sus derechos con compromiso y experiencia.';
    }
} 

/* Contactar ahora */
.cont-contactarAhora{
    background-color: var(--prime-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    position: relative;
    top: -4px;
}

.cont-contactarAhora .span-contactarAhora{
    font-family: "Bodoni Moda", serif;
    font-weight: bold;
    font-size: 22px;
    color: var(--secondary-color);
    margin-top: 10px;
}

.cont-contactarAhora p{
    color: var(--secondary-color);
    font-family: "Open Sans", serif;
    font-size: 15px;
    text-align: center;
}

.cont-contactarAhora a{
    margin-top: 15px;
    background-color: var(--rights-color);
    padding: 6px;
    border-radius: 8px;
    font-family: "Open Sans", serif;
    color: var(--prime-color);
    font-weight: 700;
    font-size: 14px;
    margin: 13px;
}

.cont-contactarAhora a:hover{
  box-shadow: 0 2px 3px rgb(0, 0, 0);
  border-color: #2f6fb3;
}

/* Nuestros valores */
.values{
    padding: 50px 0;
}

.values .cont-card{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    justify-items: center;
}

.values .cont-card .card-val{
    padding: 24px;
    width: 366px;
    height: 330px;
    display: grid;
    grid-template-rows: 40% 20% 40%;
    justify-items: center;
    border: 1px solid var(--prime-color);
    border-radius: 16px;
    /* box-shadow: 5px 5px 5px rgb(0, 0, 0); */
    animation: entryPag ease both .1s;
    animation-timeline: view();
    animation-range: entry 5% cover 10%;
    transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.values .cont-card .card-val:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: #2f6fb3;
}
    /* contenedor de img */
.values .cont-card .card-val .cont-imgVal{
    background-color: var(--rights-color);
    margin-bottom: 16px;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}
    /* elementos dentro de card */
.values .cont-card .card-val .cont-imgVal img{
    width: 52px;
    height: 52px;
}

.values .cont-card .card-val span{
    padding-bottom: 16px;
    font-size: 24px;
    color: var(--prime-color);
    font-family: "Bodoni Moda", serif;
    font-weight: 700;
    -webkit-text-stroke: 0.6px;
}

.values .cont-card .card-val p{
    text-align: center;
    font-family: "Open Sans", serif;
    font-size: 16px;
}

/* Animacion al ver el elemento */
@keyframes entryPag {
    from{
        opacity: 0;
        translate: 0 100px;
        scale: 0.5;
    }
    to{
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}

/* Acerca nuestro */
.cont-aboutUs{
    padding: 50px;
    background-color: var(--prime-color);
    animation: entryPag ease both .1s;
    animation-timeline: view();
    animation-range: entry 5% cover 10%;
}

.cont-aboutUs h2{
    color: rgb(255, 255, 255);
    animation: entryPag ease both .1s;
    animation-timeline: view();
    animation-range: entry 5% cover 10%;
}

/* linea despues de titulo Acerca de nosotros */
.cont-aboutUs h2::after {
  content: "";
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.884);
  display: block;
  margin: 12px auto 0;
}

.cont-aboutUs .txt-aboutUs{
    color: var(--secondary-color);
    padding: 0 36px 36px 36px;
    font-family: "Open Sans", serif;
    font-size: 20px;
    animation: entryPag ease both .1s;
    animation-timeline: view();
    animation-range: entry 5% cover 10%;
}

/* Servicios */
.m-service{
    background-color: var(--secondary-color);
    padding: 26px;
}

    /* contenedor de cards de serivicios */
.cont-cardService{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "c1 c2"
                         "c3 c4"
                         "c5 .";
    gap: 50px;
}

.cont-cardService .ciSphere{
    grid-area: c1;
    justify-self: end;
}
.cont-cardService .coSphere{
    grid-area: c2;
}
.cont-cardService .laSphere{
    grid-area: c3;
    justify-self: end;
}
.cont-cardService .exSphere{
    grid-area: c4;
}
    /* cards de servicio */
.cont-cardService .card-service{
    background-color: var(--prime-color);
    height: auto;
    width: 100%;
    border-radius: 16px;
    padding: 24px;
    /* box-shadow: 5px 5px 5px rgb(0, 0, 0); */
    animation: entryPag ease both .1s;
    animation-timeline: view();
    animation-range: entry 5% cover 10%;
    transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
    border-bottom: 3px solid rgb(98, 162, 230);
    border-top: 3px solid rgb(98, 162, 230);
}

.cont-cardService .card-service:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: #2f6fb3;
}

.cont-cardService .card-service .cont-imgService{
    background-color: var(--rights-color);
    margin-bottom: 16px;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}

.cont-cardService .card-service .cont-imgService img{
    width: 26px;
    height: 26px;
}

.cont-cardService .card-service .txt-titleService{
    margin-bottom: 16px;
    text-align: start;
    padding: 0px;
    font-size: 24px;
    color: rgb(255, 255, 255);
}

.cont-cardService .card-service p{
    color: rgb(255, 255, 225);
    font-size: 16px;
    font-family: "Open Sans", serif;
}

.cont-cardService .card-service .card-serviceSA{
    display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  text-decoration: none;
  background: transparent;
  transition: all 0.25s ease;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-top: 10px;
}

    /* Card de ambitos especializados */
.list-ambEspecializados{
    margin-top: 4px;
    list-style-type: disc;
    list-style-position: inside;
    color: rgb(255, 255, 225);
    font-family: "Open Sans", serif;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px 20px;
    padding-left: 20px;
}
.list-ambEspecializados li{
    white-space: nowrap;
}

.acordeon {
  margin-top: 15px;
  font-family: "Open Sans", serif;
  font-size: 14px;
  height: auto;
}

/* botón */
.acordeon summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: #9fd3ff;
  font-weight: 600;
}

/* quitar flecha default */
.acordeon summary::-webkit-details-marker {
  display: none;
}

.texto::before {
  content: "Leer más";
}

.acordeon[open] .texto::before {
  content: "Leer menos";
}

.flecha {
  transition: transform 0.3s ease;
  width: 22px;
}

.acordeon[open] .flecha {
  transform: rotate(180deg);
}

/* animación contenido */
/* .contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin 0.3s ease;
}

.acordeon[open] .contenido {
  max-height: 1000px;
  margin-top: 10px;
} */

.contenido {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.contenido > * {
  overflow: hidden;
}

.acordeon[open] .contenido {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

.list-derechos{
    font-family: "Open Sans", serif;
    color: rgb(255, 255, 255);
    list-style-type: disc;
}

.list-derechos .list-derechos-li{
    background-color: rgba(203, 228, 255, 0.055);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.185);
    border-top: 1px solid rgba(255, 255, 255, 0.185);
}

.list-derechos .titulos-ambitosEsp{
    font-weight: 700;
}

/* footer */
.foo .cont-foo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    flex-wrap: wrap;
}
    /* lista footer */
.foo .cont-foo .list-foo li{
        margin-bottom: 10px;
}

.foo .cont-foo .list-foo li a{
    display: flex;
    color: var(--prime-color);
    font-family: "Open Sans", serif;
    font-size: 16px;
}

.foo .cont-foo .list-foo li a img{
    margin-right: 10px;
}
    /* derechos reservados */
.foo .cont-rightsReserved{
    background-color: var(--rights-color);
    width: 100%;
    display: flex;
    justify-content: center;
}

.foo .cont-rightsReserved .rights-reserved{
    font-family: "Open Sans", serif;
    color: var(--prime-color);
}

/* Iconos flotantes */
.cont-iconFlo{
    position: fixed;
    bottom: 3%;
    right: 1%;
    width: 50px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.cont-iconFlo .link-iconFlo{
        background-color: rgb(29, 43, 70);
        width: 56px;
        height: 56px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
        box-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.cont-iconFlo .link-arrow{
        display: none;
}

.cont-iconFlo .link-iconFlo .img-iconSoc{
    width: 40px;
    height: 40px;
}

/* MQ */
@media (max-width: 1450px){
    /* banner */
    .banner .txt-banner, .txt-bannerEn{
        max-width: 63%;
    }
}
@media (max-width: 1250px) {
    /* banner */
    .banner .txt-banner, .txt-bannerEn{
        font-size: 40px;
        max-width: 63%;
    }
    /* nuestros valores */
    .values .cont-card{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        grid-template-areas: "cv1 cv2"
                             "cv3 .";
        gap: 50px;

    }
    .values .proVal{
        grid-area: cv1;
    }
    .values .truVal{
        grid-area: cv2;
    }
    .values .quaVal{
        grid-area: cv3;
    }

    .list-ambEspecializados{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* banner */
    .banner .txt-banner, .txt-bannerEn{
        max-width: 65%;
        font-size: 30px;
    }
}

@media (max-width: 800px) {
    /* banner */
    .banner .txt-banner, .txt-bannerEn{
        font-size: 30px;
        max-width: 70%;
    }
    /* nuestros valores */
    .values .cont-card{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        grid-template-areas: "cv1"
                             "cv2"
                             "cv3";
        gap: 30px;
    }
    /* iconos flotantes */
    .cont-iconFlo{
        height: 180px;
    }

    .cont-iconFlo .link-arrow{
        display: block;
    }

    /* cards de servicios */
    .cont-cardService{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        grid-template-areas: "c1"
                             "c2"
                             "c3"
                             "c4"
                             "c5";
        gap: 20px;
    }
}

@media (max-width: 600px){
    /* nuestros valores */
    .values{
        padding: 20px 0;
    }
    /* general */
    h1{
        font-size: 34px;
    }
    /* banner */
    .banner .img-banner{
        height: 150px;
    }

    .banner .txt-banner, .txt-bannerEn{
        font-size: 20px;
        width: 100%;
    }
    /* sobre nosotros */
    .cont-aboutUs{
        padding: 20px;
    }

    .cont-aboutUs h2{
        padding: 20px 0;
    }

    .cont-aboutUs .txt-aboutUs{
        padding: 16px;
        font-size: 16px;
    }

    /* cards de servicios */
    .cont-cardService{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        grid-template-areas: "c1"
                             "c2"
                             "c3"
                             "c4"
                             "c5";
        gap: 20px;
    }

    .cont-cardService .card-service .cont-imgService{
        width: 40px;
        height: 40px;
    }

    .cont-cardService .card-service .cont-imgService img{
        width: 20px;
        height: 20px;
    }

    .cont-cardService .card-service .txt-titleService{
        font-size: 20px;
    }

    .cont-cardService .card-service p{
        font-size: 14px;
    }
    .list-ambEspecializados{
        font-size: 14px;
    }

    /* footer */
    .foo .cont-foo .cont-fooLog{
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .foo .cont-foo .cont-fooLog img{
        width: 100px;
        height: 100px;
    }

    .foo .cont-rightsReserved .rights-reserved{
        font-size: 10px;
    }

    /* Iconos flotantes */
    .cont-iconFlo{
        bottom: 2%;
        right: 3%;
    }
}

@media (max-width: 450px){
    /* banner */
    .banner .txt-banner, .txt-bannerEn{
        font-size: 18px;
    }

    /* nuestros valores */
    .values .cont-card .card-val{
        padding: 14px;
        width: 336px;
        height: 300px;
    }

    /* footer */
    .foo .cont-foo{
        padding: 20px;
    }

    .foo .cont-foo .cont-fooLog img{
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 350px) {
    /* general */
    h1, h2{
        font-size: 28px;
    }

    /* banner */
    .banner .img-banner{
        height: 120px;
    }
        
    .banner .txt-banner, .txt-bannerEn{
        font-size: 16px;
    }

    /* nuestros valores */
    .values .cont-card .card-val{
        padding: 10px;
        width: 266px;
        height: 250px;
    }
    .values .cont-card .card-val .cont-imgVal{
        width: 80px;
        height: 80px;
    }
    .values .cont-card .card-val .cont-imgVal img{
        width: 42px;
        height: 42px;
    }
    .values .cont-card .card-val span{
        font-size: 20px;
    }
    .values .cont-card .card-val p{
        font-size: 13px;
    }
    
    /* sobre nosotros */
    .cont-aboutUs{
        padding:4px;
    }

    .cont-aboutUs .txt-aboutUs{
        font-size: 16px;
    }

    /* footer */
    .foo .cont-foo .list-foo{
        align-items: center;
    }

    .foo .cont-foo .list-foo li{
        margin-bottom: 10px;
    }
    
    .foo .cont-foo .list-foo li a{
        font-size: 12px;
    }

    .foo .cont-foo .cont-fooLog img{
        width: 80px;
        height: 80px;
    }
}

