/* 3T Legal Service — réplica del sitio de Builderall en HTML/CSS estático */
:root {
  --rojo: #e93e33;
  --rojo-oscuro: #cc0c17;
  --rojo-claro: #dc4f50;
  --azul-noche: #272e40;
  --gris-fondo: #f0f0f0;
  --gris-faq-1: #4e5361;
  --gris-faq-2: #5e6470;
  --lavanda: #eeebf5;
  --texto: #212529;
  --blanco: #fff;
  --ancho: 1140px;
  --fuente-titulo: "Montserrat", sans-serif;
  --fuente-texto: "Montserrat", sans-serif;
  --fuente-menu: "Mulish", "Muli", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fuente-texto);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; }
ul { margin: 0; }

.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }

/* Títulos itálicos característicos del sitio */
.titulo {
  font-family: var(--fuente-titulo);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.titulo--xl { font-size: clamp(34px, 5vw, 56px); }
.titulo--lg { font-size: clamp(28px, 3.4vw, 40px); }
.titulo--md { font-size: clamp(24px, 2.6vw, 34px); }
.titulo--sm { font-size: clamp(16px, 1.4vw, 18px); }
.titulo--blanco { color: var(--blanco); }
.titulo--sombra { text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.centro { text-align: center; }

/* Botón rojo "VER MÁS →" */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 54px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--rojo-oscuro), var(--rojo-claro));
  color: var(--blanco);
  font-family: var(--fuente-texto);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  border: 0;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(0, 0, 0, .35); }
.boton svg { width: 16px; height: 16px; }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.encabezado__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}
.encabezado__marca { display: flex; align-items: center; gap: 28px; text-decoration: none; }
.encabezado__logo { width: 128px; }
.encabezado__texto { width: 232px; }
.menu { display: flex; gap: 6px; list-style: none; padding: 0; }
.menu a {
  display: block;
  padding: 12px 38px;
  font-family: var(--fuente-menu);
  font-weight: 600;
  font-size: 18px;
  color: #111;
  text-decoration: none;
  border-radius: 2px;
}
.menu a:hover, .menu a[aria-current="page"] { background: #f2f2f2; }
.menu-boton {
  display: none;
  width: 56px;
  height: 56px;
  background: #000;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.menu-boton svg { width: 22px; height: 22px; }

/* ---------- Héroes de página ---------- */
.heroe-inicio {
  position: relative;
  height: max(220px, 31.95vw);
  background: #000 url("../img/hero-inicio.webp") center / cover no-repeat;
}
.heroe-inicio .boton {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}
.heroe-inicio .boton:hover { transform: translate(-50%, calc(50% - 2px)); }

.heroe {
  display: grid;
  place-items: center;
  min-height: 322px;
  padding: 60px 16px;
  text-align: center;
  color: var(--blanco);
  background-size: cover;
  background-position: center;
}
.heroe p { margin: 14px 0 0; font-size: clamp(18px, 2vw, 28px); font-weight: 300; }
.heroe--servicios { background-image: linear-gradient(rgba(30, 36, 56, .35), rgba(30, 36, 56, .35)), url("../img/hero-servicios.webp"); }
.heroe--nosotros { background-image: url("../img/hero-nosotros.webp"); }
.heroe--contacto { background-image: linear-gradient(rgba(30, 36, 56, .25), rgba(30, 36, 56, .25)), url("../img/hero-contacto.webp"); }

/* ---------- Carrusel de eventos ---------- */
.eventos { padding: 70px 0 40px; }
.eventos .titulo { margin: 0 auto 70px; max-width: 640px; }
.carrusel { position: relative; max-width: 994px; margin-inline: auto; overflow: hidden; }
.carrusel__pista { display: flex; transition: transform .6s ease; }
.carrusel__pista > * { flex: 0 0 100%; }
.carrusel__pista img { width: 100%; }
.carrusel__flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(60, 60, 60, .55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carrusel__flecha:hover { background: rgba(0, 0, 0, .8); }
.carrusel__flecha--prev { left: 6px; }
.carrusel__flecha--next { right: 6px; }
.carrusel__puntos { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.carrusel__puntos button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: #c9c9c9; cursor: pointer;
}
.carrusel__puntos button[aria-current="true"] { background: var(--rojo); }

/* ---------- Intro con video ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0 60px;
}
.intro__video { position: relative; justify-self: center; width: min(100%, 300px); background: #000; }
.intro__video span {
  position: absolute; top: 4px; left: 6px; z-index: 1;
  color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
  text-shadow: 0 1px 3px #000; pointer-events: none;
}
.intro__video video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.intro__texto { text-align: center; }
.intro__texto p { font-size: 22px; font-weight: 400; margin: 18px auto 0; max-width: 380px; }

/* ---------- Membresía ---------- */
.membresia {
  display: grid;
  grid-template-columns: 300px 260px 1fr;
  align-items: start;
  gap: 20px;
  padding: 30px 0 50px;
}
.membresia .titulo { padding-top: 10px; text-align: center; }
.membresia__img1 { margin-top: 100px; border-radius: 12px; width: 258px; }
.membresia__img2 { justify-self: center; border-radius: 12px; width: 251px; aspect-ratio: 251 / 377; object-fit: cover; }

/* ---------- Servicios legales (banda roja) ---------- */
.servicios-legales {
  background: var(--rojo) url("../img/fondo-servicios-legales.webp") right center / auto 100% no-repeat;
  color: var(--blanco);
  padding: 30px 0 60px;
  min-height: 418px;
}
.servicios-legales__columna { max-width: 450px; }
.servicios-legales .titulo { text-align: center; margin-bottom: 26px; }
.servicios-legales ul { font-size: 17px; line-height: 1.6; padding-left: 20px; }

/* ---------- Más servicios ---------- */
.mas-servicios { background: var(--gris-fondo); padding: 50px 0 0; }
.mas-servicios__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
}
.mas-servicios__izq { text-align: center; }
.mas-servicios__izq .boton { margin: 22px 0 36px; }
.mas-servicios__izq img { margin-inline: auto; border-radius: 6px; width: 238px; }
.mas-servicios__filas { display: grid; gap: 40px; }
.fila-servicio { display: grid; grid-template-columns: 215px 1fr; gap: 90px; align-items: center; }
.fila-servicio img {
  width: 211px;
  aspect-ratio: 211 / 141;
  object-fit: cover;
  border-radius: 6px 6px 6px 40px;
  box-shadow: 0 16px 30px rgba(39, 46, 64, .2);
}
.fila-servicio img.esquina-sup { border-radius: 6px 40px 6px 6px; }
.fila-servicio img.logo { object-fit: contain; background: #fff; aspect-ratio: 211 / 186; padding: 4px; }
.fila-servicio .titulo { text-align: center; margin-bottom: 10px; }
.fila-servicio p { margin: 0; font-size: 17px; }
.mas-servicios { padding-bottom: 60px; }

/* ---------- Preguntas frecuentes ---------- */
.faq {
  background: linear-gradient(180deg, var(--gris-faq-1), var(--gris-faq-2));
  padding: 60px 0 86px;
}
.faq .titulo { margin-bottom: 40px; }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; max-width: 958px; margin-inline: auto; align-items: start; }
.faq__caja { background: #000; border-radius: 6px; padding: 14px; display: grid; gap: 0; }
.faq details { border-radius: 6px; overflow: hidden; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 20px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " »"; display: inline-block; transform: rotate(90deg); margin-left: 6px; font-size: 16px; }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq .tono-a summary { background: linear-gradient(90deg, #8a5c5c, #000 95%); }
.faq .tono-b summary { background: linear-gradient(90deg, #000 10%, var(--rojo)); }
.faq details p { margin: 0; padding: 14px 20px 18px; color: #fff; font-size: 15px; text-align: center; background: #000; }

/* ---------- Orientaciones ---------- */
.orientaciones { padding: 60px 0 85px; }
.orientaciones__grupo { position: relative; width: min(576px, 100%); margin-inline: auto; padding-bottom: 20px; }
.orientaciones__grupo img { width: 368px; border-radius: 0 0 0 40px; }
.orientaciones__tarjeta {
  position: absolute;
  right: 0;
  top: 112px;
  width: 305px;
  min-height: 185px;
  display: grid;
  place-items: center;
  padding: 24px 40px;
  background: var(--lavanda);
  border-radius: 40px 6px 6px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Pie de página ---------- */
.pie {
  background: linear-gradient(90deg, #262d40 0%, #626774 30%, #9fa2aa 55%, #eaebec 90%, #fff 100%);
  padding: 30px 0 34px;
}
.pie__grid { display: grid; grid-template-columns: 1.15fr .85fr 1.15fr 1fr; gap: 24px; align-items: start; }
.pie__logo { width: 190px; margin: 40px auto 0; }
.pie h3 { font-size: 21px; font-weight: 600; margin: 10px 0 18px; color: #222; }
.pie h3.claro { color: #3b3950; opacity: .8; }
.pie ul { list-style: none; padding: 0; }
.pie li { margin-bottom: 6px; }
.pie a { text-decoration: none; font-weight: 500; font-size: 17px; color: #111; }
.pie a:hover { text-decoration: underline; }
.pie__dato { margin-bottom: 8px; color: #333; font-size: 16px; }
.pie__dato strong { display: block; font-size: 17px; font-weight: 600; color: #222; }
.pie__redes { display: flex; gap: 0; margin-top: 18px; }
.pie__redes img { width: 58px; height: 58px; }
.pie__copy { background: #0a0b0b; color: #fff; text-align: center; padding: 16px; font-weight: 600; font-size: 15px; }

/* ---------- Página Servicios ---------- */
.video-yt { width: min(481px, 100% - 32px); margin: 24px auto 30px; aspect-ratio: 481 / 271; }
.video-yt iframe { width: 100%; height: 100%; border: 0; }
.banda-penal {
  display: grid;
  grid-template-columns: 274px 446px 1fr;
  min-height: 600px;
}
.banda-penal__rojo { background: var(--rojo); }
.banda-penal__img { background: url("../img/fondo-representacion-legal.webp") 22% center / auto 100% no-repeat; }
.banda-penal__texto {
  background: linear-gradient(90deg, #262d40 0%, #5b6878 65%, #262d40 100%);
  color: #fff;
  padding: 10px 40px 30px;
  max-width: 571px;
}
.banda-penal__texto .titulo { text-align: center; margin-bottom: 18px; }
.lista-servicio { font-weight: 500; font-size: 16.5px; line-height: 1.4; }
.lista-servicio p { margin: 0 0 4px; }
.lista-servicio ul { padding-left: 40px; }
.lista-servicio li { margin-bottom: 2px; }
.bloque-servicio { display: grid; grid-template-columns: 418px 1fr; gap: 42px; align-items: start; width: min(1000px, 100% - 32px); margin: 0 0 0 auto; margin-right: max(16px, calc((100% - 1140px) / 2)); }
.civiles__caja {
  position: relative;
  background: linear-gradient(90deg, #262d40, var(--rojo));
  border: 1px solid #6a3fc0;
  padding: 18px 26px 30px;
  min-height: 304px;
}
.civiles__caja img { width: 219px; margin: -20px 0 0 auto; }
.bloque-servicio .lista-servicio { padding-top: 34px; }
.notariales { margin-top: 18px; }
.notariales__img { width: 264px; margin-left: 32px; }
.notariales .titulo { margin: 20px 0 30px; color: #111; }
.banda-membresia {
  display: grid;
  grid-template-columns: 1fr 532px 1fr;
  margin-top: 24px;
  min-height: 300px;
}
.banda-membresia__fotos { display: grid; align-content: start; justify-items: end; gap: 28px; }
.banda-membresia__fotos img { width: 207px; aspect-ratio: 207 / 138; object-fit: cover; }
.banda-membresia__texto { background: linear-gradient(90deg, #262d40, #5b6878); color: #fff; padding: 18px 44px; }
.banda-membresia__texto .titulo { text-align: center; margin-bottom: 26px; }
.banda-membresia__fin { background: #262d40; }
.banda-cursos { display: grid; grid-template-columns: 1fr 510px 1fr; gap: 30px; align-items: start; }
.banda-cursos__texto { background: #262d40; border: 1px solid #6a3fc0; min-height: 294px; padding: 24px 40px; }
.banda-cursos img { width: 385px; margin-top: 20px; }

/* ---------- Página Nosotros ---------- */
.nosotros { background: var(--gris-fondo); padding: 46px 0 40px; }
.bloque-nos { display: grid; grid-template-columns: 450px 1fr; gap: 0 40px; margin-bottom: 40px; }
.bloque-nos .titulo { grid-column: 1 / -1; margin-bottom: 20px; color: #111; }
.bloque-nos img { width: 355px; margin-left: 6px; }
.bloque-nos p { margin: 10px 0 0; font-weight: 600; font-size: 16px; line-height: 1.6; max-width: 556px; }
.galeria-historia { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 30px; margin: -10px 0 40px 130px; }
.galeria-historia img:nth-child(1) { width: 251px; margin-top: 40px; }
.galeria-historia img:nth-child(2) { width: 232px; box-shadow: 0 18px 30px rgba(39, 46, 64, .25); }
.galeria-historia img:nth-child(3) { width: 312px; margin-top: 32px; }
.valores { background: #262d40; padding: 30px 0 34px; }
.valores .titulo { margin-bottom: 40px; }
.valores__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; max-width: 1010px; margin-inline: auto; }
.valor {
  border: 2px solid #b39a9a;
  border-radius: 18px;
  padding: 18px 16px 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 -8px 22px rgba(255, 255, 255, .55);
  min-height: 230px;
}
.valor h3 { font-size: 15px; font-weight: 600; text-transform: uppercase; line-height: 1.6; }
.valor img { width: 101px; margin: 12px auto 18px; }
.valor p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Página Contacto ---------- */
.tarjetas-contacto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; padding: 92px 0 42px; }
.tarjeta-contacto {
  border: 2px solid #b39a9a;
  border-radius: 18px;
  padding: 20px 12px 18px;
  text-align: center;
  min-height: 238px;
}
.tarjeta-contacto img { width: 101px; margin: 0 auto 12px; }
.tarjeta-contacto h3 { font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.tarjeta-contacto p { margin: 0; font-size: 14.5px; }
.tarjeta-contacto a { text-decoration: none; }
.mensaje {
  position: relative;
  padding: 26px 0 140px;
  background: #262d40 url("../img/fondo-contacto-arco.webp") center top / cover no-repeat;
}
.mensaje .titulo { color: #262626; margin-bottom: 20px; }
.mensaje__caja {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  max-width: 968px;
  margin-inline: auto;
  padding: 40px 44px 6px 0;
  background: #c6bcbc;
  border-radius: 6px;
}
.mensaje__caja > img { width: 509px; max-width: none; margin-left: -75px; box-shadow: 0 0 40px rgba(255, 255, 255, .6); }
.formulario { display: grid; gap: 16px; text-align: center; }
.formulario > p { margin: 0 0 4px; font-weight: 600; font-size: 19px; line-height: 1.4; color: #262626; }
.formulario input, .formulario textarea {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #6b7480;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}
.formulario textarea { min-height: 40px; resize: vertical; }
.formulario .formulario__aviso { font-size: 14px; color: #333; margin: 0; }
.formulario .boton { justify-self: center; width: 364px; max-width: 100%; justify-content: center; background: var(--rojo); border-radius: 30px; box-shadow: none; }
.formulario .formulario__estado { min-height: 1.2em; font-weight: 600; margin: 0; }
.campo-oculto { position: absolute; left: -9999px; }
.mapa { scroll-margin-top: 112px; background: var(--gris-fondo); padding: 60px 0; }
.mapa iframe { display: block; width: min(610px, 100%); height: 468px; margin-inline: auto; border: 1px dashed #333; padding: 8px; background: #fff; }

/* ---------- Páginas legales ---------- */
.legal { padding: 50px 0 70px; color: #3b3950; }
.legal .contenedor { max-width: 960px; }
.legal h1 { font-size: 30px; font-weight: 700; margin-bottom: 26px; color: #3b3950; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; }
.legal .volver { display: inline-block; margin-bottom: 26px; font-weight: 600; color: var(--rojo); text-decoration: none; }

/* ---------- Aviso de cookies ---------- */
.cookies {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 100;
  width: min(600px, 100% - 32px);
  padding: 18px 20px 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
  font-size: 13px;
  color: #222;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 18px; }
.cookies p:first-child { font-size: 13px; margin-bottom: 10px; }
.cookies a { color: #0a6d7c; text-decoration: none; }
.cookies__acciones { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookies button { border: 0; padding: 11px 8px; font: inherit; cursor: pointer; background: #afc3a5; color: #222; }
.cookies button.aceptar { margin-left: auto; background: #76a547; color: #fff; padding: 18px 8px; font-size: 14px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .menu a { padding: 12px 18px; }
  .banda-penal { grid-template-columns: 120px 300px 1fr; }
  .bloque-servicio { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .encabezado__barra { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .encabezado__marca { gap: 14px; }
  .encabezado__logo { width: 84px; }
  .encabezado__texto { width: 180px; }
  .menu-boton { display: grid; place-items: center; }
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 10px 0;
  }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 8px; border-top: 1px solid #eee; }

  .intro, .membresia, .mas-servicios__grid, .faq__grid, .pie__grid,
  .bloque-servicio, .banda-membresia, .banda-cursos, .bloque-nos,
  .valores__grid, .mensaje__caja { grid-template-columns: 1fr; }

  .membresia { justify-items: center; }
  .membresia__img1 { margin-top: 0; }
  .servicios-legales { background-size: cover; background-position: 70% center; }
  .servicios-legales__columna { background: rgba(233, 62, 51, .88); padding: 16px; border-radius: 8px; }
  .fila-servicio { grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; }
  .orientaciones__tarjeta { position: static; width: 100%; margin-top: -30px; }
  .orientaciones__grupo img { width: 100%; }
  .pie { background: linear-gradient(180deg, #262d40, #9fa2aa); }
  .pie__grid { text-align: center; }
  .pie__redes { justify-content: center; }
  .pie h3, .pie h3.claro, .pie a, .pie__dato, .pie__dato strong { color: #fff; }

  .banda-penal { grid-template-columns: 1fr; min-height: 0; }
  .banda-penal__rojo { display: none; }
  .banda-penal__img { min-height: 260px; background-size: cover; }
  .banda-penal__texto { max-width: none; }
  .bloque-servicio { margin: 0 auto; }
  .civiles__caja img { margin: 16px auto 0; }
  .notariales__img { margin: 0 auto; }
  .banda-membresia__fotos { grid-template-columns: 1fr 1fr; justify-items: center; padding: 16px; }
  .banda-membresia__fin { display: none; }
  .banda-cursos img { margin: 0 auto 20px; width: 100%; }
  .bloque-nos img { width: 100%; margin: 0; }
  .galeria-historia { grid-template-columns: 1fr; margin: 0 0 30px; justify-items: center; }
  .galeria-historia img { margin: 0 !important; }
  .tarjetas-contacto { grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 40px; }
  .mensaje__caja { padding: 24px 16px; }
  .mensaje__caja > img { width: 100%; max-width: 100%; margin: 0; }
}

@media (max-width: 520px) {
  .tarjetas-contacto { grid-template-columns: 1fr; }
  .boton { padding: 12px 40px; }
  .cookies { right: 16px; bottom: 16px; }
  .cookies button.aceptar { margin-left: 0; }
}
