/* ═══════════════════════════════════════
   IDENTIDAD DE MARCA · Sergio Navarro
   Recursos del sistema de marca (lienzo "Sistema de logo" en Claude Design):
   - Doble línea: el doble subrayado que cierra un total. Firma los antetítulos
     y las cifras.
   - ✓: la marca de revisado (la misma de la v del logotipo), en las listas.
   - Patrones: Marcas (✓ y doble línea), Libro (renglones contables) y Monograma.
   Se carga después del <style> de cada página, así que sus reglas mandan.
   ═══════════════════════════════════════ */

/* Doble línea antes de cada antetítulo: la firma del sistema */
.section-label::before,
.hero-eyebrow::before,
.eyebrow::before,
.promo-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 6px;
  margin-right: 10px;
  vertical-align: 0.18em;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
}
.section-label { font-weight: 500; }
/* En "Sobre mí" el estilo de los párrafos pisaba al antetítulo (tamaño y color) */
.about-text p.section-label {
  font-size: 11px;
  line-height: normal;
  color: var(--accent, #2EC99A);
  margin-bottom: 0.75rem;
}

/* ── Portada: panel con el patrón de marcas y el símbolo ── */
.hero-marca { display: none; }

@media (min-width: 1180px) {
  .hero-marca {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: max(2.5rem, calc((100vw - 1320px) / 2));
    width: clamp(340px, 30vw, 420px);
    height: 440px;
    /* centrado en el alto útil: el hero tiene más relleno arriba (menú fijo) */
    margin-top: -196px;
    border-radius: 28px;
    border: 0.5px solid rgba(46, 201, 154, 0.18);
    background: #0F2A3D url(patron-marcas.svg) center / 200px 200px;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s var(--ease-out, ease-out) forwards;
  }
  .hero-marca .placa {
    padding: 28px;
    border-radius: 44px;
    background: #0F2A3D;
    box-shadow: 0 0 0 28px rgba(15, 42, 61, 0.6);
  }
  .hero-marca img { display: block; width: 190px; height: 190px; }
}

/* ── Cifras: íconos de línea y la doble línea del total bajo cada número ── */
.cifra-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent, #2EC99A);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cifra-num::after {
  content: '';
  display: block;
  width: 36px;
  height: 6px;
  margin: 14px auto 0;
  opacity: 0.75;
  background:
    linear-gradient(var(--accent, #2EC99A), var(--accent, #2EC99A)) top / 100% 2px no-repeat,
    linear-gradient(var(--accent, #2EC99A), var(--accent, #2EC99A)) bottom / 100% 2px no-repeat;
}
@media (max-width: 700px) {
  .cifra-ico svg { width: 22px; height: 22px; }
  .cifra-num::after { width: 28px; margin-top: 10px; }
}

/* ── Listas: el ✓ de la marca en lugar del punto ── */
.plan-features li::before {
  width: 12px;
  height: 12px;
  border-radius: 0;
  margin-top: 2px;
  background: url(check.svg) center / contain no-repeat;
}

/* ── Llamado final: símbolo arriba y patrón que se desvanece hacia el centro ── */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(patron-marcas.svg) 0 0 / 200px 200px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 50% 50%, transparent 40%, #000 85%);
  mask-image: radial-gradient(ellipse 55% 75% at 50% 50%, transparent 40%, #000 85%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-simbolo { display: block; width: 72px; height: 72px; margin: 0 auto 1.75rem; }

/* ── Pie: logo completo con descriptor ── */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
}
.footer-logo img { display: block; height: 30px; width: auto; }
.footer-logo .descriptor {
  padding-left: 14px;
  border-left: 0.5px solid var(--border, rgba(255, 255, 255, 0.12));
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text3, rgba(240, 237, 230, 0.55));
}
@media (max-width: 700px) {
  .footer-logo { flex-direction: column; gap: 10px; }
  .footer-logo .descriptor { padding-left: 0; border-left: 0; }
}

/* ═══ Páginas internas (herramientas, noticias, servicios, privacidad) ═══ */

/* Renglones de libro contable detrás del encabezado, desvanecidos hacia abajo */
.pagina-interna::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(240, 237, 230, 0.06) 31px, rgba(240, 237, 230, 0.06) 32px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* Recuadro de llamado: símbolo arriba y patrón de marcas hacia los bordes */
.cta-box { position: relative; overflow: hidden; }
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(patron-marcas.svg) 0 0 / 200px 200px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, transparent 45%, #000 90%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, transparent 45%, #000 90%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box .cta-simbolo { width: 56px; height: 56px; margin-bottom: 1.25rem; }

/* Íconos de línea (reemplazan a los emojis): toman el color del contenedor */
.i {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}
.i-check { width: 0.85em; height: 0.85em; fill: currentColor; vertical-align: -0.05em; margin-right: 0.4em; }
.punto .ico,
.esc .esc-ico,
.tool-card .tool-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(46, 201, 154, 0.1);
  color: var(--accent, #2EC99A);
}
.callout > span:first-child,
.confirmado .ico,
.clave .ico { color: var(--accent, #2EC99A); }
.aviso .ico,
.alerta .ico,
.callout.aviso > span:first-child { color: var(--warn, #F0A93B); }
.verdict .icon .i { width: 44px; height: 44px; stroke-width: 1.5; }
.verdict.si .icon,
.verdict.duda .icon { color: var(--warn, #F0A93B); }
.verdict.no .icon { color: var(--accent, #2EC99A); }
.btn .i, .btn-primario .i { margin-right: 4px; }

/* ═══ Accesibilidad (compartida por todas las páginas) ═══ */

/* Foco visible con teclado. Va con !important porque varios campos quitan el
   outline en :focus para usar solo el cambio de borde, que es muy tenue. */
:focus-visible {
  outline: 2px solid var(--accent, #2EC99A) !important;
  outline-offset: 3px;
}

/* Texto solo para lectores de pantalla */
.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;
}

/* "Saltar al contenido": primer elemento enfocable, aparece solo con teclado */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--accent, #2EC99A);
  color: #0B1F2E;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ── Pie legal: datos del responsable y enlaces a las políticas ── */
.footer-datos {
  margin-top: 1.1rem;
  font-size: 12px;
  font-style: normal;
  line-height: 1.8;
  color: var(--text3, rgba(240, 237, 230, 0.55));
}
.footer-datos a,
.footer-legal a { color: var(--text2, rgba(240, 237, 230, 0.65)); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 0.9rem;
  font-size: 12.5px;
}
.footer-copy {
  margin: 0.9rem auto 0;
  max-width: 560px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text3, rgba(240, 237, 230, 0.55));
}
@media (hover: hover) and (pointer: fine) {
  .footer-datos a:hover,
  .footer-legal a:hover { color: var(--accent, #2EC99A); }
}

/* ── Aviso de consentimiento de publicidad (solo existe si AdSense se activa) ── */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: #132F44;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #F0EDE6;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
}
.consent p { margin: 0 0 0.85rem; color: rgba(240, 237, 230, 0.8); font-size: 13.5px; }
.consent a { color: var(--accent, #2EC99A); }
.consent-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.consent button {
  flex: 1 1 140px;
  padding: 10px 16px;
  border-radius: 30px;
  font: 600 14px 'DM Sans', sans-serif;
  cursor: pointer;
  border: 1px solid var(--accent, #2EC99A);
}
/* Aceptar y rechazar con el mismo peso visual: ninguna opción empuja a la otra */
.consent button { background: transparent; color: #F0EDE6; }

@media (prefers-reduced-motion: reduce) {
  .hero-marca { opacity: 1 !important; }
}

/* En la portada el pie es una fila flexible: el bloque legal baja a su propia línea */
.footer-legal-bloque {
  flex-basis: 100%;
  text-align: center;
  margin-top: 0.4rem;
  padding-top: 1.1rem;
  border-top: 0.5px solid var(--border, rgba(255, 255, 255, 0.08));
}
@media print { .skip-link, .consent { display: none !important; } }
