html{ box-sizing: border-box; scroll-behavior: smooth; } 

*, *::before, *::after{ margin: 0; padding: 0; box-sizing: inherit; font-family: "Raleway", sans-serif; text-decoration: none; list-style: none;} 

img, picture, canvas{ max-width: 100%; display: block; } 

body{ overflow-x: hidden;} 

main, footer, header { width: 100%; max-width: 1600px; margin: auto; }



:root{
    --dorado:      #D2AF56;
    --dorado-oscuro: #68562a;
      --gris-txt: #58595D;
      --azul-oscuro:      #161B23;
      --negro-tit: #161B23;
      --azul-oscuro-cajas:     #22252B;
      --grey: #828181;
      --grey-tit: #3D3D3D;
}



/* HERO */

.header {
  min-height: 500px;

  /* Valores para móvil */
  --imagen-x: 80%;
  --imagen-y: center;
  --imagen-size: auto 100%;
  --blanco-hasta: 15%;
  --transparente-desde: 75%;

  background-image:
    linear-gradient(
      to right,
      #fff 0%,
      rgba(255, 255, 255, .98) 35%,
      rgba(255, 255, 255, .90) 70%,
      rgba(255, 255, 255, .10) 100%
    ),
    url("/images/abogado-migratorio.webp");

  background-position:
    center,
    var(--imagen-x) var(--imagen-y);

  background-size:
    cover,
    var(--imagen-size);

  background-repeat: no-repeat;
}

.header .hero {
  min-height: 420px;
  padding: 164px 40px 164px 20px;
  display: flex;
  align-items: center;
}

.hero > div{
  max-width: 580px;
}

h1{
  color: var(--dorado);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-variant: small-caps;
  margin-bottom: 16px;
}

h1::before {
  content: "";
  width: 24px;
  height: 2px;
  flex-shrink: 0;
  background-color: var(--dorado);
}

.hero > div> p:first-of-type{
  color: var(--negro-tit);
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 24px;
}

.hero > div > p:last-of-type,
.hero > div > ul > li{
  color: var(--gris-txt);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.5;
}

.hero > div > ul > li{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero > div > ul{
  margin-top: 34px;
}

.cta-hero{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 44px;
}

.cta-hero a:first-of-type,
.cta-hero a:last-of-type,
.cta-servicios a{
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 600;
  border-radius: 4px;
  padding: 12px 34px;
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
  transition: transform .25s ease;
  font-variant: small-caps;
}

.cta-hero a:first-of-type{
  color: var(--dorado-oscuro);
  border: 1px solid var(--dorado);
}

.cta-hero a:last-of-type{
  color: whitesmoke;
  background-color: var(--azul-oscuro);
  display: flex;
  flex-direction: row;
  gap: 16px;
  border: 1px solid var(--azul-oscuro);
}

.cta-servicios a{
  color: white;
  background-color: var(--dorado);
  display: flex;
  flex-direction: row;
  gap: 16px;
  border: 1px solid var(--dorado);
  max-width: 204px;
  margin: 64px auto 0 auto;
}

.cta-hero a:first-of-type:hover,
.cta-hero a:last-of-type:hover,
.cta-servicios a:hover
{ transform: translateX(2px) translateY(-2px); }



/* TITULOS */

.h2-tit{
  color: var(--dorado);
  font-size: 16px;
  letter-spacing: 1px;
  font-variant: small-caps;
  font-weight: bold;
}

.tit-p{
  color: var(--azul-oscuro);
  font-size: 36px;
  font-weight: bold;
}

.txt-tit{
  font-size: 16px;
  color: var(--gris-txt);
  line-height: 1.5;
}

/* INTRO */

.intro-secc{
  margin: 364px 10px 80px;
}

.intro-secc,
.titutlos-intro,
.proceso-secc{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titutlos-intro{
  max-width: 840px;
}

.titutlos-intro h2,
.titutlos-intro p{
  text-align: center;
}

.titutlos-intro h2{
  margin: 16px 0;
}

.titutlos-intro p{
  margin-bottom: 34px;
}

.intro-list{
  display: flex;
  flex-wrap: wrap;
  max-width: 780px;
  gap: 44px;
  margin-top: 44px;
}

.intro-list li{
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-list li h3,
.diferencial-lis li h3{
  font-size: 18px;
  font-variant: small-caps;
  color: var(--azul-oscuro);
  font-weight: bold;
  margin-bottom: 16px;
}

.intro-list li p,
.diferencial-lis li p{
  color: var(--azul-oscuro);
  font-size: 15px;
  line-height: 1.25;
}

/* SERVICIOS */

.servicios{
   --profundidad-punta: 100px;

  background: var(--azul-oscuro-cajas);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--profundidad-punta)),
    50% 100%,
    0 calc(100% - var(--profundidad-punta))
  );

  /* Deja espacio para que la punta no corte el contenido */
  padding: 80px 10px calc(80px + var(--profundidad-punta));
}

.servicios-tit{
  max-width: 780px;
  margin: 0 4% 64px 4%;
}

.servicios-tit p:first-of-type{
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
}

.servicios-tit p:last-of-type{
  font-size: 16px;
  color: white;
  line-height: 1.5;
}

.servicios-list {
  width: min(100%, 908px);
  margin: 44px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.servicios-list > li {
  width: 100%;
  border-top: 1px solid #D9D9D966;
  border-bottom: 1px solid #D9D9D966;
}

.servicios-list > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 112px;
  gap: 16px;
  padding: 22px clamp(12px, 6vw, 80px);
  transition: underline .25s ease;
}

.servicios-list > li > a:hover{
  text-decoration: underline white;
}

.servicios-list > li > a > div:first-of-type {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  min-width: 0;
}

.servicios-list > li > a > div:first-of-type img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}

.servicios-list > li > a > div:first-of-type > span {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: bold;
  letter-spacing: 1px;
  font-variant: small-caps;
  color: white;
}

.servicios-list > li > a > div:last-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin-left: auto;
  border: 1px solid #78afe06e;
  border-radius: 50%;
}

/* DIFERENCIAL */

.diferencial-div{
  background-color: #F1F1F2;
  border-radius: 4px;
  max-width: 1200px;
  margin: 84px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding: 44px 10px;
}

.diferencial-img{
    width: 100%;
    height: 180px;
    margin: auto;
    object-fit: cover;
    border-radius: 4px;
}

.diferencial-lis{
  display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 44px 20px 0 20px;
}

.diferencial-lis li img{
  margin-bottom: 8px;
}

/* PROCESO */

.proceso-secc{
  margin: 44px 0 64px 0;
}

.proceso {
  padding: 64px 20px;
}

.proceso-lista {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.proceso-paso {
  text-align: center;
}

.proceso-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  border: 1px solid var(--dorado);
  border-radius: 50%;
  color: var(--dorado);
  font-size: 30px;
  font-weight: 400;
  background-color: #ffffff;
}

.proceso-paso h3 {
  min-height: 2.5em;
  margin: 0 0 12px;
  color: var(--negro-tit);
  font-size: 17px;
  font-variant: small-caps;
  line-height: 1.25;
}

.proceso-paso p {
  max-width: 230px;
  margin: 0 auto;
  color: var(--gris-txt);
  font-size: 15px;
  line-height: 1.2;
}


/* CARRUSEL TESTIMONIOS */

.testimonios-secc{
  margin: 164px 0;
}

.testimonios-tit{
  margin: 0 auto 44px auto;
  padding: 0 10px;
}

.testimonios-carrusel {
  --carousel-gap: 20px;
  width: 100%;
}

.testimonios-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 5%;
}

.testimonios-viewport::-webkit-scrollbar {
  display: none;
}

.testimonios-track {
  display: flex;
  gap: var(--carousel-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.testimonios-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: row;
  border: 2px solid #e9e9e7;
  border-radius: 16px;
  background-color: #fbfcfd;
}

/* Solo controles del carrusel; el diseño de las tarjetas queda aparte */
.testimonios-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.testimonios-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--dorado);
  border-radius: 50%;
  background: transparent;
  color: var(--azul-oscuro);
  font: inherit;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.testimonios-control:hover {
  background: var(--dorado);
  color: var(--azul-oscuro);
}

.testimonios-control:focus-visible,
.testimonios-punto:focus-visible {
  outline: 2px solid var(--azul-oscuro);
  outline-offset: 3px;
}

.testimonios-controles[hidden] {
  display: none;
}

.testimonios-puntos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonios-punto {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--grey);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 200ms ease, transform 200ms ease;
}

.testimonios-punto[aria-current="true"] {
  background: var(--dorado);
  opacity: 1;
  transform: scale(1.3);
}

.slide-test-iz{
  width: 30%;
    display: flex;
    align-items: end;
}



.slide-test-iz img{
  object-fit: contain;
    object-position: bottom;
}

.slide-test-dr img{
  margin: auto;
}

.slide-test-dr{
  width: 70%;
  padding: 24px;
}

.slide-test-dr p:nth-child(2){
  font-size: 15px;
  line-height: 1.5;
  color: var(--azul-oscuro);
  font-style: italic;
  margin-top: 16px;
}

.slide-test-dr hr:nth-child(3){
  height: 4px;
  width: 44px;
  background-color: var(--dorado);
  border-radius: 8px;
  border: none;
  margin: 24px 0 34px;
}

.slide-test-dr p:nth-child(4){
  color: var(--azul-oscuro);
  font-variant: small-caps;
  font-size: 20px;
  margin-bottom: 4px;
}

.slide-test-dr p:nth-child(5){
  color: var(--dorado);
  font-variant: small-caps;
  font-size: 14px;
}


/* PREGUNTAS FRECUENTES */

.faqs-secc{
  margin: 0 10px 164px 10px;
}

.tit-faqs{
  margin: 0 10px 64px 10px;
}

.faq-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.faq-title {
  margin-bottom: 32px;
  font-size: 32px;
  line-height: 1.1;
  color: #1f2933;
}

.faq-list {
  width: 100%;
}

.faq-item {
  border-top: 1px solid #1F2133;
}

.faq-item:last-child {
  border-bottom: 1px solid #1F2133;
}

.faq-question {
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  color: #2f343a;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.faq-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid #6e7080;
  border-radius: 50%;
  flex: 0 0 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background-color: #6e7080;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 48px 22px 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

/* Estado abierto */
.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-item.is-open .faq-question h3 {
  color: #111827;
}

/* TITULO ANIMADO */

.titulo-animado.preparado {
  opacity: 0;
  transform: translateY(50px);
}

.titulo-animado.preparado.visible {
  animation: entrada-titulo 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes entrada-titulo {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .titulo-animado.preparado,
  .titulo-animado.preparado.visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* WHATSAPP */
  
  #whatsapp-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: scale(0);
  opacity: 0;
  pointer-events: none; /* Evita clics cuando está invisible */
}

/* Estado visible que activaremos con JS */
#whatsapp-logo.visible {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.logo-whatsapp {
  background-color: #4FCE5D;
  display: flex;
    height: 64px;
    width: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px;
  transition: transform 0.3s ease-in-out;
}

.logo-whatsapp:hover {
  transform: translateY(-2px) translateX(2px);
}

@media (max-width: 480px) {
  .servicios-list > li > a {
    min-height: 94px;
  }

  .servicios-list > li > a > div:first-of-type img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .servicios-list > li > a > div:last-of-type {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}


@media (min-width: 768px) {

  /* HERO */

  .header {
    --imagen-x: right;
    --imagen-size: auto 100%;
    --blanco-hasta: 25%;
    --transparente-desde: 85%;
  }

  .header .hero {
    min-height: 520px;
    padding: 164px 5% 164px 10%;
  }

  .hero > div> p:first-of-type{
  font-size: 42px;
  }

  .cta-hero{
  justify-content: flex-start;
  gap: 44px;
  }

    /* INTRO */

.intro-secc{
  margin: 164px 10px 80px;
}

.intro-list li{
  flex-basis: calc((100% - 44px) / 2);
}

/* SERVICIOS */

.servicios {
    --profundidad-punta: 45px;
    padding: 80px 20px calc(60px + var(--profundidad-punta));
  }

  /* DIFERENCIAL */

  .diferencial-lis li{
    flex-basis: calc((100% - 34px) / 2);
  }

  .diferencial-div {
    padding: 64px 44px;
}
  .diferencial-img{
    object-position: center -520px;
}

  /* PROCESO */

  .proceso-lista {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: 48px;
  }

  .proceso-paso {
    flex: 0 0 calc((100% - 32px) / 2);
  }

  /* CARRUSEL TESTIMONIOS */

  .testimonios-slide {
    flex-basis: calc((100% - var(--carousel-gap)) / 2);
  }

  /* PREGUNTAS FRECUENTES */

  .tit-faqs{
  margin: 0 8% 64px 8%;
}

  .faq-section {
    padding: 0 32px;
  }

  .faq-question {
    min-height: 78px;
    padding: 22px 0;
  }

  .faq-question h3 {
    font-size: 16px;
  }

  .faq-answer p {
    max-width: 850px;
    padding-bottom: 28px;
  }

}

@media (min-width: 1024px) {

  /* DIFERENCIAL */

  .diferencial-div{
    flex-wrap: nowrap;
    align-items: center;
  }

  .diferencial-img{
    width: 40%;
    object-fit: fill;
    height: 100%;
    object-position: center;
  }

  .diferencial-lis{
    gap: 34px;
  }

  /* PROCESO */

  .proceso {
    padding: 64px 32px;
  }

  .proceso-lista {
    position: relative;
    flex-wrap: nowrap;
    gap: 32px;
  }

  /* Línea horizontal detrás de los círculos */
  .proceso-lista::before {
    content: "";
    position: absolute;
    top: 32px;
    left: calc((100% - 96px) / 8);
    right: calc((100% - 96px) / 8);
    height: 1px;
    background: var(--dorado);
  }

  .proceso-paso {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
  }

  .proceso-numero {
    position: relative;
    z-index: 1;
  }

  /* PREGUNTAS FRECUENTES */

.faq-section {
    padding: 0 40px 84px 0;
  }

  .faq-question {
    padding-left: 96px;
    padding-right: 140px;
  }

  .faq-answer p {
    padding-left: 96px;
    padding-right: 180px;
  }

}


@media (min-width: 1200px) {

  /* HERO */

  .header {
    --imagen-x: right;
    --blanco-hasta: 35%;
    --transparente-desde: 75%;
    background-image: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, .98) 15%, rgba(255, 255, 255, .90) 40%, rgba(255, 255, 255, .10) 100%), url(/images/abogado-migratorio.webp);
  }

  .header .hero {
    min-height: 520px;
    
  }

  /* INTRO */

  .intro-list li{
  flex-basis: calc((100% - 88px) / 3);
  }

  /* SERVICIOS */

  .servicios-tit{
  margin: 0 4% 64px 16%;
}

  /*CARRUSEL */

  .testimonios-carrusel {
    --carousel-gap: 24px;
  }

  .testimonios-slide {
    flex-basis: calc((100% - 2 * var(--carousel-gap)) / 3);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .testimonios-control,
  .testimonios-punto {
    transition: none;
  }
}