/* ================================================
   Silvestri Abogados — estilos
   Medidas calcadas del sitio de Wix (diseñado a 1585px de ancho).
   Como en Wix, varias alturas escalan con el ancho de la pantalla.
   Para cambiar colores o tipografías, tocá estas variables.
   ================================================ */
:root {
  --oscuro: #1c1c17;
  --crema: #fdfdf1;
  --navy: #1d233b;
  --navy-2: #0f1c30;
  --gris: #4d4a4a;
  --texto: #4d4a4a;
  --titulo: #1c1c17;

  --f-titulo: "Playfair Display", Georgia, serif;
  --f-texto: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --header-h: 71.4px;
  --reveal-dur: 1.2s;
  --ease-wix: cubic-bezier(.645, .045, .355, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; scroll-padding-top: var(--header-h); overflow-x: clip; scrollbar-gutter: stable; }
body {
  container-type: inline-size;   /* "cqw" = 1% del ancho real de la página */
  background: var(--crema);
  color: var(--texto);
  font-family: var(--f-texto);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 400; color: var(--titulo); line-height: normal; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--crema); color: var(--oscuro); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--f-texto); white-space: nowrap; cursor: pointer; }

.btn--outline {
  border: 2px solid var(--crema); background: var(--oscuro); color: var(--crema);
  font-size: 12.53px; font-weight: 400; line-height: 1.4; letter-spacing: normal;
  padding: 9.9px 18.6px;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.btn--outline:hover { background: var(--gris); color: var(--crema); }

.btn--navy {
  width: 170px; height: 39px; padding: 0;
  background: var(--navy-2); color: var(--crema); border: 1px solid var(--navy-2);
  font-size: 12px; font-weight: 400;
  transition: all .4s;
}
.btn--negro { border-color: var(--navy); }
.btn--navy:hover { background: var(--crema); color: var(--navy-2); }

/* ---------- Encabezado fijo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h); background: var(--oscuro);
  display: flex; align-items: center; justify-content: center;
}
.topbar__logo img { height: 61px; width: auto; margin-top: -7px; }
.topbar__cta { position: absolute; right: 3.38cqw; top: 12.4px; }

/* ---------- 1. Portada ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  height: calc(.461 * 100cqw);
  background: var(--oscuro);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 91% 24%; }
.hero__title {
  position: absolute; left: 60px; top: calc(.2558 * 100cqw);
  width: calc(.5078 * 100cqw);
  font-size: calc(.0552 * 100cqw); line-height: 1.1;
  color: var(--crema);
}
.fade { animation: fadeIn 1.2s cubic-bezier(.445, .05, .55, .95) .2s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 2. Orientación y canales ---------- */
.intro {
  position: relative; background: var(--crema);
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  min-height: 1673px;
}
.intro__channels {
  position: sticky; top: 40px;
  height: auto; min-height: 823px;
  padding: 79px 50px 0 68px;
}
.intro__title { font-style: italic; font-weight: 700; font-size: clamp(28px, 2.19cqw, 38px); }
.intro__lead { margin: 12px 0 64px; font-size: 20px; font-weight: 400; line-height: normal; }
.channel { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 30px; align-items: start; margin-bottom: 86px; }
.channel h3 { font-size: 30px; line-height: normal; margin-bottom: 13px; }
.channel p { font-size: 17.5px; line-height: 24.5px; max-width: 434px; }
.channel:first-of-type p { max-width: 404px; }
.channel__note { margin-bottom: 24px; }
.channel .btn { margin-top: 40px; }

.intro__steps { padding: 486px 47px 275px 61px; }
.intro__text p { font-size: 18px; line-height: 27px; }
.intro__text p + p { margin-top: 29px; }
.numlist { list-style: none; margin-top: 184px; }
.numlist li { position: relative; height: 188px; padding-top: 34px; }
.numlist h3, .numlist p { padding-left: 7px; }
.numlist h3 { font-size: 27.5px; margin-bottom: 10px; }
.numlist p { font-size: 20px; line-height: 28px; max-width: 543px; }

.line { display: block; height: 1px; background: var(--oscuro); width: 100%; }
.numlist .line { position: absolute; top: 0; left: 0; }

/* ---------- Aparición con barrido de abajo hacia arriba (Wix "slideIn" + "fadeIn") ---------- */
.js .reveal { opacity: 0; }
.reveal.is-in { opacity: 1; animation: reveal var(--reveal-dur) var(--ease-wix) .001s backwards; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(100%); clip-path: polygon(0 -100%, 100% -100%, 100% 0, 0 0); }
  to   { opacity: 1; transform: none;             clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- 3. Método (bloque original) ---------- */
.metodo { position: relative; background: var(--navy); }
.metodo iframe { display: block; width: 100%; height: auto; aspect-ratio: 1 / .46019; border: 0; }

/* ---------- 4. Cómo ejercemos la defensa ---------- */
.defensa {
  position: relative; background: var(--crema);
  display: grid; grid-template-columns: minmax(0, 775fr) minmax(0, 810fr); align-items: stretch;
}
.defensa__col { position: relative; }
.defensa__media {
  position: sticky; top: calc(var(--header-h) + 50px);
  width: 46.4cqw; aspect-ratio: 735 / 551;
  margin: 44px 0 91px 19px;
  overflow: hidden; background: var(--oscuro); cursor: pointer;
}
.defensa__media video { width: 100%; height: 100%; object-fit: cover; }
.defensa__media h2 {
  position: absolute; top: 44.6%; left: 0; right: 0; text-align: center;
  font-size: clamp(30px, 2.77cqw, 46px); line-height: normal; color: var(--crema);
}
.defensa__media p {
  position: absolute; top: 82%; left: 51px; right: 51px; text-align: center;
  font-size: 14px; line-height: 1.6; color: var(--crema);
  top: auto; bottom: 4%;
}
.defensa__list { padding: calc(.3861 * 100cqw) calc(.0953 * 100cqw) calc(.2536 * 100cqw) calc(.036 * 100cqw); }
.defensa__list > h2 { font-size: clamp(32px, 2.77cqw, 44px); line-height: normal; margin-bottom: 44px; }
.pasos { list-style: none; }
.pasos li { padding-top: 34px; }
.pasos h3 { font-family: var(--f-texto); font-size: 22px; line-height: 1.3; margin-bottom: 30px; margin-left: -3px; color: var(--navy-2); }
.pasos p { font-size: 16px; line-height: 1.4; max-width: 627px; margin-bottom: 31px; }
.pasos .line { background: var(--navy); width: 623px; max-width: 100%; }

/* ---------- 5. Galería ---------- */
.galeria-wrap { background: var(--oscuro); }
.galeria { display: flex; gap: 12px; padding: 12px; aspect-ratio: 1 / .5056454; }
.galeria img {
  flex: 1; min-width: 0; width: 33.33%; height: 100%; object-fit: cover;
  transition: filter .4s ease, transform .4s ease;
}
.galeria:hover img { filter: grayscale(100%) brightness(.8); }
.galeria img:hover { filter: grayscale(0%) brightness(1); transform: scale(1.02); }

/* ---------- 6. Agenda ---------- */
.agenda { background: var(--crema); padding: 8px 8px 0; aspect-ratio: 1 / .6026325; }
#tymeslot-booking { max-width: 1000px; margin: 0 auto; min-height: 700px; }

/* ---------- 7. Pie ---------- */
.footer { background: var(--oscuro); color: var(--crema); font-size: 14px; }
.footer__grid { position: relative; height: max(calc(.3097596 * 100cqw), 470px); }
.footer__map {
  position: absolute; left: 7.263%; top: 50%; transform: translateY(-50%);
  width: 29.643%; aspect-ratio: 1 / .75797; background: var(--oscuro);
}
.footer__info { position: absolute; left: 58.36%; top: 56px; line-height: 1.6; }
.footer__info .t { font-weight: 700; }
.footer__info .gap { margin-top: 22.6px; }
.footer__info .gap2 { margin-top: 44.6px; }
.footer__info a { text-decoration: none; }
.social { display: flex; gap: 0; margin: 47px 0 0 -10px; }
.social a { width: 57px; height: 52px; display: flex; align-items: center; justify-content: center; }
.social svg { width: 33px; height: 33px; fill: none; stroke: var(--crema); stroke-width: 1.8; }
.social svg .fill { fill: var(--crema); stroke: none; }
.footer__bottom { position: relative; height: 96px; }
.footer__bottom small { position: absolute; left: 48px; top: 53px; font-size: 12px; line-height: 1.6; color: var(--crema); }
.footer__wordmark {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 149px; height: 69px; object-fit: contain; object-position: 50% 100%;
}

/* Mapa */
.footer__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer__map iframe.mapa-oscuro { filter: invert(.92) hue-rotate(180deg) grayscale(.6) contrast(.95); }
.footer__map .gm-style-iw-d, .footer__map .gm-style-iw-c { color: var(--oscuro); font-family: var(--f-texto); font-size: 13px; }

@media (min-width: 1001px) and (max-width: 1150px) {
  .channel { grid-template-columns: 1fr; gap: 0; }
  .channel .btn { margin-top: 20px; }
}

/* ---------- Tablet (751–1000px): como Wix, mantiene las 2 columnas y escala con el ancho ---------- */
.intro__q { display: none; }
@media (max-width: 1000px) {
  :root { --header-h: 5.37vw; }
  main { display: flex; flex-direction: column; }
  .hero { order: 0; } .intro { order: 1; } .galeria-wrap { order: 2; } .metodo { order: 3; } .defensa { order: 4; } .agenda { order: 5; }

  .topbar__logo img { height: 5.2cqw; margin-top: 0; }
  .topbar__cta { right: 5.7cqw; top: 50%; transform: translateY(-50%); width: max(80px, 6.95cqw); height: max(28px, 2.93cqw); padding: 0; font-size: max(10px, .776cqw); border-width: 1px; }

  .hero { height: 80cqw; }
  .hero__title { left: 3.8cqw; top: 42.2cqw; width: 72.2cqw; font-size: 7.83cqw; line-height: 1.1; }

  .intro { grid-template-columns: 1fr 1fr; min-height: 121cqw; }
  .intro__channels { position: sticky; top: 0; height: 71.1cqw; padding: 8.5cqw 3.7cqw 0 2.8cqw; text-align: center; }
  .intro__title { font-size: 3.26cqw; }
  .intro__lead { font-size: 1.565cqw; margin: 1.7cqw 0 5.7cqw; }
  .channel { display: block; margin-bottom: 5.1cqw; }
  .channel h3 { font-size: 2.6cqw; margin-bottom: 1.1cqw; }
  .channel p, .channel:first-of-type p { font-size: 1.82cqw; line-height: 1.4; max-width: none; }
  .channel__note { margin-bottom: 2.6cqw; }
  .channel .btn { width: 138px; height: 31px; font-size: 10px; margin-top: 2.3cqw; }
  .channel:last-of-type .btn { margin-top: 1.5cqw; }
  .intro__steps { padding: 38.7cqw 3.3cqw 0; }
  .intro__text p { font-size: 1.82cqw; line-height: 1.5; }
  .intro__text p + p { margin-top: 1.5em; }
  .intro__q { display: block; font-size: 18px; color: var(--navy); margin-top: .4cqw; }
  .numlist { margin-top: 10.5cqw; }
  .numlist li { height: 12.8cqw; padding: 0; }
  .numlist .line { position: static; width: 47cqw; margin-bottom: 1.2cqw; }
  .numlist h3, .numlist p { padding-left: 0; }
  .numlist h3 { font-family: var(--f-texto); font-size: 2.34cqw; margin-bottom: .85cqw; }
  .numlist p { font-size: 1.82cqw; line-height: 1.4; max-width: 45.5cqw; }

  .galeria { aspect-ratio: 1 / .632; }

  .metodo iframe { height: auto; min-height: 0; aspect-ratio: 1 / .705; }

  .defensa { grid-template-columns: 48.9cqw 51.1cqw; }
  .defensa__media { position: sticky; top: calc(var(--header-h) + 0px); width: 45cqw; aspect-ratio: 369 / 309; margin: 5.24cqw 0 .85cqw 1.95cqw; }
  .defensa__media h2 { font-size: 2.72cqw; top: 42%; }
  .defensa__media p { font-size: 10px; line-height: 16px; top: auto; bottom: 4%; left: 1.65cqw; right: 1.65cqw; }
  .defensa__list { padding: 38.7cqw 3.7cqw 2.5cqw 3.5cqw; }
  .defensa__list > h2 { font-size: 2.72cqw; margin-bottom: 5.4cqw; }
  .pasos li { padding-top: 0; }
  .pasos li + li { padding-top: 2.2cqw; }
  .pasos h3 { font-size: 2.086cqw; margin: 0 0 2.07cqw; }
  .pasos p { font-size: 12px; line-height: 1.4; max-width: 43.9cqw; margin-bottom: 1.95cqw; }
  .pasos .line { width: 43.9cqw; }

  .agenda { padding: 0; aspect-ratio: 1 / 1.25; min-height: 0; }
  #tymeslot-booking { max-width: none; }

  .footer__grid { aspect-ratio: auto; display: block; padding: 5.4cqw 0 0; height: 40.5cqw; }
  .footer__map { display: none; }
  .footer__info { position: static; transform: none; text-align: center; font-size: 10px; line-height: 16px; }
  .footer__info .gap, .footer__info .gap2 { margin-top: 16px; }
  .social { justify-content: center; margin: 20px 0 0; }
  .social a { width: 4.1cqw; height: 3.7cqw; }
  .social svg { width: 2.4cqw; height: 2.4cqw; }
  .footer__bottom { height: 6.46cqw; }
  .footer__bottom small { left: 3.05cqw; top: auto; bottom: 8px; font-size: 10px; }
  .footer__wordmark { width: 12.7cqw; height: auto; bottom: 13px; }
}
@media (max-width: 1000px) and (min-width: 751px) and (max-height: 600px) {
  .intro__channels { position: static; height: auto; }
}

/* ---------- Celular (hasta 750px): como Wix en teléfono ---------- */
@media (max-width: 750px) {
  :root { --header-h: 0px; }
  html { scroll-padding-top: 0; }
  main { display: flex; flex-direction: column; }
  .hero { order: 0; } .intro { order: 1; } .metodo { order: 2; } .defensa { order: 3; } .galeria-wrap { order: 4; } .agenda { order: 5; }

  /* Sin barra ni logo: solo el botón CONTACTO flotando */
  .topbar { height: 0; background: transparent; pointer-events: none; }
  .topbar__logo { display: none; }
  .topbar__cta { pointer-events: auto; position: fixed; top: 2.31cqw; right: 5.9cqw; width: max(84px, 21.36cqw); height: max(30px, 6.67cqw); padding: 0; font-size: max(10px, 1.976cqw); border-width: 1px; transform: none; background: var(--oscuro); z-index: 56; }

  .hero { margin-top: 0; height: 162.56cqw; }
  .hero__img { object-position: 91% 24%; }
  .hero__title { left: 3.6cqw; right: auto; top: 90.8cqw; bottom: auto; width: 92.6cqw; font-size: 12.82cqw; line-height: 1.1; }

  /* Solo los canales; el texto de la derecha y la lista 01/02/03 no se muestran */
  .intro { display: block; min-height: 0; }
  .intro__steps { display: none; }
  .intro__channels { position: static; height: auto; padding: 16.9cqw 3.85cqw 0; text-align: center; }
  .intro__title { font-size: 6.667cqw; line-height: normal; }
  .intro__lead { font-size: 3.59cqw; line-height: normal; max-width: 62.8cqw; margin: 3.85cqw auto 6.67cqw; }
  .channel { display: block; margin: 0; padding: 8.6cqw 1.8cqw 12cqw; border-top: 1px solid var(--navy); }
  .channel:last-of-type { padding-bottom: 9.5cqw; border-bottom: 1px solid var(--navy); margin-bottom: 8.2cqw; }
  .channel h3 { font-size: 6.15cqw; line-height: normal; margin-bottom: 5.6cqw; }
  .channel:last-of-type h3 { margin-bottom: 7.7cqw; }
  .channel p, .channel:first-of-type p { font-size: 3.59cqw; line-height: 1.4; max-width: 88cqw; margin-left: auto; margin-right: auto; }
  .channel__note { margin-bottom: 4.9cqw; }
  .channel .btn { width: 165px; height: 36px; font-size: 12px; margin-top: 3.85cqw; background: var(--navy-2); border: 1px solid var(--navy-2); }
  .channel:last-of-type .btn { height: 35px; margin-top: 2.05cqw; border-color: var(--navy); }
  /* Entrada deslizándose desde la izquierda (solo en celular, como Wix) */
  .js .glide-m { opacity: 0; }
  .glide-m.is-in { opacity: 1; animation: glideM 1.2s var(--ease-wix) .001s backwards; }

  .metodo iframe { aspect-ratio: auto; min-height: 0; height: calc(240cqw - 45px); }
  @media (min-width: 601px) { .metodo iframe { height: auto; aspect-ratio: 1 / .705; } }

  .defensa { display: block; }
  .defensa__media { position: relative; top: auto; width: 83.6cqw; aspect-ratio: 326 / 321; margin: 15.9cqw auto 12.3cqw; }
  .defensa__media h2 { font-size: 5.18cqw; top: 40.8%; }
  .defensa__media p { font-size: 10px; line-height: 16px; top: auto; bottom: 6%; left: 9.2%; right: 9.2%; color: var(--crema); }
  .defensa__list { padding: 4.9cqw 8.46cqw 8.2cqw; text-align: center; }
  .defensa__list > h2 { display: none; }
  .pasos li { padding-top: 0; }
  .pasos li + li { padding-top: 13px; }
  .pasos h3 { font-size: 5.18cqw; line-height: 1.3; color: var(--navy-2); margin: 0 0 17px; }
  .pasos p { font-size: 14px; line-height: 1.4; max-width: none; margin: 0 0 24px; }
  .pasos .line { width: 100%; }

  /* En vez de la galería: una sola foto de retrato */
  .galeria-wrap { padding: 6.41cqw 3.85cqw 5.64cqw; }
  .galeria { display: block; padding: 0; aspect-ratio: auto; }
  .galeria img:not(:nth-child(2)) { display: none; }
  .galeria img:nth-child(2) { width: 100%; height: auto; aspect-ratio: 361 / 625; object-fit: cover; object-position: 50% 50%; }
  .galeria:hover img, .galeria img:hover { filter: none; transform: none; }

  .agenda { aspect-ratio: auto; padding: 0; min-height: 0; height: calc(190cqw - 10px); }
  #tymeslot-booking { min-height: 0; height: 100%; }

  .footer__grid { height: auto; padding: 21.5cqw 0 0; }
  .footer__info { font-size: 10px; line-height: 16px; }
  .footer__info .gap { margin-top: 16px; }
  .footer__info .gap2 { margin-top: 12px; }
  .social { margin: 24px 0 0; gap: 0; }
  .social a { width: 27.5px; height: 27px; }
  .social svg { width: 19px; height: 19px; }
  .footer__bottom { display: flex; flex-direction: column; height: auto; padding: 36px 0 0; }
  .footer__bottom small { order: 2; }
  .footer__wordmark { position: static; transform: none; display: block; width: 169px; height: auto; margin: 0 auto 52px; }
  .footer__bottom small { position: static; display: block; text-align: right; font-size: 10px; line-height: 16px; padding: 12px 19px 10px 0; }
}
@keyframes glideM { from { transform: translateX(-100%); } to { transform: none; } }

/* ---------- Celular: título "Silvestri Abogados" + línea fina que se desvanecen al bajar ---------- */
.m-marca { display: none; }
@media (max-width: 750px) {
  .m-marca {
    display: flex; align-items: center;
    position: fixed; top: 0; left: 0; right: 0; z-index: 55;
    height: 48px; padding-left: max(14px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgba(253, 253, 241, .15);
    pointer-events: none; will-change: opacity;
  }
  .m-marca a { pointer-events: auto; display: block; line-height: 0; }
  .m-marca a {
    font-family: var(--f-texto); font-weight: 500; font-size: clamp(15px, 5.1cqw, 20px);
    letter-spacing: -.02em; line-height: 1; color: var(--crema); text-decoration: none; white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
    max-width: calc(100cqw - max(84px, 21.36cqw) - 5.9cqw - 14px - 12px); overflow: hidden; text-overflow: ellipsis;
  }
  /* CONTACTO centrado en la altura de la franja */
  .topbar__cta { top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade, .reveal.is-in, .glide-m.is-in { animation: none; }
  .js .reveal, .js .glide-m { opacity: 1; }
}
