/* =====================================================
   SKIP LINK (accesibilidad de teclado)
   ===================================================== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--lime);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}
.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;
}

/* =====================================================
   BARRA SUPERIOR DE PRESENTACIÓN
   ===================================================== */
.proposal-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.proposal-bar .label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  text-transform: uppercase;
}
.proposal-bar .label::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}
.proposal-bar .nav-pages {
  display: flex;
  gap: 4px;
}
.proposal-bar .nav-pages :is(button, a) {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 6px 12px;
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.proposal-bar .nav-pages :is(button, a):hover {
  border-color: var(--lime);
  color: var(--lime);
}
.proposal-bar .nav-pages :is(button, a).active {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
}
.proposal-bar .nav-pages :is(button, a).untouched {
  border-color: var(--border2);
  color: var(--purple);
}
.proposal-bar .nav-pages :is(button, a).untouched.active {
  background: var(--purple);
  color: var(--black);
}

/* =====================================================
   HEADER DEL SITE (consistente con la landing)
   ===================================================== */
.site-header {
  position: sticky;
  top: 42px;
  background: rgba(4, 4, 4, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  z-index: 100;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(4, 4, 4, 0.92);
    backdrop-filter: blur(12px);
  }
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
}
.logo span { color: var(--red); }
.main-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.main-nav a:not(.header-cta) {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.main-nav a:not(.header-cta):hover { color: var(--lime); }
.main-nav .header-cta {
  background: var(--lime);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 22px;
  letter-spacing: 0.02em;
}
.main-nav .header-cta:hover {
  background: var(--cream);
  color: var(--black);
}

/* =====================================================
   TARJETAS DE SERVICIOS (estilo módulos ANTICAOS)
   ===================================================== */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px 36px;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  position: relative;
}
.service-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}
.service-card .num {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 28px;
}
.service-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.service-card h3 em { font-style: italic; color: var(--lime); }
.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-70);
  margin-bottom: 28px;
  flex: 1;
}
.service-card .more {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-card.featured {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
}
.service-card.featured .num { color: var(--red); }
.service-card.featured h3 { color: var(--black); }
.service-card.featured h3 em { color: var(--red); font-style: italic; }
.service-card.featured p { color: rgba(4, 4, 4, 0.75); }
.service-card.featured .more { color: var(--black); }
.service-card.featured .badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--black);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
}

/* =====================================================
   TARJETAS DE TESTIMONIO
   ===================================================== */
.t-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px 32px;
}
.t-card .quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.t-card .author {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lime);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* =====================================================
   TARJETAS "CÓMO TRABAJO"
   ===================================================== */
.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px 32px;
}
.how-card .num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 72px;
  color: var(--lime);
  line-height: 0.9;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.how-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.how-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-70);
}

/* =====================================================
   FILA DE SERVICIO (página servicios)
   ===================================================== */
.svc-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.3fr 220px;
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.svc-row:last-of-type { border-bottom: 1px solid var(--border); }
.svc-row .num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 64px;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
}
.svc-row .name {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--cream);
}
.svc-row .name em { font-style: italic; color: var(--lime); }
.svc-row .desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-70);
}
.svc-row .desc ul {
  list-style: none;
  margin-top: 14px;
}
.svc-row .desc ul li {
  padding: 4px 0;
  font-size: 14px;
  position: relative;
  padding-left: 18px;
}
.svc-row .desc ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lime);
}
.svc-row .action {
  text-align: right;
}
.svc-row .action .meta-info {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 14px;
}
.svc-row .action .btn { font-size: 13px; padding: 14px 28px; }
.svc-row.featured .num { color: var(--lime); }
.svc-row.featured .name em { color: var(--red); }

/* =====================================================
   COLUMNAS COMPARATIVA
   ===================================================== */
.compare-col {
  padding: 48px 40px;
  border: 1px solid var(--border);
  background: var(--card);
}
.compare-col.bad h4 { color: var(--red); }
.compare-col.good { border-color: var(--lime); }
.compare-col.good h4 { color: var(--lime); }
.compare-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 24px;
}
.compare-col h5 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}
.compare-col ul { list-style: none; }
.compare-col ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--cream-75);
}
.compare-col ul li:last-child { border: none; }

/* =====================================================
   FORMULARIO DE CONTACTO
   ===================================================== */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 56px 48px;
}
.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.contact-form legend {
  /* Oculto visualmente pero leído por lectores de pantalla */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.contact-form .fg { margin-bottom: 28px; }
.contact-form label {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lime);
  margin-bottom: 10px;
  display: block;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-bottom-color: var(--lime);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form select option {
  background: var(--card);
  color: var(--cream);
}
.contact-form .btn {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}
.contact-form .form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--lime);
  min-height: 1.4em;
}
.contact-form .form-status--ok    { color: var(--lime); }
.contact-form .form-status--error { color: #e63c2f; }
.contact-form [aria-invalid="true"] { border-color: #e63c2f; }

.contact-channel {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.contact-channel:last-child { border-bottom: 1px solid var(--border); }
.contact-channel .ch-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 8px;
}
.contact-channel .ch-value {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.contact-channel .ch-value em { font-style: italic; color: var(--lime); }
.contact-channel .ch-value a,
.contact-channel .ch-value a:visited {
  color: var(--cream);
  text-decoration: none;
}
.contact-channel .ch-value a:hover { text-decoration: underline; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-grid h4 {
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-grid a {
  display: block;
  color: var(--cream-70);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--lime); }
.footer-grid p {
  font-size: 14px;
  color: var(--cream-60);
  line-height: 1.65;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 32px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-logo span { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================
   ANOTACIÓN FLOTANTE
   ===================================================== */
.annotation {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--lime);
  will-change: transform, opacity;
  color: var(--cream);
  padding: 16px 20px;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.5;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, opacity 0.3s;
}
.annotation.is-hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.annotation .annot-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  display: block;
  margin-bottom: 6px;
}
.annotation .close {
  position: absolute;
  top: 6px; right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
}
.annotation .close:hover { color: var(--cream); }

/* =====================================================
   PLACEHOLDER PARA LANDINGS EXTERNAS (ANTICAOS / ANTIFRÁGIL)
   ===================================================== */
.anticaos-placeholder {
  min-height: calc(100vh - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.anticaos-placeholder::before {
  content: 'ANTICAOS™';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 260px;
  color: var(--card);
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
}
.anticaos-placeholder .inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.anticaos-placeholder .tag {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--lime);
  background: rgba(206, 251, 132, 0.08);
  padding: 8px 18px;
  border: 1px solid var(--lime);
  margin-bottom: 32px;
}
.anticaos-placeholder h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  color: var(--cream);
}
.anticaos-placeholder h2 em {
  font-style: italic;
  color: var(--lime);
}
.anticaos-placeholder p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-75);
  margin-bottom: 40px;
}
.placeholder-note { font-size: 14px; color: var(--muted); }
