/* --------------------------------------------------------------------------
   Padin & Salvo — Estilos Globales Unificados (2026)
   -------------------------------------------------------------------------- */

/* Variables y Tokens */
:root {
  /* --- PALETA (2026-07, rev. 2): un solo azul (navy) + escala de grises +
     un crema secundario. Se elimina el dorado #DAA520: el estudio pidió
     desmarcarse de la estética jurídica clásica.
     Contraste: 093D77 vs F9F7F1 = 10.08 | 2B2B2B vs F9F7F1 = 13.22
                4A4A4A vs F9F7F1 =  8.27 | 4A4A4A vs ECEAE2 =  7.36
     Jerarquía: títulos 2B2B2B / cuerpo 4A4A4A. */
  --navy: #093D77;
  --navy-dark: #2B2B2B;
  --blue-accent: var(--navy);
  --blue-bg: rgba(9, 61, 119, 0.04);
  /* wash muy sutil de navy */
  --white: #F9F7F1;
  --cream-2: #ECEAE2;
  /* superficie cálida secundaria: footer, .qa, .quick-help, íconos */
  --measure: 800px;
  /* ancho de los bloques de prosa */
  --space-section: clamp(44px, 5vw, 72px);
  /* aire vertical de sección */
  --muted: #4A4A4A;
  /* cuerpo y secundario — 8.27 sobre crema, 7.36 sobre cream-2 */
  --text: #4A4A4A;
  /* idem. Los títulos siguen en --navy-dark #2B2B2B vía --green-dark */
  --radius: 24px;

  /* Fuentes unificadas (DM Sans como dominante absoluta) */
  --font-title: "DM Sans", Arial, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;

  /* Líneas y sombras */
  --line: rgba(9, 61, 119, 0.12);
  --line-light: rgba(9, 61, 119, 0.06);
  --shadow: 0 16px 40px rgba(9, 61, 119, 0.04);
  --header-h: 88px;

  /* --- ALIASES DE COMPATIBILIDAD ANTERIOR --- */
  --green: var(--navy);
  --green-dark: var(--navy-dark);
  --accent: var(--blue-accent);
  --bronze: var(--blue-accent);
}

/* Reset y Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background-color: var(--white);
  background-image: none;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  touch-action: manipulation;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: var(--space-section) 0;
  scroll-margin-top: 92px;
}

/* Tipografía */
.eyebrow {
  color: var(--bronze);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::after {
  content: "";
  width: 24px;
  height: 1.5px;
  background-color: var(--accent);
  opacity: 0.8;
}

.h1,
h1 {
  font-family: var(--font-title);
  line-height: 1.04;
  margin: 0;
  color: var(--green-dark);
  letter-spacing: 0;
}

h2,
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  color: var(--green-dark);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

h2 {
  font-size: clamp(2rem, 8vw, 3.3rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .82rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(43, 43, 43, .18);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-light {
  background: var(--white);
  color: var(--green);
}

.btn-outline {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(9, 61, 119, 0.06);
}

/* Accesibilidad y Utilidades */
.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--green);
  color: var(--white);
  padding: .7rem 1rem;
  z-index: 1000;
}

.skip:focus {
  left: 12px;
}

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

global-header {
  display: contents;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 241, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(9, 61, 119, 0.08);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(9, 61, 119, 0.04);
  background: rgba(236, 234, 226, 0.98);
  border-bottom-color: rgba(9, 61, 119, 0.04);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: height .25s ease;
}

.site-header.is-scrolled .nav-wrap {
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
}

.brand img {
  display: block;
  height: 44px;
  width: auto;
  transition: height .25s ease;
}



.desktop-nav {
  display: none;
}

.desktop-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green);
}

.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle span:before {
  transform: translateY(-7px);
}

.menu-toggle span:after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded=true] span {
  background: transparent;
}

.menu-toggle[aria-expanded=true] span:before {
  transform: translateY(2px) rotate(45deg);
  background: var(--green);
}

.menu-toggle[aria-expanded=true] span:after {
  transform: translateY(0) rotate(-45deg);
  background: var(--green);
}

.mobile-drawer {
  position: fixed;
  top: 88px;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--white);
  border-top: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(43, 43, 43, 0.05);
  z-index: 99;
  overflow: hidden;
  transition: height .28s cubic-bezier(0.16, 1, 0.3, 1), top .25s ease;
}

.site-header.is-scrolled .mobile-drawer {
  top: 70px;
}

.mobile-drawer.open {
  height: calc(100vh - 88px);
  height: calc(100dvh - 88px);
  border-top-color: var(--line-light);
}

.site-header.is-scrolled .mobile-drawer.open {
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
}

.mobile-drawer>div {
  height: 100%;
  overflow-y: auto;
}

body.menu-open .wa-float {
  display: none !important;
}

.mobile-nav {
  display: grid;
  padding: 1.25rem 0 1.5rem;
  gap: .5rem;
}

.mobile-nav a:not(.btn) {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-light);
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s ease;
}

.mobile-nav a:not(.btn)::after {
  content: "→";
  color: var(--bronze);
  font-weight: 400;
  opacity: 0.7;
  transition: transform .2s ease;
}

.mobile-nav a:not(.btn):active {
  color: var(--accent);
}

.mobile-nav a:not(.btn):active::after {
  transform: translateX(3px);
}

.mobile-nav .btn {
  margin-top: .8rem;
  width: 100%;
  color: var(--white) !important;
}

/* Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
  padding: 44px 0 56px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background: var(--white);
}

.hero::after {
  z-index: -1;
  background: linear-gradient(to bottom,
      rgba(249, 247, 241, 0) 68%,
      rgba(249, 247, 241, 0.86) 88%,
      var(--white) 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

#hero-title {
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero-actions-note {
  font-size: .84rem;
  color: var(--muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  width: 100%;
}

.hero-media {
  display: none;
}

.hero-highlight {
  font-weight: 700;
  color: var(--blue-accent);
  font-size: 1.15rem;
  margin: 0.2rem 0 0.8rem 0;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 600px;
    padding: 64px 0 88px;
    display: flex;
    align-items: center;
  }

  .hero::before {
    background-image:
      linear-gradient(to right,
        var(--white) 0%,
        var(--white) 39%,
        rgba(249, 247, 241, 0.94) 47%,
        rgba(249, 247, 241, 0.42) 57%,
        rgba(249, 247, 241, 0.06) 69%,
        rgba(249, 247, 241, 0) 82%),
      url("hero-articulo-14bis.webp");
    background-repeat: no-repeat;
    background-size: 100% 100%, auto 106%;
    background-position: center, calc(100% + 78px) center;
  }

  .hero::after {
    background: linear-gradient(to bottom,
        rgba(249, 247, 241, 0) 72%,
        rgba(249, 247, 241, 0.82) 90%,
        var(--white) 100%);
  }

  .hero-copy {
    max-width: min(52%, 680px);
  }

  #hero-title {
    font-size: clamp(3.2rem, 5vw, 70px);
    line-height: 1.02;
  }
}

@media (min-width: 1280px) {
  .hero::before {
    background-size: 100% 100%, auto 112%;
    background-position: center, calc(100% + 64px) center;
  }
}

/* Grilla Editorial - Cómo trabajamos */
.work-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

.work-block {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-block:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.04);
}

.work-block-step {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.75;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease;
}

.work-block:hover .work-block-step {
  opacity: 1;
}

.work-block-text {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.work-semibold {
  font-weight: 600;
  color: var(--green-dark);
}

.work-regular {
  font-weight: 400;
  color: var(--muted);
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Secciones e Info Cards */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: var(--measure);
}

.section-head p {
  margin: 0;
}

.section-head p a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.section-head p a:hover {
  color: var(--green);
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

#como-ayudarte {
  background-color: var(--blue-bg);
  border-top: 1px solid rgba(9, 61, 119, 0.05);
  border-bottom: 1px solid rgba(9, 61, 119, 0.05);
}

.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 43, 43, .08);
  border-color: var(--bronze);
}

.info-card:focus-within {
  box-shadow: 0 14px 34px rgba(43, 43, 43, .1);
  border-color: var(--accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--cream-2);
  color: var(--bronze);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  display: block !important;
  -webkit-line-clamp: unset;
}

.read-link {
  font-weight: 700;
  color: var(--bronze);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  transition: transform .25s ease, color .25s ease;
}

.topics-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Acordeón y FAQs */
.accordion-list {
  display: grid;
  gap: .8rem;
}

.topic {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  border: 0;
  background: var(--white);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1rem;
  font: 700 1rem var(--font-body);
  cursor: pointer;
}

.acc-trigger:after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.acc-trigger[aria-expanded=true]:after {
  content: "-";
}

.acc-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .34s ease, opacity .25s ease;
}

.acc-content.open {
  opacity: 1;
}

.topic-body {
  padding: 0 1rem 1.1rem;
}

.topic-body p {
  color: var(--muted);
}

.nested-title {
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 1.4rem 0 .8rem;
}

.qa {
  border: 1px solid rgba(43, 43, 43, .12);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--cream-2);
}

.qa .acc-trigger {
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.qa .topic-body {
  padding-bottom: .95rem;
}

.disclaimer {
  border-left: 4px solid var(--green);
  background: var(--white);
  padding: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.2rem 0;
}

.disclaimer strong {
  display: block;
  color: var(--green);
  margin-bottom: .25rem;
}

/* Secciones Institucionales */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

#nuestra-mirada {
  position: relative;
  background-color: var(--blue-accent);
  color: var(--white);
  padding: var(--space-section) 0;
  margin: 60px 0 0 0;
}

#nuestra-mirada #mirada-title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
}

#nuestra-mirada .text-stack p {
  color: rgba(249, 247, 241, 0.95);
  font-size: 1.1rem;
}

#nuestra-mirada .wave-divider path {
  fill: var(--blue-accent);
}

/* Detalle de identidad: filete crema (#ECEAE2), SOLO sobre la curva
   (no el contorno cerrado del path, que incluye el borde recto de abajo
   y partía el bloque navy en dos). Capa aparte, mismo viewBox y misma
   curva, para que quede pegado exacto arriba de la ola. */
#nuestra-mirada .wave-divider-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C480,120 960,10 1440,80' fill='none' stroke='%23ECEAE2' stroke-width='30' stroke-opacity='0.65'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Misma capa que la ola de arriba. El rotate(180deg) que ya tiene este div
   (regla base .wave-divider-bottom) la orienta sola, no hay que invertir
   la curva a mano. */
#nuestra-mirada .wave-divider-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C480,120 960,10 1440,80' fill='none' stroke='%23ECEAE2' stroke-width='30' stroke-opacity='0.65'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.text-stack {
  display: grid;
  gap: 1rem;
}

.text-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.mural {
  aspect-ratio: auto;
  background: transparent;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: none;
}

.mural img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 30px;
}

.studio {
  background: transparent;
}

.studio-copy {
  max-width: 900px;
}

/* Bento Grid Studio y Biografías */
.studio-bento-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.drop-cap::first-letter {
  font-family: var(--font-body);
  font-size: 3.2rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 8px;
  margin-top: 4px;
  color: var(--green);
  font-style: normal;
}

.bio-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 12px rgba(43, 43, 43, .02);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 43, 43, .08);
  border-color: var(--bronze);
}

.bio-photo {
  display: block;
  width: 100%;
  height: clamp(280px, 72vw, 380px);
  object-fit: cover;
  object-position: 50% top;
  background: var(--cream-2);
  border-radius: var(--radius) var(--radius) 0 0;
}

.bio-photo[src*="luis-padin"] {
  object-position: 18% top;
}

.bio-photo[src*="natalia-salvo"] {
  object-position: 50% top;
}

.bio-content {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: flex-start;
  flex-grow: 1;
}

/* Curva propia para este tamaño (viewBox 400x20, amplitud ±6 sobre un
   centro de 10 — proporcionalmente mucho más plana que el path de las
   olas de Nuestra Mirada, que varía casi toda su altura). No reutiliza
   ese path a propósito: esto es un detalle chico, no la bandera. */
.bio-content::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 11px;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C60,4 120,16 200,10 C280,4 340,16 400,10' fill='none' stroke='%23ECEAE2' stroke-width='6' stroke-opacity='1'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Segunda onda, en navy (el mismo azul de fondo de Nuestra Mirada),
   ahora arriba de la crema (más oscura arriba, más clara abajo). */
.bio-content::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 11px;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C60,4 120,16 200,10 C280,4 340,16 400,10' fill='none' stroke='%23093D77' stroke-width='6' stroke-opacity='1'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.role {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--bronze);
  text-transform: uppercase;
}

.bio-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.bio-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.25rem 0 0.5rem;
  padding: 0.75rem 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.bio-highlights li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Guías y CTA Band */
.guides-nav {
  display: flex;
  gap: .6rem;
  overflow: auto;
  padding: .25rem 0 .7rem;
  scrollbar-width: thin;
}

.pill {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem .9rem;
  color: var(--green);
  font-weight: 700;
  background: var(--white);
}

.cta-band {
  background: var(--green);
  color: var(--white);
  padding: var(--space-section) 0;
  position: relative;
  z-index: 1;
}

.cta-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.cta-grid p {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.cta-grid .btn {
  width: 100%;
}

/* Páginas de Recursos */
.page-intro {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: var(--measure);
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  min-height: 100%;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 43, 43, .08);
  border-color: var(--bronze);
}

.resource-card:focus-within {
  box-shadow: 0 14px 34px rgba(43, 43, 43, .1);
  border-color: var(--accent);
}

.resource-card h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.08;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
}


.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 700;
}

/* El último ítem es la página actual y el <h1> la repite abajo.
   Desde 768px se oculta visualmente pero sigue en el árbol de
   accesibilidad. En mobile se conserva: ahí el h1 queda más lejos
   y la orientación aporta. */
@media (min-width: 768px) {
  .breadcrumb>span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .breadcrumb>span[aria-hidden="true"]:nth-last-of-type(2) {
    display: none;
  }
}

.topic-page {
  max-width: 860px;
}

.topic-page h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  margin: 2rem 0 1rem;
}

.topic-page h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: .75rem;
}

.topic-page .page-intro {
  margin-bottom: 2.5rem;
}

.topic-page h1 {
  font-size: clamp(2rem, 5.5vw, 3.125rem);
  line-height: 1.08;
}

.topic-cta-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}



.topic-cta {
  width: 100%;
  margin-top: 1rem;
}

/* Footer y WhatsApp */
.site-footer {
  background: var(--cream-2);
  color: var(--muted);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-light);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  overflow-wrap: break-word;
}

.footer-brand svg,
.footer-brand img {
  display: block;
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}



.footer-col h3 {
  font-family: var(--font-body);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-dark);
  margin: 0 0 .8rem;
}

.footer-col a {
  display: block;
  margin: .45rem 0;
}

.footer-col a:hover {
  color: var(--bronze);
}

.footer-bottom {
  border-top: 1px solid var(--line-light);
  margin-top: 2rem;
  padding: 1rem 0;
  font-size: .9rem;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .32);
  transition: transform .2s ease;
}

.wa-float .wa-icon {
  display: block;
  width: 29px;
  height: 29px;
  flex: none;
  transform: translate(1px, -1px);
  transform-origin: center;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float:after {
  content: "Escribinos";
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-dark);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  padding: .45rem .6rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  white-space: nowrap;
}

.wa-float:hover:after,
.wa-float:focus-visible:after {
  opacity: 1;
}

/* Foco y Accesibilidad */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.acc-trigger:focus-visible,
.wa-float:focus-visible {
  outline: 3px solid rgba(9, 61, 119, .42);
  outline-offset: 3px;
}

.cta-note {
  margin: .1rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.quick-help {
  display: grid;
  gap: .75rem;
  margin: 1.25rem 0 2rem;
  padding: 1rem;
  max-width: var(--measure);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream-2);
}

.quick-help strong {
  color: var(--green);
  line-height: 1.35;
}

.quick-help p {
  margin: 0;
  color: var(--muted);
}

.quick-help .read-link {
  width: max-content;
}

.wa-float-text {
  display: none;
}

/* Breakpoint Mobile / Tablet Fino */
@media (max-width: 480px) {
  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
  }
}



/* Layout Computadoras / Grillas */
@media (min-width: 768px) {

  .split,
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .bio-content {
    padding: 1.75rem;
  }

  .studio-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-photo {
    height: clamp(320px, 32vw, 420px);
  }

  .cta-grid .btn {
    width: auto;
    justify-self: end;
  }

  .topic-cta {
    width: auto;
  }

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

/* Nav desktop */
@media (min-width: 1024px) {

  .mobile-drawer,
  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
  }

  .desktop-nav a {
    font-weight: 700;
    color: var(--green);
    font-size: .92rem;
    transition: color .2s ease;
  }

  .desktop-nav a:hover {
    color: var(--accent);
  }

  .desktop-cta {
    display: inline-flex;
  }

  .brand img {
    height: 64px;
  }

  .site-header.is-scrolled .brand img {
    height: 54px;
  }

  .footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
    max-width: 1000px;
  }

  .footer-brand {
    flex: 0 1 340px;
  }

  .footer-col {
    flex: 0 0 auto;
  }
}

@media (min-width: 1200px) {
  .container {
    width: min(1180px, calc(100% - 48px));
  }

  .cards-grid,
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-card {
    padding: 1.5rem 1.4rem;
  }
}

/* Animaciones y micro-interacciones */
@media (prefers-reduced-motion: reduce) {

  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.card-icon {
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.info-card:hover .card-icon,
.resource-card:hover .card-icon {
  background: var(--green);
  color: var(--white);
  transform: scale(1.06);
}

.info-card:hover .read-link,
.resource-card:hover .read-link {
  transform: translateX(4px);
  color: var(--accent);
}

/* Indicador de navegación activa */
.desktop-nav a.active,
.desktop-nav a[aria-current] {
  color: var(--navy-dark);
  position: relative;
}

.desktop-nav a.active::after,
.desktop-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.mobile-nav a:not(.btn).active,
.mobile-nav a:not(.btn)[aria-current] {
  color: var(--accent);
  background: var(--blue-bg);
  border-bottom-color: transparent;
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--accent);
  padding-inline: .85rem;
}

.mobile-nav a:not(.btn).active::after,
.mobile-nav a:not(.btn)[aria-current]::after {
  opacity: 1;
  transform: translateX(3px);
}

/* Fade in en scroll */
.fade-in-section .container>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.fade-in-section.is-visible .container>* {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section.is-visible .container>*:nth-child(1) {
  transition-delay: .08s;
}

.fade-in-section.is-visible .container>*:nth-child(2) {
  transition-delay: .22s;
}

.fade-in-section.is-visible .container>*:nth-child(3) {
  transition-delay: .36s;
}

.fade-in-section.is-visible .container>*:nth-child(4) {
  transition-delay: .5s;
}




.hero-media {
  overflow: visible;
}

.hero-media img {
  transition: transform .6s ease;
}



/* WhatsApp Online Dot */
.desktop-cta {
  position: relative;
  padding-right: 2rem !important;
}

.desktop-cta::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0df053;
  box-shadow: 0 0 0 0 rgba(13, 240, 83, .7);
  animation: wa-pulse 1.8s infinite;
}


.wa-float::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0df053;
  border: 2px solid #25D366;
  z-index: 10;
  box-shadow: 0 0 0 0 rgba(13, 240, 83, .7);
  animation: wa-pulse-float 1.8s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: translateY(-50%) scale(.95);
    box-shadow: 0 0 0 0 rgba(13, 240, 83, .7);
  }

  70% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 6px rgba(13, 240, 83, 0);
  }

  100% {
    transform: translateY(-50%) scale(.95);
    box-shadow: 0 0 0 0 rgba(13, 240, 83, 0);
  }
}

@keyframes wa-pulse-float {
  0% {
    transform: scale(.95);
    box-shadow: 0 0 0 0 rgba(13, 240, 83, .7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(13, 240, 83, 0);
  }

  100% {
    transform: scale(.95);
    box-shadow: 0 0 0 0 rgba(13, 240, 83, 0);
  }
}

/* Contact Bento Layout */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(43, 43, 43, .02);
}

.contact-info-list {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--cream-2);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.contact-info-content h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bronze);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-info-content p,
.contact-info-content a {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.contact-info-content a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 43, 43, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .contact-card {
    padding: 36px;
  }
}

/* Legal Content Styles (privacidad.html) */
.legal-content {
  max-width: 860px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(43, 43, 43, .02);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content strong {
  color: var(--green-dark);
}

@media (min-width: 768px) {
  .legal-content {
    padding: 48px;
  }
}

/* Filtros interactivos */
.filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0
}

.filter-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease
}

.filter-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 43, 43, .1)
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease
}

.filter-btn:hover {
  border-color: var(--green)
}

.filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green)
}

/* Corte de Secciones con Ondas SVG — encabezado de sección */

/* Corte de Secciones con Ondas SVG */
#como-trabajamos {
  position: relative;
  background-color: var(--blue-bg);
  padding: var(--space-section) 0;
  margin: 0;
}

.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.wave-divider-top {
  top: -59px;
}

.wave-divider-bottom {
  bottom: -59px;
  transform: rotate(180deg);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider path {
  fill: var(--blue-bg);
}

/* Glassmorphism en tarjetas de Cómo trabajamos */
#como-trabajamos .work-block {
  background: rgba(249, 247, 241, 0.65);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(249, 247, 241, 0.45);
  box-shadow: 0 8px 32px rgba(43, 43, 43, 0.03);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease;
}

#como-trabajamos .work-block:hover {
  background: rgba(249, 247, 241, 0.9);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(43, 43, 43, 0.08);
}

/* Highlight del hero */
.highlight-underline {
  position: relative;
  display: inline-block;
  color: var(--blue-accent);
}



/* Animaciones de Entrada por Scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para grillas o listas */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   HERO MOBILE/TABLET — COMPOSICIÓN TIPOGRÁFICA SIN IMAGEN
   La fotografía se conserva únicamente en desktop (>= 1024px), donde ya
   forma parte del fondo original de .hero::before.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: clamp(42px, 8vw, 64px) 0 clamp(54px, 9vw, 76px);
  }

  .hero::before {
    background: var(--white);
  }

  .hero::after {
    background: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }

  .hero-copy {
    width: 100%;
    max-width: 760px;
    gap: clamp(1rem, 3vw, 1.3rem);
  }

  #hero-title {
    width: 100%;
    max-width: 100%;
    margin: 0 0 clamp(.35rem, 1.5vw, .65rem);
    font-size: clamp(2.65rem, 11.6vw, 4.35rem);
    line-height: .96;
    letter-spacing: -.045em;
    text-wrap: pretty;
  }

  .hero-copy > .lead {
    max-width: 42rem;
    margin: 0;
    font-size: clamp(1.04rem, 3.3vw, 1.2rem);
    line-height: 1.55;
  }

  .hero-highlight {
    max-width: 42rem;
    margin: clamp(.25rem, 1vw, .5rem) 0 clamp(.35rem, 1vw, .65rem);
    font-size: clamp(.96rem, 2.8vw, 1.08rem);
    line-height: 1.42;
    letter-spacing: .055em;
  }
}

@media (max-width: 480px) {
  #hero-title {
    font-size: clamp(2.55rem, 11.35vw, 3.05rem);
  }
}


/* Evita duplicar y superponer dos CTA de WhatsApp en mobile.
   El flotante reaparece automáticamente cuando el CTA del hero sale de vista. */
@media (max-width: 767px) {
  .wa-float {
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
  }

  whatsapp-float.is-suppressed .wa-float {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.94);
  }
}

#inicio {
  scroll-margin-top: var(--header-h);
}

#como-trabajamos-title {
  margin-top: 24px;
}
