/* =====================================================================
   NEURA — Estilos de las secciones nuevas (planes, blog, empresas, legal).
   Se apoya en las variables de styles-neura-brand-20260920.css.
   ===================================================================== */

/* ---------- Utilidades compartidas ---------- */
.interna { padding-top: 10px; }
.interna-titulo { font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; }
.interna-titulo .blue, .section-heading h2 .blue, .section-heading h1 .blue { color: var(--blue); }
.section-heading h1 { font-size: clamp(2.7rem, 4.1vw, 3.75rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 500; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); font-size: 14px; font-weight: 550; }
.text-link svg { width: 18px; height: 18px; transition: transform .25s; }
.text-link:hover svg { transform: translateX(4px); }
.text-link--atras:hover svg { transform: translateX(-4px); }
.button-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.button-ghost:hover { background: white; border-color: var(--blue); }
.cta-actions--izq { justify-content: flex-start; }
.desktop-nav a[aria-current="page"] { color: var(--blue); }

/* ---------- Planes ---------- */
.plans { padding-top: 60px; }
.plan-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.plan-grid--1 { grid-template-columns: minmax(0, 440px); }
.plan-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.plan-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-card {
  display: flex; flex-direction: column; padding: 34px 30px 30px;
  border: 1px solid rgba(1, 62, 142, .08); border-radius: 22px;
  background: rgba(255, 255, 255, .62); backdrop-filter: blur(16px);
}
.plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.plan-sello { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 30px; background: var(--ice); color: var(--blue); white-space: nowrap; }
.plan-descripcion { margin-top: 12px; font-size: 14px; line-height: 1.75; color: var(--muted); min-height: 3.5em; }
.plan-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 28px 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.plan-precio-desde { width: 100%; font-size: 12px; color: var(--muted); }
.plan-precio-valor { font-size: 2.6rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-precio-texto { font-size: 2rem; }
.plan-precio-periodo { font-size: 14px; color: var(--muted); }
.plan-beneficios { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; flex: 1; align-content: start; }
.plan-beneficios li { display: flex; gap: 11px; font-size: 14px; line-height: 1.6; color: #333; }
.plan-beneficios svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--blue); stroke-width: 2; }
.plan-cta { width: 100%; justify-content: space-between; }

/* El plan destacado toma el azul de la marca: es el único bloque lleno de color de la sección. */
.plan-card--destacado { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 18px 50px rgba(1, 62, 142, .22); }
.plan-card--destacado .plan-descripcion, .plan-card--destacado .plan-precio-periodo, .plan-card--destacado .plan-precio-desde { color: #c9dcf3; }
.plan-card--destacado .plan-precio-valor { color: white; }
.plan-card--destacado .plan-precio { border-color: rgba(197, 228, 249, .25); }
.plan-card--destacado .plan-beneficios li { color: #eaf3fd; }
.plan-card--destacado .plan-beneficios svg { color: var(--sky); }
.plan-card--destacado .plan-sello { background: rgba(255, 255, 255, .14); color: white; }
.plan-card--destacado .button:focus-visible { outline-color: var(--ice); }

/* ---------- Blog: tarjetas ---------- */
.blog-preview { padding-top: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-img { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--soft); border: 1px solid rgba(1, 62, 142, .06); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.post-card-img .post-card-placeholder { object-fit: contain; padding: 22%; opacity: .35; mix-blend-mode: multiply; }
.post-card-link:hover .post-card-img img { transform: scale(1.03); }
.post-card-body { padding: 20px 4px 0; }
.post-card h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.025em; font-weight: 600; margin: 10px 0 10px; }
.post-card-link:hover h3 { color: var(--blue); }
.post-extracto { font-size: 14px; line-height: 1.75; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12px; color: #6d7582; }
.post-meta > :first-child:not(time) { color: var(--blue); font-weight: 600; }
.post-card--grande { grid-column: span 2; }
.post-card--grande .post-card-link { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.post-card--grande .post-card-body { padding: 0; }
.post-card--grande h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.2; letter-spacing: -.04em; font-weight: 550; }
.blog-preview-more { margin-top: 44px; text-align: center; }

/* ---------- Blog: índice ---------- */
.blog-index .section-heading { margin-bottom: 36px; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.chip-nav a { padding: 9px 16px; border-radius: 30px; border: 1px solid var(--line); font-size: 13px; color: #4b5563; background: rgba(255, 255, 255, .6); }
.chip-nav a:hover { border-color: var(--blue); color: var(--blue); }
.chip-nav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: white; }
.paginacion { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 60px; font-size: 13px; color: var(--muted); }
.paginacion a { color: var(--blue); font-weight: 600; padding: 10px 18px; border: 1px solid var(--line); border-radius: 30px; }
.vacio { padding: 50px 0; }
.vacio p { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 20px 0 28px; max-width: 520px; }
.vacio--pagina { min-height: 55vh; }

/* ---------- Artículo ---------- */
.articulo { max-width: 760px; margin: 0 auto; padding: 50px 24px 40px; }
.articulo-cabecera { margin-bottom: 40px; }
.articulo-cabecera .post-meta { margin: 36px 0 20px; font-size: 13px; }
.articulo-cabecera h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 550; }
.articulo-extracto { margin-top: 22px; font-size: 19px; line-height: 1.7; color: var(--muted); }
.articulo-portada { margin: 0 -40px 50px; border-radius: 22px; overflow: hidden; }
.articulo-portada img { width: 100%; height: auto; display: block; }

.prosa { font-size: 17.5px; line-height: 1.85; color: #262a30; }
.prosa > * + * { margin-top: 1.25em; }
.prosa h2 { font-size: 1.65em; line-height: 1.25; letter-spacing: -.035em; font-weight: 600; margin-top: 2em; color: var(--ink); }
.prosa h3 { font-size: 1.3em; line-height: 1.35; letter-spacing: -.02em; font-weight: 600; margin-top: 1.7em; }
.prosa h4 { font-size: 1.05em; font-weight: 700; margin-top: 1.5em; }
.prosa a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.prosa strong { font-weight: 650; color: var(--ink); }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: .45em; }
.prosa li::marker { color: var(--blue); }
.prosa blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--sky); font-size: 1.12em; color: var(--blue); }
.prosa img { max-width: 100%; height: auto; border-radius: 16px; display: block; }
.prosa figure { margin-left: 0; margin-right: 0; }
.prosa figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.prosa pre { background: var(--soft); padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.prosa hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prosa .ql-align-center { text-align: center; }
.prosa .ql-align-right { text-align: right; }
.prosa .ql-align-justify { text-align: justify; }
.prosa .ql-indent-1 { padding-left: 2em; }
.prosa .ql-indent-2 { padding-left: 4em; }

.articulo-cierre { margin-top: 64px; padding: 34px; border-radius: 22px; background: var(--soft); border: 1px solid rgba(1, 62, 142, .06); }
.articulo-cierre p { font-size: 17px; line-height: 1.7; margin-bottom: 22px; max-width: 520px; }
.articulo-cierre .cta-actions { justify-content: flex-start; }
.relacionados { padding-top: 40px; }
.relacionados-titulo { font-size: 28px; letter-spacing: -.035em; font-weight: 550; margin-bottom: 30px; }
.articulo--legal { padding-top: 70px; padding-bottom: 90px; }
.articulo--legal .prosa h2:first-child { margin-top: 0; font-size: 2.2em; }

/* ---------- Empresas y formularios ---------- */
.empresas { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.empresas-intro { position: sticky; top: 40px; }
.empresas-texto { margin-top: 26px; font-size: 17px; line-height: 1.85; color: var(--muted); max-width: 470px; }
.empresas-beneficios { margin-top: 34px; }
.form-card { padding: 38px; border-radius: 24px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(1, 62, 142, .08); backdrop-filter: blur(16px); scroll-margin-top: 30px; }
.form-titulo { font-size: 26px; letter-spacing: -.035em; font-weight: 600; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-bottom: 28px; }
.campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.campo--ancho { grid-column: 1 / -1; }
.campo label, .campo legend { font-size: 13px; font-weight: 600; color: #2b3038; padding: 0; }
.campo legend { margin-bottom: 8px; }
.opcional { font-weight: 450; color: #8a919c; margin-left: 4px; }
.campo input, .campo select, .campo textarea {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(1, 62, 142, .16); background: white;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(101, 176, 233, .22); }
.campo [aria-invalid="true"] { border-color: #b3261e; }
.campo-error { font-size: 12.5px; color: #b3261e; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 450 !important; line-height: 1.5; cursor: pointer; }
.opcion input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blue); padding: 0; }
.opcion--legal a { color: var(--blue); text-decoration: underline; }
.form-alerta { padding: 13px 16px; border-radius: 12px; background: #fdecea; color: #8c1d18; font-size: 14px; margin-bottom: 22px; }
.form-exito { text-align: left; padding: 10px 0; }
.form-exito > svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ice); color: var(--blue); stroke-width: 2.2; }
.form-exito h2 { font-size: 28px; letter-spacing: -.035em; margin: 22px 0 12px; }
.form-exito p { color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie de página ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: #4d5561; }
.footer-links a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plan-grid, .plan-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empresas { grid-template-columns: 1fr; gap: 40px; }
  .empresas-intro { position: static; }
}
@media (max-width: 760px) {
  .plan-grid, .plan-grid--2, .plan-grid--4 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; gap: 36px; }
  .post-card--grande { grid-column: auto; }
  .post-card--grande .post-card-link { display: flex; }
  .post-card--grande .post-card-body { padding: 20px 4px 0; }
  .articulo { padding-top: 30px; }
  .articulo-portada { margin: 0 -24px 36px; border-radius: 0; }
  .prosa { font-size: 17px; }
  .form-card { padding: 26px 20px; border-radius: 20px; }
  .form-grid, .opciones { grid-template-columns: 1fr; }
  .articulo-cierre { padding: 26px 22px; }
  .footer-links { order: 2; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card-img img, .text-link svg { transition: none; }
}
