:root{
  --bg:#0f1216;
  --text:#111;
  --muted:rgb(191, 155, 48);
  --white:#fff;
  --white0:#ffffffcf;
  --card:#ffffff;
  --line:rgba(17,17,17,.10);
  --accent:rgb(191, 155, 48);
  --accent0:#00000076;
  --accent2:rgb(42, 60, 85);
    --accent21:rgba(42, 60, 85, 0.85);
  --radius:18px;
  --max:1100px;
}

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}




html{
  scroll-behavior:smooth;
}

html, body{
  overflow-x:hidden;
}


body{
  min-width:0;
  width:100%;
  color:var(--text);
  background:#fff;
  display:flex;
  flex-direction:column;

    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
}

h1, h2, h3, h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    color: var(--accent);
}

body, button, input, textarea {
    font-family: "Cormorant Garamond", serif;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

ul{
  list-style:none;
}

/* BASE */


main{
  width:100%;
}

section{
  width:100%;
  padding:90px 10vw;
  
  background: var(--accent2);
  color:var(--card);
}

.kicker{
  color:var(--card);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.9rem;
  font-weight:700;
  margin-bottom:10px;
}

.card{
  background:var(--card);
  border:1px solid rgba(0,0,0,.06);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

/* NAVBAR */
header{
  width:100%;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:.75rem 2rem;
  background:var(--accent2);
  color:#fff;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  transition:padding .2s ease, box-shadow .2s ease;
}

.navbar:hover{
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.navbar .logo{
  flex-shrink:0;
}

.navbar .logo img{
  width:200px;
  max-width:100%;
  transition:transform .2s ease-in-out;
}

.navbar .logo img:hover{
  transform:scale(1.05);
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2rem;
  margin-left:auto;
}

.nav-links li{
  position:relative;
}

.nav-links a,
.submenu-toggle{
  color:#fff;
  font-size:1rem;
  transition:color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.submenu-toggle:hover,
.nav-links .nav-active{
  color:var(--accent);
}

.submenu-toggle{
  background:none;
  border:none;
  font:inherit;
  cursor:pointer;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* CTA navbar */
.reserva,
.reservas{
  background:var(--accent);
  border:1px solid var(--accent);
  padding:10px 16px;
  border-radius:999px;
  color:#111;
  font-weight:700;
  transition:all .25s ease;
  min-width:150px;
  text-align:center;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.reservas:hover{
  box-shadow:0 0 18px rgba(191,155,48,.45);
  transform:translateY(-1px);
}

/* HAMBURGER */
.hamburger{
  display:none;
  font-size:2.2rem;
  line-height:1;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
}

/* SUBMENU */
.has-submenu{
  position:relative;
}

.submenu{
  list-style:none;
  position:absolute;
  top:100%;
  left:0;
  margin-top:0px;
  min-width:240px;
  background:rgb(240,246,255);
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:8px 0;
  display:none;
  z-index:1001;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.submenu li a{
  display:block;
  padding:11px 16px;
  color:var(--accent2);
  white-space:nowrap;
}

.submenu li a:hover{
  background:rgba(42,60,85,.06);
  color:var(--accent);
}

@media (hover: hover) and (pointer: fine){
  .has-submenu:hover > .submenu{
    display:block;
  }
}

.submenu[aria-hidden="true"]{
  display:none;
}

.submenu[aria-hidden="false"]{
  display:block;
}

/*---------------------------------------------------------------- */
/*----------------------BODDY------------------------------------- */
/*---------------------------------------------------------------- */

/* HERO */
.hero, .hero-services {
  position:relative;
  min-height:100vh;
  width: 100vw;
  display:flex;
  align-items:center;


}

.hero {
    color:#fff;
  padding: 0px 10vw;
  background:
    linear-gradient(60deg, rgba(42,60,85,.86) 0%, rgba(42,60,85,.55) 55%, rgba(42,60,85,.86) 100%),
    url("../media/images/foto-portada.png") center center / cover no-repeat fixed;
}

.hero-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding: 50px 10vw 0px 10vw;
  min-height: max(200px, 40vh);
}


.hero-inner{
  width:100vw;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:26px;
  align-items:center;
}

.hero h1, .hero-services h1{
  font-size:clamp(2.4rem, 5vw, 4rem);
  line-height:1.05;
  margin:10px 0 14px;
}

.hero h1, .hero p {

  color:#fff;
}

.hero-services p {
  color: var(--accent2);
}

.hero p{
  font-size:1.1rem;
  max-width:52ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
  backdrop-filter:blur(8px);
  transition:.2s ease;
  font-weight:600;
}

.btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.14);
}

.btn.primary{
  background:var(--accent);
  border-color:transparent;
  color:#111;
}

.btn.primary:hover{
  filter:brightness(1.05);
}


/* ABOUT */
.about{
  background: var(--accent2);
  color:var(--card);
}

.about > div{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.about h2{
  font-size:clamp(1.9rem, 3vw, 2.8rem);
  margin:10px 0 14px;
}

.about p{
  font-size:1.05rem;
  line-height:1.8;
  max-width:1000px;
}

/* SERVICES */
.services{
  padding: 50px 10vw;
  background: var(--accent2);
}

.services-s {
  background: var(--white);
}

.services h2{
  font-size:clamp(1.8rem, 2.5vw, 2.3rem);
  margin:10px 0 22px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.service{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px;
  border-radius:var(--radius);
  box-shadow:10px 10px 15px  var(--accent0);
  border:2px solid #ffffff;
  background:#ffffff;
  position:relative;
  overflow:hidden;
  min-height:200px;
  transition:all .3s ease-in-out;
}



.service:hover{
  transform:translateY(1px);
  box-shadow:5px 5px 3px var(--accent0);
}

.service strong{
  font-size:1.45rem;
  color: var(--accent0);
  line-height:1.2;
  width:70%;
  position:relative;
  z-index:2;
  transition: all .3s ease-in-out;
}

.service small{
  color:#000;
  font-size:1.02rem;
  line-height:1.5;
  width:65%;
  position:relative;
  z-index:2;
}

.service::after{
  content:"";
  position:absolute;
  right:15px;
  bottom:1vw;
  width:8vw;
  height:100%;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  pointer-events:none;
  opacity:.18;
  transition:opacity .4s ease, transform .4s ease;
  
  filter: grayscale(1) ; /* ejemplo */
}


.service:hover .card-strong {
  
  color: var(--accent2);
  
  transition: all .3s ease-in-out;
}
 
.service:hover::after{
  
  transition:opacity .4s ease, transform .4s ease;

    opacity:.8;
  filter: grayscale(0); /* ejemplo */
}

.service:first-child::after{
  background-image:url(/media/images/iconos/DERECHO-CIVIL.svg);
}

.service:nth-child(2)::after{
  background-image:url(/media/images/iconos/DERECHO-FAMILIA.svg);
}

.service:nth-child(3)::after{
  background-image:url(/media/images/iconos/DERECHO-SUCESIONES.svg);
}

.service:nth-child(4)::after{
  background-image:url(/media/images/iconos/DERECHO-BANCARIO.svg);
}

.service:nth-child(5)::after{
  background-image:url(/media/images/iconos/DERECHO-MERCANTIL.svg);
}

.service:nth-child(6)::after{
  background-image:url(/media/images/iconos/CINEGETICO.svg);
}

.service:nth-child(7)::after{
  background-image:url(/media/images/iconos/DERECHO-PENAL.svg);
}

.service:nth-child(8)::after{
  background-image:url(/media/images/iconos/DERECHO-DEL-TRABAJO.svg);
}

.service:nth-child(9)::after{
  background-image:url(/media/images/iconos/DERECHO-ADMINISTRATIVO.svg);
}




/* WHY */
.why{
  padding:70px 0 90px;
}

.why h2{
  font-size:clamp(1.9rem, 3vw, 2.8rem);
  margin:10px 0 18px;
  color:var(--accent2);
}

.why-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.why-item h3{
  font-size:1.2rem;
  margin-bottom:8px;
  color:var(--accent2);
}

.why-item p{
  color:#2b3340;
  line-height:1.6;
}

.note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(31,75,143,.08);
  border:1px solid rgba(31,75,143,.18);
  color:#24324a;
}




/* PREGUNTAS FRECUENTES */



.preguntas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0px 0px 100px 0px;
    background:var(--white);
}

 .preguntas-home {
    background: var(--accent2);
 }

  .preguntas-home details {
    background: var(--white0);
    color: var(--accent2);
 }

  .preguntas-home details:hover,
  .preguntas-home details[open]   {

    background: var(--white);
    color: var(--accent2);
  }

.preguntas h2 {
    text-align: center;
    margin: 10px 80px 50px 80px;
}

.ppreguntas {
    text-align: justify;
    margin: 15px;
}

details {
    background: var(--accent21);
    padding: 15px;
    border-radius: 30px;
    margin: 8px 25px 8px 25px;
    padding: 25px;
    cursor: pointer;
    width: 80%;
}

details:hover {
    background: var(--accent2);
}

details[open] {
    background: var(--accent2);
}

summary{
    font-size: 1.5em;
}

details p { 
  font-size: 1.2rem;
}

summary::before{
    padding-right: 20px;
}


@media screen and (min-width: 900px) {
    .preguntas {
        padding: 50px 50px 50px 50px;
    }
}


/* EQUIPO */

.equipo{
    padding:120px 0 80px 0;
}

.intro-equipo{
    max-width:900px;
    margin:0 auto 60px auto;
    text-align:center;
}

.intro-equipo h1{
    font-size:3.6rem;
    color:var(--accent);
    margin-bottom:20px;
}

.intro-equipo p{
    color:var(--white);
    line-height:1.7;
    font-size: 1.2rem;
}

.socios{
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
}

.socio{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
    width: max(30vw, 300px);
    background:#fff;
    padding:30px;
    border-radius:14px;
    border:1px solid rgba(0,0,0,.08);
    text-align:center;
    margin: 15px;
    transition: all .5s ease-in-out;
}

.foto-socio{
    height:auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.foto-socio img {
      transition: all .5s ease-in-out;
      opacity: .5;
    mask-image: linear-gradient(rgb(255,255,255) 30%, transparent);
    width:100%;
    height:100%;
    object-fit:cover;
}

.socio:hover .foto-socio img {
  opacity: 1;
      transition: all .5s ease-in-out;
    }

.socio h2{
    font-size:1.6rem;
    color:var(--accent2);
}

.cargo{
    color:var(--accent);
    font-weight:600;
    margin:6px 0 12px 0;
}

.descripcion{
    color:#2b3340;
    line-height:1.6;
    text-align: justify;
}

/* RESPONSIVE EQUIPO */

@media (max-width: 1024px){
    .socios{
        display:flex;
        flex-direction: column;
        gap:30px;
        padding:0 6vw;
    }

    .socio {
      height: auto;
    }

    .foto-socio img {
      width: 50vw;
    }

    .intro-equipo h1{
        font-size:3rem;
    }

    .intro-equipo p{
        font-size:1.1rem;
    }
}

@media (max-width: 768px){
    .equipo{
        padding:100px 0 70px 0;
    }

    .intro-equipo{
        max-width:90%;
        margin:0 auto 40px auto;
    }

    .intro-equipo h1{
        font-size:2.6rem;
    }

    .intro-equipo p{
        font-size:1.05rem;
        line-height:1.6;
    }

    .socios{        
        gap:24px;
        padding:0 24px;
    }

    .socio{
        padding:24px 20px;
    }

    .socio h2{
        font-size:1.4rem;
    }

    .cargo{
        font-size:1rem;
    }

    .descripcion{
        font-size:1rem;
        line-height:1.6;
    }
}

@media (max-width: 480px){
    .equipo{
        padding:90px 0 60px 0;
    }

    .intro-equipo{
        max-width:92%;
        margin:0 auto 30px auto;
    }

    .intro-equipo h1{
        font-size:2.2rem;
        margin-bottom:14px;
    }

    .intro-equipo p{
        font-size:1rem;
    }

    .socios{
        padding:0 16px;
        gap:18px;
    }

    .socio{
        padding:20px 16px;
        border-radius:12px;
    }

    .socio h2{
        font-size:1.25rem;
    }

    .cargo{
        font-size:.95rem;
    }

    .descripcion{
        font-size:.95rem;
        line-height:1.5;
    }
}

/* CONTACT */

.contact h2{
  font-size:clamp(1.9rem, 3vw, 2.8rem);
  margin:10px 0 16px;
}

form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

label{
  font-weight:600;
  font-size:.95rem;
  color:var(--accent2);
}

input,
textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font:inherit;
  outline:none;
  transition:.15s ease;
}

input:focus,
textarea:focus{
  border-color:rgba(31,75,143,.45);
  box-shadow:0 0 0 4px rgba(31,75,143,.12);
}

textarea{
  min-height:130px;
  resize:vertical;
}

.span-2{
  grid-column:1 / -1;
}

.submit-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:6px;
}

.legal{
  font-size:.9rem;
  color:var(--accent);
}

.submit{
  padding:12px 18px;
  border-radius:999px;
  border:0;
  background:var(--accent2);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.submit:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}



/*-------------------------------------SERVICIOS------------*/

.hero-services {

  background-color: var(--card);
}

.about-service {
  padding: 0 0 0 0;
  background: rgb(255, 255, 255);
  color: var(--accent2);
}

.about-service p {
  margin-top: 50px;
}


/* FOOTER */
footer{
  padding:26px 0;
  color:var(--accent);
  border-top:1px solid rgba(0,0,0,.06);
  background:#fff;
}

/* TABLET */
@media (max-width: 920px){
  .hero-inner{
    grid-template-columns:1fr;
    padding:130px 0 70px;
  }

  .grid{
    grid-template-columns:1fr 1fr;
  }

  .why-grid{
    grid-template-columns:1fr;
  }

  .service{
    min-height:190px;
  }

  .service strong{
    width:68%;
    font-size:1.3rem;
  }

  .service small{
    width:68%;
    font-size:.96rem;
  }

  .service::after{
    width:13vw;
    height: 100%;
    right:0;
    bottom:14px;
  }
}

/* MOBILE NAV */
@media (max-width: 1068px){
  .navbar{
    padding:.8rem 1.2rem;
  }

  .navbar .logo img{
    width:170px;
  }

  .hamburger{
    display:block;
  }

  .nav-links{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;

    position:fixed;           /* 👈 clave */
    top:70px;                 /* altura de la navbar */
    right:0;
    bottom:0;                 /* 👈 llega hasta abajo */

    width:min(280px,100%);
    height:calc(100vh - 70px);

    overflow-y:auto;
    -webkit-overflow-scrolling:touch;

    background:rgb(255, 255, 255);
    padding:18px 18px 30px;

    transform:translateX(100%);
    opacity:0;
    transition:transform .3s ease, opacity .3s ease;
    box-shadow:0 12px 24px rgba(0,0,0,.12);
    gap:14px;
  }

  .nav-links.show{
    transform:translateX(0);
    opacity:1;
  }

   .nav-links li{
    width:100%;
    margin:0;
  }

  .nav-links a{
    color:#000;
    display:block;
    width:100%;
    margin:0;
    padding:8px 0;
  }

  .submenu-toggle{
    color:#000;
    width:100%;
    text-align:left;
    justify-content:flex-start;
  }

  .has-submenu{
    width:100%;
  }

  .submenu{
    position:static;
    display:none;
    border:none;
    box-shadow:none;
    padding:4px 0 0;
    margin-top:6px;
    min-width:unset;
    background:transparent;
  }

  .has-submenu.open > .submenu{
    display:block;
  }

  .submenu li a{
    padding:8px 0 8px 14px;
  }

  .reservas{
    min-width:unset;
    width:100%;
  }
}

/* MOBILE */
@media (max-width: 560px){


  .hero{
    min-height:100svh;
    background-position:center;
  }

  .hero-inner{
    padding:110px 0 60px;
  }

  .hero h1{
    font-size:clamp(2rem, 9vw, 3rem);
  }

  .hero p{
    font-size:1rem;
    max-width:100%;
  }

  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-actions .btn{
    width:100%;
  }

  .about{
    padding:80px 0 20px;
  }

  .about h2,
  .why h2,
  .contact h2{
    font-size:2rem;
  }

  .grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .service{
    min-height:170px;
    padding:18px;
  }

  .service strong{
    width:72%;
    font-size:1.2rem;
  }

  .service small{
    width:72%;
    font-size:.92rem;
  }

  .service::after{
    width:25vw;
    height:100%;
    right:0px;
    bottom: 5px;
  }

  form{
    grid-template-columns:1fr;
  }

  .submit-row{
    flex-direction:column;
    align-items:stretch;
  }

  .submit{
    width:100%;
  }

  footer .container{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* REDUCE MOTION */
@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    transition:none !important;
    animation:none !important;
  }
}