@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap');

:root{
    --backgroung: linear-gradient(135deg, #667eea7e 0%, #1f13ca98 100%);
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --boton-padding: 20px 40px;
}

body{
    font-family: 'Raleway', sans-serif;   
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    margin: 0 auto; 
    overflow:hidden; 
    padding: 80px 0; 
    max-width: 1200px;      
}

.subtitle{
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 35px;
}

#header_enfocado{
    height: 100vh;
    background-image: var(--backgroung), url("../Recursos/ImgServis.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position:relative;
    display: block;
}

.hero .container{
    padding: 0;
}

li{
    list-style: none;
    margin-right: 22px;
}

.transision{
    transition: transform .3s ease-in-out;
}

.menu{
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    height: 70px;
    font-weight: 700;
}

.sesiones{
    position: absolute;
    overflow: hidden;
    display: none;
}

li:hover .sesiones{
    display: block;
}

.lista{
    margin: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
}

.lista a{
    display: block;
    text-decoration: none;
    color: white;
    margin-right: 20px;
    padding: 10px 20px;
}

.lista a:hover{
    border: 1px solid #fff;
}

.sesiones a:hover{
    color: #666;
    padding: 10px 30px;
    text-align: center;
}

.nav--footer{
    font-weight: 300;
    text-align: center;

}

.nav__items--m{
    color: #666;
}



.nav__items--footer{
    color: #fff;
    padding: 10px;
    text-decoration: none;
    text-align:center;
}

.hero__container{
    display: flex;
    height: calc(100vh - 70px);
    align-items: center;
    color: #fff;
}

.hero__texts {
  text-align: center;
  color: white;
  padding-top: 50px;
}

.hero__title{
    font-size:3.2rem;
}

.hero__subtitle{
    font-size: 2rem;
    font-weight: 300;
    margin: 15px 0px;
}

.hero__cta{
    margin-top: 50px;
    font-size:1.5rem; 
    display: inline-block;
    background-color: #fff;
    padding: var(--boton-padding);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 40px;
}

.hero__wave{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;

}

/*PARTE DEL ABOUT*/

.presentation{
    padding: 70px;
    text-align: center;
}

.presentation__picture{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    object-position: top;
}

.presentation__copy{
    width: 80%;
    margin: 0 auto;
    text-align: justify;

}

.presentation__cta{
    display: inline-block;
    margin-top: 30px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    padding: var(--boton-padding);   
    border-radius: 40px;
}

.about{
    min-height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 80px;
    justify-items: center;
    align-items: center;
}

.about__img{
    text-align: center;
}

.about__img--left{
    text-align: left;
}

.about__picture{
    max-width: 80%;
}

.about__paragraph{
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 300;
    text-align: justify;
}

/*SECCION DE ABOGADOS*/

.abogados{
    background: #f2f2f2;
}

.abogados__grid{
    display: grid;   
    grid-template-areas: 
    "abogado1 abogado1 abogado2 abogado4"
    "abogado1 abogado1 abogado5 abogado6";
    gap: 10px;

}

.abogados__item{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.abogado__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;

}

.abogado__img--top{
    object-position: top;
}

.abogados__item:nth-of-type(1){
    grid-area: abogado6;
}
.abogados__item:nth-of-type(2){
    grid-area: abogado2;
}
.abogados__item:nth-of-type(3){
    grid-area: abogado4;
}
.abogados__item:nth-of-type(4){
    grid-area: abogado5;
}
.abogados__item:nth-of-type(5){
    grid-area: abogado1;
}

.abogado__hover{
    position: absolute;
    background: #dc143c8c;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content:center;
    transform: translateX(100%);
    cursor: pointer;
    transition: transform .3s ease-in-out;
}

.abogados__item:hover .abogado__hover{
    transform: translateX(0%);
}

.abogados__icon{
    margin-top: 10px;
    font-size: 30px;
}


/*COMENTARIOS DE PERSONAS*/

.testimonio__grid{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonio__item{
    width: 95%;
    margin: 0 auto;
    background: var(--color-secondary);
    box-shadow: 0 8px 10px rgba(66,66,66, .5);
    border-radius: 7px;
    padding: 30px 25px;
    color: #fff;
    margin-bottom: 50px;

}

.testimonio__persona{
    display:flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonio__img{
    width:100px;
    min-width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-right: 30px
}

.testimonio__nombre{
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.testimonio__verificacion{
    color: #E0AFA0;
    font-weight: 700;
}

.testimonio_reseña{
    font-weight: 300;
    text-align: justify;
}

/*FOOTER*/

.footer {
    background: var(--color-primary);
    padding: 30px 15px;         /* Reduce el espacio interno */
    font-size: 0.85rem;         /* Letra más compacta */
}

.footer__col h4 {
    margin-bottom: 8px;         /* Reduce separación entre títulos */
}

.footer__col p {
    margin: 4px 0;              /* Reduce separación entre líneas */
}

.footer__copy {
    padding-top: 15px;
    font-size: 0.75rem;
}

.footer__grid{
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: center;
}

.footer__title{
    font-weight: 400;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.footer__icons{
    display: flex;
    justify-content: space-evenly;
}

.footer__container-icons{
    display: inline-block;
    width: 60px;
    height: 60px;
    color: #ffff;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 50%;
}

.footer__icon{
    color: inherit;
    font-size: 30px;
    text-decoration: none;

}

.fab.footer__icon{
    line-height: 60px;
}

/*Diseño responsibo*/

@media screen and (max-width: 800px){
    :root{
        --boton-padding: 18px 40px;
    }

    /*HEADER*/

    .menu{
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;

    }

    li:hover .sesiones{
        display:flex;
        position: relative;
    }

    .lista{
        font-weight: 400;
        margin-right: 0;
        flex-wrap:wrap;
                justify-content: center;
    }

    .lista a{
        margin-right: 5px;
        padding: 10px 5px;
        justify-content: space-between;


    }
    .nav__items--footer{
        border: none;
    }

    .hero__texts{
        width:100%;
        margin-bottom: 80px;
    }

    .hero__title{
        font-size: 2.5rem;
    }

    .hero__subtitle{
        font-size: 1.5rem;
    }

    /*ABOUT*/

    .presentation__copy{
        width: 100%;
    }

    .about{
        grid-template-columns: 1fr;
    }

    .about__img--left{
        text-align: center;
    }

    .about__texts:last-child{
        grid-row: 3/4;
    }

    /*NUESTROS ABOGADOS*/

    .abogados__grid{
        grid-template-areas:
        "abogado1 abogado1 abogado2 abogado2"
        "abogado1 abogado1 abogado4 abogado4"
        "abogado5 abogado5 abogado6 abogado6" ;
    }

    /*EXPERIENCIAS*/

    .testimonio__grid{
        grid-template-columns: 1fr;
        gap: 30px;
    }


    /*FOOTER*/

    .footer__grid{
        grid-template-columns: 1fr;
    }

    .footer__contact{
        grid-row: 1/2;
    }
}

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

    :root{
        --boton-padding: 18px 35px;
    }

    .container {
        padding: 60px 0; 
    }

    .subtitle{
        font-size: 2rem;
        margin-bottom: 20px;
        margin-top: 60px;
    }

    .subtitle--m{
        margin-top: 0 ;
    }

    .menu{
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;

    }

    li:hover .sesiones{
        display:flex;
        position: relative;
    }

    .lista{
        font-weight: 400;
        margin-right: 0;
        flex-wrap:wrap;
                justify-content: center;
    }

    .lista a{
        margin-right: 5px;
        padding: 10px 5px;
        justify-content: space-between;


    }

    .hero__texts{
        text-align: center;
        margin-bottom: 40px;
    }

    .hero__title{
        font-size: 2rem;
    }

    /*ABOUT*/

    .presentation__picture{
        width: 120px;
        height: 120px;
    }

    .about{
        row-gap: 60px;
    }

    .about.container{
        padding-top: 10px;
    }

    /*Abogados*/

    .abogados__grid{
        grid-template-areas: 
        "abogado1"
        "abogado2"
        "abogado4"
        "abogado5"
        "abogado6";
        height: auto;
        grid-template-rows: repeat(5,250px);
        grid-auto-rows: 250px;
        gap: 10px;
    }

    /*RESEÑAS*/

    .testimonio__item{
        padding: 30px 15px;
    }

    .testimonio__persona{
        flex-direction: column;
    }

    .testimonio__text{
        text-align: center;
    }

    .testimonio__img{
        margin:0;
        margin-bottom: 20px;
    }

        /*FOOTER*/

    .footer__grid{
        grid-template-columns: 1fr;
    }

    .footer__contact{
        grid-row: 1/2;
    }
}
.boton {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: bold;
}

.boton:hover {
    background-color: #1a252f;
}
/* Estilo para el botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebea5;
}
/* Fondo de la página de inicio */
.hero-inicio {
    background: linear-gradient(rgba(38, 50, 56, 0.6), rgba(38, 50, 56, 0.6)),
                url('../Recursos/fondo.jpeg');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
}

/* Fondo de la página de servicios */
/* Fondo para la sección de servicios sin filtro azul */
.hero-servicios {
  background: url('../Recursos/LogoServicio.jpg') no-repeat center center;
  background-size: cover;
  background-position: center;
  padding: 100px 0; /* ajusta si lo deseas */
  color: white;
}



/* Botón "Únete ahora" */
.cta {
    display: inline-block;
    background-color: white;
    color: #3b5bdb;
    padding: 15px 30px;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
}

.cta:hover {
    background-color: #3b5bdb;
    color: white;
}
.hero-contacto {
  background: url('../Recursos/ImgContactanos.png') no-repeat center center;
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  position: relative;
}
.hero-contacto {
  background: url('../Recursos/fondo-contactanos.jpg') no-repeat center center;
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  position: relative;
}
/* Estilos para las imágenes de los miembros del equipo */
.card__img {
    width: 100%; /* La imagen ocupará el 100% del ancho de su contenedor */
    height: 200px; /* Puedes ajustar esta altura fija según tus preferencias */
    object-fit: cover; /* Recorta la imagen para que cubra el área sin distorsionarse */
    display: block; /* Asegura que la imagen sea un bloque y elimine cualquier espacio extra */
    border-radius: 10px 10px 0 0; /* Si quieres bordes redondeados solo en la parte superior */
}

/* Opcional: si las "cards" del equipo necesitan un tamaño fijo para las imágenes */
.card {
    /* ... otros estilos existentes para .card ... */
    overflow: hidden; /* Esto es importante para que las imágenes se recorten si son más grandes */
}
/* En style.css o Contactanos.css */

.footer {
    display: flex; /* Cambia a flexbox */
    justify-content: space-around; /* Distribuye el espacio entre los elementos */
    align-items: flex-start; /* Alinea los elementos al inicio (arriba) */
    padding: 40px 20px; /* Ajusta el padding según necesites */
    background-color: #333; /* Color de fondo de tu footer */
    color: white; /* Color del texto de tu footer */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.footer__col {
    flex: 1; /* Permite que las columnas crezcan y se encojan */
    min-width: 200px; /* Ancho mínimo para evitar que se aplasten demasiado */
    margin: 10px; /* Margen entre las columnas */
    text-align: center; /* Centra el texto dentro de cada columna */
}

.footer__col h4 {
    margin-top: 0;
    margin-bottom: 15px; /* Espacio debajo del título */
    font-size: 1.2rem;
}

.footer__col p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer__col .fab {
    font-size: 1.8rem;
    margin: 0 10px;
    color: white;
    transition: color 0.3s ease;
}

.footer__col .fab:hover {
    color: #f0f0f0; /* Un ligero cambio al pasar el ratón */
}

/* Asegúrate de que el copyright esté debajo de todo */
.footer__copy {
    width: 100%; /* Ocupa todo el ancho */
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555; /* Una línea divisoria */
    font-size: 0.85rem;
}

/* Si tienes una clase `footer__bottom` como en tu index.html */
.footer__bottom {
    width: 100%;
    text-align: center;
    padding-top: 10px;
}
.abogado__title {
    font-size: 0.9rem; /* Reduce el tamaño */
    margin: 2px 0;      /* Espaciado más compacto */
    word-wrap: break-word; /* Evita que el correo desborde */
}
