/*
Theme Name: Ejat abogados
Theme URI: https://www.sapublicidad.cl
Author: SA Publicidad SpA
Author URI: https://www.sapublicidad.cl
Description: Tema exclusivo desarrollado por SA Publicidad. Diseño moderno, responsive y full-width.
Version: 1.0.1
License: MIT
License URI: https://www.sapublicidad.cl
Tags: minimalista, responsive, moderno, full-width
*/

*{
    font-family: "Mona Sans", sans-serif;
    padding: 0;
    margin:0;
    box-sizing: border-box;
}

:root{
    --color1: #121212;
    --color2: #f9f9f9;
    --color3: #CB4722;
    --color3-10: #f0f0f0;
    --color4: #414141;
    --color5: #ffffff;
}

html{
    scroll-behavior: smooth;
}

.wrap{
    width: 90%;
    max-width: 1200px;
    margin:auto;
}

.ancla{
    transform: translateY(-72px);
}

/* header */
header{
    position: fixed;
    width: 100%;
    background-color: var(--color5);
    z-index: 99;
}

header .wrap{
    display: flex;
    justify-content: space-between;
    gap:2%;
    align-items: center;
    padding: 10px 0;
}

header .wrap p.logo{
    flex: 1;
}

header .wrap p.logo img{
    width: 100%;
    margin:0 0 -5px 0;
}

/* nav */
nav{
    flex:5;
}

@media(max-width:800px){
    header{
        position: relative;
    }
    header .wrap p.logo{
        max-width: 240px;
        width: 50%;
    }
    nav{
        display: none;
    }
}

nav ul{
    display: flex;
    justify-content: center;
    text-decoration: none;
}

nav ul li{
    list-style-type: none;
}

nav ul li a{
    padding: 0 20px;
    color: var(--color4);
    text-decoration: none;
    display: block;
    position: relative;
    line-height: 50px;
    transition: opacity .3s ease;
    width: pre;
}

nav ul li a:hover{
    color: var(--color1);
    opacity: .7;
}

nav ul li a:after{
    content: "";
    position: absolute;
    background-color: var(--color3);
    top:0;
    right: 0;
    width: 1px;
    height: 15px;
    top:50%;
    transform: translateY(-50%);
}

nav ul li:last-child a:after{
    display: none;
}

/* social */
header .wrap .social ul{
    display: flex;
    line-height: 50px;
    list-style-type: none;
    justify-content: right;
    gap:10px;
}

header .wrap .social ul li a{
    color: var(--color1);
    text-decoration: none;
    font-size: 22px;
}

/* home */
.home{
    max-height: 50vh;
    overflow: hidden;
}
.home img{
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    margin:50px 0 -5px 0;
}

@media(max-width:800px){
    .home{
        max-height: 100vh;
    }
    
    .home img{
        margin:0 0 -5px 0;
    }
}

/* about */
.about .wrap{
    display: flex;
    align-items: center;
    gap:30px;
    flex-wrap: wrap;
    min-height: 50vh;
}

.about .wrap article{
    padding: 40px;
    width: 50%;
}

.about .wrap article:nth-child(1){
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
    color: var(--color1);
    text-align: right;
    position: relative;
    width: 30%;
    font-size: clamp(1.5em, 5vw, 2.5em);
}

.about .wrap article:nth-child(1):after{
    content: "";
    position: absolute;
    top:50%;
    right: -20px;
    transform: translateY(-50%);
    height: 100px;
    width: 0;
    border-right: dashed 2px var(--color3);
}

@media(max-width:800px){
    .about .wrap article:nth-child(1){
        width: 100%;
        text-align: center;
        position: relative;
    }

    .about .wrap article:nth-child(1):after{
        border-right: none;
        right: 50%;
        width: 25%;
        top:auto;
        bottom: 0;
        transform: translateX(50%) translateY(0%);
        border-bottom: dashed 2px var(--color3);
    }
}



.about .wrap article:nth-child(2){
    width: 66%;
}

@media(max-width:800px){
    .about .wrap article:nth-child(2){
        width: 100%;
        padding: 0 20px;
    }
}

.about .wrap article p{
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
    margin:20px 0;
    color: var(--color4);
}



/* about-me */
.about-me{
    min-height: 100vh;
    background-color: var(--color3-10);
}
.about-me .wrap{
    display: flex;
    align-items: center;
    gap:30px;
    padding: 0px 0;
    flex-wrap: wrap;
}

.about-me .wrap article{
    padding: 20px;
    width: 50%;
}

.about-me .wrap article:nth-child(1){
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
    color: var(--color1);
    text-align: center;
    position: relative;
    width: 40%;
    font-size: clamp(1.5em, 5vw, 2.5em);
}

.about-me .wrap article:nth-child(1) h3{
    font-size: 20px;
    margin:10px 0 0 0;
}

.about-me .wrap article:nth-child(1) img{
    width: 100%;
    border-radius: 20px;
    pointer-events: none;
}



.about-me .wrap article:nth-child(2){
    width: 56%;
}



.about-me .wrap article:nth-child(2) h2{
    font-weight: 300;
    font-size: clamp(1.5em, 5vw, 2.5em);
}

@media(max-width:800px){
    .about-me .wrap article:nth-child(1),
    .about-me .wrap article:nth-child(2){
        width: 100%;
        text-align: center;
    }

    .about-me .wrap article:nth-child(1) img{
        width: 80%;
        max-width: 230px;
    }
}

.about-me .wrap article p{
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
    margin:20px 0;
    color: var(--color4);
}



/* services */
.services{
    background-color: var(--color2);
    padding: 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.services .wrap{
    padding: 0px 0;
}


.services h2{
    text-align: center;
    font-size: clamp(1.5em, 5vw, 2.5em);
    font-weight: 300;
    margin:0 0 30px 0;
}

.services .gallery{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap:2%;
    row-gap: 40px;
}

.services .gallery article{
    width: 30%;
    padding:20px 20px;
    background-color: var(--color5);
    border-left: solid 5px var(--color3);
    transition: box-shadow .3s ease, transform .3s ease;
    border-radius: 10px;
}

@media(max-width:800px){
    .services .wrap{
        padding: 40px;
    }

    .services .gallery article{
        width: 100%;
    }
}

.services .gallery article:hover{
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    transform: translateY(-10px);
}

.services .gallery article h3{
    font-size:16px;
    font-weight: 700;
    margin:0 0 10px 0;
}

.services .gallery article p{
    font-size: .9rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--color4);
}




/* blog */
.blog{
    padding: 40px 20px;
    background-color: var(--color5);
    margin:0 20px;
    border-radius: 13px;
}

.blog h2{
    font-weight: 300;
    text-align: center;
    font-size: clamp(1.5em, 5vw, 2.5em);
    border-radius: 5px;
    color: var(--color1);
}

.blog .btn-more,
.resumen .btn-more{
    display: flex;
    justify-content: center;
    margin:40px 0;
}

.blog .btn-more a,
.resumen .btn-more a{
    display: flex;
    justify-content: center;
    padding: 15px 40px;
    background-color: var(--color4);
    color: var(--color2);
    text-decoration: none;
}


.blog h3 span{
    color: var(--color4);
}

.blog .gallery{
    padding: 50px 0 0 0;
}

.blog .gallery .item{
    background-color: var(--color5);
    color: var(--color4);
    position: relative;
    border-radius: 13px;
    overflow: hidden;
    transition: box-shadow .3s ease;
}

.blog .gallery .item:hover{
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}


.blog .gallery .item .inter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    position: relative;
    z-index: 2;
}
.blog .gallery .item .inter img {
    width: 100%;
    aspect-ratio: 3/2;
    cursor: pointer;
    object-fit: cover;
}

.blog .gallery .item .inter h4 {
    font-size: 1em;
    margin: 10px 0 0 0;
    padding: 20px 30px;
    text-align: justify;
}

.blog .gallery .item .inter p {
    max-height: 100px;
    opacity: 0.7;
    margin: 0 0 30px 0;
    text-align: left;
    padding: 0 30px 0px 30px;
}


.blog .gallery .item .inter .btn-a{
    margin:0 20px 20px 30px;
    transition: all .3s ease;
}


.blog .gallery .item .inter .btn-a a{
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: var(--color2);
    background-color: var(--color4);
}

.blog .gallery .item .inter .btn-a a:hover{
    background-color: var(--color4);
}



.blog-swiper .swiper-pagination {
    position: static; 
    margin-top: 40px;
    text-align: center;
}


.blog .swiper-pagination-bullet {
    background: var(--color1) !important;
    opacity: 0.6;
    transition: all .8s ease !important;
    border-radius: 5px !important;
    width: 15px !important;
    height: 10px !important;
}

.blog .swiper-pagination-bullet-active {
    background: var(--color3) !important;
    opacity: 1;
    width: 100px !important;
}

/* contact */
.contact{
    padding: 0px 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color1);
    position: relative;
}

.contact > img{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top:0;
    object-fit: cover;
    opacity: .1;
    z-index: 1;
}

.contact .wrap{
    display: flex;
    justify-content: space-between;
    gap:2%;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact .wrap article:nth-child(1){
    width: 30%;
}
.contact .wrap article:nth-child(2){
    width: 58%;
}


.contact .wrap article:nth-child(1) .logo-contact{
    max-width: 200px;
    margin:0 0 20px 0;
}

@media(max-width:800px){
    .contact .wrap article:nth-child(1),
    .contact .wrap article:nth-child(2){
        width: 100%;
        text-align: center;
        padding: 20px;
    }

    .contact .wrap article:nth-child(1) .logo-contact{
        margin:0 auto 20px auto;
    }
}

.contact .wrap article:nth-child(1) .logo-contact img{
    width: 100%;
}

.contact .wrap article:nth-child(1) ul li{
    list-style-type: none;
}

.contact .wrap article:nth-child(1) ul li a{
    color: var(--color5);
    text-decoration: none;
}

.contact .wrap article:nth-child(2) h2{
    color: var(--color5);
    font-weight: 300;
    font-size: clamp(1.5em, 5vw, 2.5em);
}

.contact .wrap article:nth-child(2) p{
    display: flex;
    gap:2%;
    margin:0 0 10px 0;
}

.contact .wrap article:nth-child(2) p:nth-child(4){
    display: flex;
    justify-content: right;
}

.contact .wrap article:nth-child(2) input[type="text"]{
    padding: 12px 2%;
    width: 50%;
}

.contact .wrap article:nth-child(2) textarea{
    width: 100%;
    padding: 10px;
    resize: vertical;
}

.contact .wrap article:nth-child(2) button{
    padding: 13px 40px;
    background-color: var(--color3);
    color: var(--color5);
    border:none;
    outline: none;
    cursor: pointer;
}

.contact .wrap article:nth-child(3){
    width: 100%;
    height: 240px;
    margin:20px 0 0 0;
}

.contact .wrap article:nth-child(3) iframe{
    width: 100%;
    height: 100%;
}

@media(max-width:800px){
    .contact .wrap article:nth-child(3){
        padding:0 0 20px 0;
    }
}

.contact ul.social{
    display: flex;
    line-height: 50px;
    gap:10px;
    margin:40px 0 0 0;
    font-size: 30px;
}

/* page-banner */
.page-banner{
    width: 100%;
    position: relative;
    background-color: var(--color4);
    padding: 150px 0 50px 0;
}

@media(max-width:800px){
    .page-banner{
        padding: 50px 0;
    }
}

.page-banner img{
    display: none;
}

.page-banner h1{
    font-size: clamp(1.5em, 5vw, 2.5em);
    color: var(--color2);
    font-weight: 600;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.content.single{
    padding: 40px 0;
}

.content.single .wrap{
    padding:20px 0;
    display: flex;
    gap:4%;
    flex-wrap: wrap;
}

.content.single .resumen{
    width: 76%;
}

.content.single aside{
    width: 20%;
    border:solid 1px var(--color2);
    background-color: var(--color2);
}

@media(max-width:800px){
    .content.single .resumen,
    .content.single aside{
        width: 100%;
    }

    .content.single aside{
        margin:20px 0 0 0;
    }

}

.content.single aside h3{
    padding: 10px 20px;
    color: var(--color1);
    font-size: 20px;
    border-bottom: solid 1px var(--color3-10);
}

.content.single aside p{
    font-size: 14px;
    color: #777777;
    line-height: 1.9;
    text-align: justify;
    padding: 10px 20px;
}



.content.single .resumen > p{
    font-size: 17px;
    line-height: 1.8em;
    text-align: justify;
    margin:20px 0;
}

.content.single .resumen > p a{
    color: var(--color3);
}

.post-meta{
    color: var(--color1);
    font-size: 15px !important;
    padding: 10px 0;
    border-top: solid 1px var(--color2);
}

.post-meta a{
    color: var(--color3);
}

/* Contenedor general de comentarios */
#comments {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--color3-10);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Título de la sección */
#comments h3,
#reply-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color1); 
}

#comments label{
    text-align: left !important;
}

#comments a{
    color: var(--color3);
}

/* Lista de comentarios */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    border-radius: 0.75rem;
    background: var(--color5);
    border: 1px solid var(--color3-10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Autor del comentario */
.comment-author {
    font-weight: 600;
    color: #0f172a;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

/* Texto del comentario */
.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color4);
}

/* Botón de respuesta */
.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    background: var(--color3);
    color: var(--color5);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.comment-reply-link:hover {
    background: var(--color1);
}

/* Formulario de comentarios */
#commentform {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #ffffff;
    font-size: 1rem;
    color: #111827;
    max-height: 100px;
    resize: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
    outline: none;
}

/* Botón enviar */
#commentform input[type="submit"] {
    align-self: flex-start;
    background: var(--color4);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

#commentform input[type="submit"]:hover {
    background: #1d4ed8;
}

.category {
    padding: 30px 0;
}

.nav-category{
    max-width: 1200px;
    margin:auto;
    width: 90%;
}

.nav-category ul{
    display: flex;
    list-style-type: none;
}

.nav-category ul li a{
    display: block;
    line-height: 50px;
    padding: 0 20px;
    text-decoration: none;
    background-color: var(--color2);
    color: var(--color1);
    transition: color .3s ease, background-color .3s ease;
}

.nav-category ul li a:hover{
    background-color: var(--color3);
    color: var(--color5);
}

.category .wrap {
    display: flex;
    flex-wrap: wrap;
    gap:2%;
}

.category .wrap article{
    width: 100%;
    margin:0 0 2% 0;
    display: flex;
    border:solid 1px var(--color2);
    border-radius: 10px;
}

.category .wrap article .image{
    overflow: hidden;
    aspect-ratio: 3/2;
    width: 30%;
    overflow: hidden;
}

.category .wrap article .info{
    width: 70%;
    padding:10px 5%;
}


@media(max-width:800px){
    .category .wrap article{
        width: 100%;
        margin:0 0 30px 0;
        flex-wrap: wrap;
    }

    .category .wrap article .image{
        width: 100%;
        aspect-ratio: auto;
    }

    .category .wrap article .info{
        width: 100%;
    }
}


.category .wrap article .image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px;
}

.category .wrap article h2{
    font-size: 18px;
    font-weight: 600;
    color: var(--color1);
    line-height: 1.8;
}

.category .wrap article .btn-more{
    display: table;
    margin:10px 0 0 0;
}

.category .wrap article .btn-more a{
    display: block;
    background-color: var(--color4);
    text-decoration: none;
    color: var(--color2);
    padding: 10px 20px;
    border-radius: 5px;
}