/* ============================================================
   YARASCA-V2 — réplica de arquitectura y lenguaje visual de
   ccfirma.com adaptada a la marca Yarasca & Asociados.
   Paleta EXTRAÍDA del CSS real de ccfirma.com (4-sep):
     acento        #ED6A23  (botones, filetes, hovers -> #FF6A16)
     texto         #32373c sobre blanco / #69727d secundario
     tipografía    Montserrat, sans-serif (única en ccfirma)
   Los [PENDIENTE] siguen siendo honestos: datos reales del
   cliente que no se inventan (mismo criterio que v1).
   ============================================================ */

:root {
  --accent: #ED6A23;
  --accent-hover: #FF6A16;
  --dark: #0B1120;          /* fondo oscuro profundo (hero/footer) */
  --dark-2: #131A2C;        /* oscuro elevado (dropdown, bandas) */
  --dark-overlay: rgba(11, 17, 32, 0.72);
  --white: #FFFFFF;
  --paper: #F5F6F8;         /* secciones claras alternas */
  --ink: #32373C;
  --ink-dim: #69727D;
  --ink-inv: #F4F6FA;       /* texto sobre oscuro */
  --ink-inv-dim: #B7C0CE;
  --line: rgba(105, 114, 125, 0.22);
  --line-dark: rgba(244, 246, 250, 0.16);
  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --maxw: 1200px;
  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; }

/* ---------- Announcement bar (clon del patrón ccfirma) ---------- */
.announce {
  position: relative;
  background: var(--dark);
  color: var(--ink-inv);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 44px;
  border-bottom: 1px solid var(--line-dark);
}
.announce strong { color: var(--accent); font-weight: 600; }
.announce a { color: var(--ink-inv); text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: var(--accent-hover); }
.announce-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--ink-inv-dim);
  font-size: 17px; line-height: 1; cursor: pointer; padding: 6px 8px;
}
.announce-close:hover { color: var(--white); }
.announce.is-hidden { display: none; }

/* ---------- Header: semitransparente + blur (clon ccfirma) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 17, 32, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: 68px; width: auto; max-height: 68px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > ul { display: flex; align-items: center; gap: 26px; list-style: none; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .dd-label {
  color: var(--ink-inv-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
}
.main-nav a:hover, .main-nav li:hover > .dd-label, .main-nav li:focus-within > .dd-label {
  color: var(--white);
  text-decoration: none;
}
.main-nav .nav-active { color: var(--white); }
.main-nav .nav-active::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--accent);
}
.dd-caret { font-size: 9px; transform: translateY(1px); }

/* Dropdown semitransparente con blur (clon ccfirma) */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 250px;
  background: rgba(19, 26, 44, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 18px 44px rgba(0,0,0,0.4);
}
.main-nav li:hover .dropdown,
.main-nav li:focus-within .dropdown,
.main-nav li.dd-open .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-inv-dim);
  white-space: nowrap;
}
.dropdown a:hover { background: rgba(255,255,255,0.07); color: var(--accent-hover); }

.main-nav .nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); color: var(--white); box-shadow: 0 10px 26px rgba(237,106,35,0.35); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero (fondo oscuro + vídeo de assets/) ---------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,17,32,0.62) 0%, rgba(11,17,32,0.74) 60%, rgba(11,17,32,0.92) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 840px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-lede { font-size: 19px; color: var(--ink-inv-dim); max-width: 640px; margin-bottom: 38px; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sub-hero de páginas internas (banda oscura reutilizando el patrón) */
.page-hero {
  position: relative;
  padding: 96px 0 72px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(11,17,32,0.86), rgba(11,17,32,0.86)),
    url("../../assets/pexels-towfiqu-barbhuiya-3440682-14527417.jpg") center/cover no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); text-transform: uppercase; margin-bottom: 14px; }
.page-hero p { color: var(--ink-inv-dim); font-size: 17px; max-width: 620px; }
.crumb {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-inv-dim); margin-bottom: 18px; display: block;
}
.crumb a { color: var(--accent); }

/* ---------- Carrusel de reconocimientos (auto 4s) ----------
   ccfirma rota logos de Chambers / Legal 500 / Latin Lawyer.
   Yarasca aún no entrega sus certificados: los slots son
   placeholders honestos, listos para sustituir. */
.recon {
  background: var(--dark);
  border-top: 1px solid var(--line-dark);
  padding: 44px 0 56px;
}
.recon-title {
  text-align: center;
  color: var(--ink-inv-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.recon-viewport { overflow: hidden; }
.recon-track {
  display: flex;
  gap: 24px;
  width: max-content;
  transition: transform 0.6s cubic-bezier(.25,.8,.3,1);
}
.recon-item {
  flex: 0 0 auto;
  width: 210px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink-inv-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 14px;
}
.recon-item strong { color: var(--ink-inv); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--dark); color: var(--white); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-sub { color: var(--ink-dim); font-size: 17px; }
.section.dark .section-sub { color: var(--ink-inv-dim); }

/* ---------- Tarjetas de servicios ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: -40% -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(237,106,35,0.07) 50%, transparent 60%);
  transform: translateX(-70%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.card:hover::after { transform: translateX(70%); }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(19, 26, 44, 0.14);
}
.card-num { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); }
.card h3 { font-size: 20px; color: var(--ink); min-height: 2.4em; }
.card p { color: var(--ink-dim); font-size: 15px; flex-grow: 1; }
.card-link {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}

/* ---------- Dos columnas con imagen ---------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.split-body p { color: var(--ink-dim); margin-bottom: 18px; }
.split-body p:first-of-type { color: var(--ink); font-size: 17.5px; }
.split-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(19,26,44,0.18);
}
.split-figure img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split-figure figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); border: 1px dashed rgba(255,255,255,0.5); border-radius: 999px;
  padding: 4px 10px; background: rgba(11,17,32,0.72);
}

/* Valores / ventajas con filete naranja (patrón ccfirma) */
.value-list { list-style: none; margin-top: 30px; display: grid; gap: 20px; }
.value-list li { border-left: 3px solid var(--accent); padding-left: 18px; }
.value-list strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.value-list span { color: var(--ink-dim); font-size: 14.5px; }
.section.dark .value-list strong { color: var(--white); }
.section.dark .value-list span { color: var(--ink-inv-dim); }

/* ---------- Conciliación: tarjetas + ventajas ---------- */
.cc-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.cc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cc-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 16px 36px rgba(19,26,44,0.12); }
.cc-icon { font-size: 28px; line-height: 1; display: block; margin-bottom: 14px; }
.cc-card h3 { font-size: 19px; margin-bottom: 10px; }
.cc-card p { color: var(--ink-dim); font-size: 15px; }
.cc-advantages {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
}
.cc-adv-title { font-size: 22px; text-align: center; margin-bottom: 30px; }
.cc-adv-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.cc-adv-grid li { border-top: 3px solid var(--accent); padding-top: 16px; }
.cc-adv-grid strong { display: block; font-size: 16px; margin-bottom: 6px; }
.cc-adv-grid span { color: var(--ink-inv-dim); font-size: 14.5px; }
.cc-cta { text-align: center; margin-top: 38px; }

/* ---------- Equipo ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 16px 36px rgba(19,26,44,0.14); }
.team-open {
  display: block; width: 100%; background: none; border: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0;
}
.team-photo-wrap { position: relative; display: block; overflow: hidden; }
.team-photo-wrap img {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: saturate(0.92); transition: transform 0.5s ease;
}
.team-card:hover .team-photo-wrap img { transform: scale(1.04); }
.team-sample-tag {
  position: absolute; left: 10px; top: 10px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); border: 1px dashed rgba(255,255,255,0.5); border-radius: 999px;
  padding: 3px 8px; background: rgba(11,17,32,0.72);
}
.team-meta { display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 22px; }
.team-meta strong { font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.team-meta em {
  font-style: normal; color: var(--accent);
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ---------- Modales de equipo (<dialog> nativo) ---------- */
.team-dialog {
  width: min(860px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 64px rgba(11,17,32,0.4);
}
.team-dialog::backdrop { background: rgba(11, 17, 32, 0.78); backdrop-filter: blur(3px); }
.dialog-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  background: none; border: none; color: var(--ink-dim);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.dialog-close:hover { color: var(--accent); }
.dialog-grid { display: grid; grid-template-columns: 280px 1fr; }
.dialog-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.dialog-body { padding: 36px 36px 40px; }
.dialog-kicker { margin-bottom: 10px; }
.dialog-body h3 { font-size: 26px; margin-bottom: 16px; }
.dialog-body p { color: var(--ink-dim); font-size: 15px; margin-bottom: 14px; }
.dialog-body .credential-list { margin-top: 18px; }
.dialog-cta { margin-top: 22px; }
@media (max-width: 700px) {
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-photo { aspect-ratio: 16 / 9; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 42px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 14px 40px rgba(19,26,44,0.08);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); }
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237,106,35,0.18);
}
.field textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-dim); text-align: center; }
.form-note.ok { color: var(--accent); }

.contact-side { display: flex; flex-direction: column; gap: 24px; }
.side-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.side-block h3 { font-size: 19px; margin-bottom: 10px; }
.side-block > p { color: var(--ink-dim); font-size: 15px; margin-bottom: 18px; }
.btn-whatsapp {
  background: #25D366; color: #06210f; display: block;
}
.btn-whatsapp:hover { background: #2ee578; color: #06210f; }
.btn-whatsapp small { font-weight: 500; font-size: 12px; letter-spacing: normal; text-transform: none; opacity: 0.85; }
.contact-data { list-style: none; }
.contact-data li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-dim); font-size: 15px; }
.contact-data li:last-child { border-bottom: none; }
.cred-label {
  color: var(--accent); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-right: 10px;
}
.map-frame {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-pendiente {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); border: 1px dashed rgba(255,255,255,0.5); border-radius: 999px;
  padding: 4px 9px; background: rgba(11,17,32,0.72);
}

/* ---------- Footer oscuro ---------- */
.site-footer { background: var(--dark); color: var(--ink-inv-dim); padding: 56px 0 40px; border-top: 3px solid var(--accent); }
.footer-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-brand img { height: 52px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--ink-inv-dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { width: 100%; font-size: 14px; }
.footer-contact a { color: var(--accent); font-weight: 600; }
.footer-legal { width: 100%; color: var(--ink-inv-dim); font-size: 12.5px; opacity: 0.8; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.cards-grid .card.reveal:nth-child(2), .team-grid .team-card.reveal:nth-child(2) { transition-delay: 0.07s; }
.cards-grid .card.reveal:nth-child(3), .team-grid .team-card.reveal:nth-child(3) { transition-delay: 0.14s; }
.cards-grid .card.reveal:nth-child(4), .team-grid .team-card.reveal:nth-child(4) { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .recon-track { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(11, 17, 32, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    padding: 16px 24px 24px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a, .main-nav .dd-label { width: 100%; padding: 13px 0; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none; padding: 0 0 8px 14px;
    display: none; min-width: 0;
  }
  .main-nav li.dd-open .dropdown { display: block; }
  .dropdown a { white-space: normal; }
  .nav-cta { display: inline-block; margin-top: 14px; }
}
@media (max-width: 760px) {
  .hero { padding: 100px 0 76px; }
  .section { padding: 72px 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 22px; }
  .cc-advantages { padding: 34px 22px; }
  .brand-logo { height: 48px; max-height: 48px; }
}

.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;
}

/* ---------- Widgets flotantes (conservados de v1) ---------- */
.floating-widgets {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fw-whatsapp {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: #25D366;
  color: #06210f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
}
.fw-whatsapp:hover { transform: scale(1.06); }
.fw-chat { position: relative; }
.fw-chat-launcher {
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--dark-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
}
.fw-chat-launcher:hover { transform: scale(1.06); }
.balanza { overflow: visible; }
.balanza-finial { fill: var(--accent); }
.balanza-poste, .balanza-base { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; fill: none; }
.balanza-viga { transform-origin: 24px 12px; animation: balanza-oscilar 3.4s ease-in-out infinite; }
.balanza-viga > line { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.balanza-platillo line { stroke: var(--accent); stroke-width: 1.5; }
.balanza-platillo path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
@keyframes balanza-oscilar {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .balanza-viga { animation: none; } }

.fw-chat-panel[hidden] { display: none; }
.fw-chat-panel {
  position: absolute;
  right: 0; bottom: calc(100% + 14px);
  width: min(320px, calc(100vw - 40px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11,17,32,0.3);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.fw-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  background: var(--dark);
  color: var(--white);
}
.fw-chat-avatar {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.fw-chat-head-texto { flex: 1; min-width: 0; }
.fw-chat-head-texto strong { display: block; font-size: 13.5px; }
.fw-chat-head-texto small { color: var(--ink-inv-dim); font-size: 11px; }
.fw-chat-cerrar { background: none; border: none; color: var(--ink-inv-dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.fw-chat-cerrar:hover { color: var(--white); }
.fw-chat-body { padding: 16px 14px; min-height: 90px; }
.fw-chat-msg {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  max-width: 90%;
}
.fw-chat-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.fw-chat-foot input {
  flex: 1; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; color: var(--ink-dim);
  font-family: var(--font);
}
.fw-chat-foot button {
  width: 34px; height: 34px; border-radius: 999px; border: none;
  background: var(--accent); color: var(--white); flex-shrink: 0;
}
.fw-chat-foot input:disabled, .fw-chat-foot button:disabled { opacity: 0.55; cursor: not-allowed; }
.fw-chat-nota { font-size: 10.5px; color: var(--ink-dim); text-align: center; padding: 0 12px 12px; }

@media (max-width: 480px) {
  .floating-widgets { right: 14px; bottom: 14px; }
  .fw-chat-panel { right: -6px; }
}
