/* Shared controls and functional extensions of the existing Faralion system. */
:root {
  --control-bosque: #406a52;
  --control-bosque-hover: #355942;
  --verde-texto: var(--control-bosque);
}
body, body.internal-page { min-width: 0; }
.boton--primario, .btn-primary,
.case-page .caso-cierre .btn-primary {
  background: var(--control-bosque);
  color: var(--niebla);
}
.boton--primario:hover, .btn-primary:hover,
.case-page .caso-cierre .btn-primary:hover {
  background: var(--control-bosque-hover);
  color: var(--niebla);
  opacity: 1;
}
.boton:disabled { cursor: wait; transform: none; }
.offer-card:hover .boton, .offer-card:focus-within .boton { filter: none; }
.boton:focus-visible, .btn:focus-visible, a:focus-visible,
button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rio);
  outline-offset: 4px;
}
.nav-wide-label { display: inline; }
.nav-compact-label { display: none; }
.site-header .main-nav > a:not(.nav-cta) { min-height: 44px; display: inline-flex; align-items: center; }
.site-header .main-nav > a.nav-home { display: none; }
.site-header .main-nav .nav-clients { padding-left: 1.25rem; border-left: 1px solid currentColor; }
.site-footer a { min-height: 32px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.site-footer .footer-grid > * { min-width: 0; }
.site-footer .footer-brand .logo { min-height: 44px; }
.footer-origin { color: #b9beba; }
.section--dark .section-heading > p:not(.eyebrow), .section--dark .section-note { color: #c7cac6; }
.section-note { margin: 0; color: var(--roca); font-size: 1rem; line-height: 1.5; }
.section-actions { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.section-actions .section-note { max-width: 52ch; }
.section-actions .boton { flex-shrink: 0; }
.audience-grid--four .audience-card:nth-child(odd) { padding-inline: 0 2rem; border-left: 0; }
.audience-grid--four .audience-card:nth-child(-n+2) { border-bottom: 1px solid var(--piedra); }
.section--dark .audience-grid,
.section--dark .audience-card,
.section--dark .audience-grid--four .audience-card { border-color: rgba(216, 211, 202, .22); }
.section--dark .audience-card p { color: #c7cac6; }
.readiness { margin-top: 2.5rem; }
.readiness h3 { margin-bottom: 1.25rem; }
.readiness .section-note { max-width: 82ch; margin-top: 1.5rem; }
.text-list { padding-left: 1.15rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 3rem; color: var(--roca); }
.text-list li { padding-left: .3rem; }
.text-list li::marker { color: var(--control-bosque); }
.plan-tax-note { margin: 0 0 1rem; text-align: center; color: #c7cac6; font-size: 1rem; }
.plan-access { margin: 0 0 2rem; color: #c7cac6; }
.plan-system { scroll-margin-top: calc(var(--header-h) + 1rem); }
.price-wrap small { display: block; margin-top: .6rem; font-size: .875rem; line-height: 1.5; }
.scope-details { min-width: 0; }
.scope-details summary, .article-index summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-weight: 700; }
.scope-details summary::-webkit-details-marker, .article-index summary::-webkit-details-marker { display: none; }
.scope-details summary::after, .article-index summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; }
.scope-details[open] summary::after, .article-index[open] summary::after { content: "−"; }
.scope-details .offer-spec { margin-top: 0; }
.recommended { background: var(--control-bosque); }
.plan-comparison { display: none; }
.plan-guidance { margin: 2rem auto 0; max-width: 78ch; }
.plan-guidance > p:first-child { margin: 0 0 .5rem; color: var(--niebla); }
.plan-extras { margin: 1.5rem 0 0; color: #c7cac6; font-size: 1rem; }
#contactoFormulario { scroll-margin-top: calc(var(--header-h) + 1rem); }
#contactForm { gap: 1rem; }
#contactForm .form-field { display: grid; align-content: start; gap: .4rem; min-width: 0; }
#contactForm .form-field--full, #contactForm .form-note, #contactForm .contact-selection { grid-column: 1 / -1; }
#contactForm label { margin: 0; font-size: 1rem; }
#contactForm .form-note { margin: .25rem 0 0; color: #c7cac6; font-size: .9rem; }
#contactForm .form-error { color: #e1a67a; font-size: .9rem; line-height: 1.4; }
#contactForm [aria-invalid="true"] { border-color: #e1a67a; }
#contactForm small { color: #c7cac6; line-height: 1.45; }
.contact-selection { margin: .5rem 0 0; padding: 1rem; border: 1px solid rgba(216, 211, 202, .35); border-radius: .5rem; background: rgba(244, 242, 237, .06); font-size: 1rem; }
.contact-email { overflow-wrap: anywhere; }
.check input { accent-color: var(--control-bosque); }
.form-status { font-size: 1rem; }
.blog-page .breadcrumbs a, .blog-page .blog-hero .eyebrow,
.blog-index-card > span, .blog-index-card strong,
.article-body h3, .blog-link, .credential-link { color: var(--control-bosque); }
.case-page .real-tag--suelta, .case-page .concept-tag--suelta,
.case-tag { background: var(--control-bosque); }
.article-index { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: .5rem 1.35rem; border-radius: var(--radius-m); background: #17271e; color: var(--niebla); }
.article-index summary { color: #c7d7cc; }
.article-index .article-nav { position: static; padding: 0 0 .8rem; border-radius: 0; }
.article-index .article-nav a { padding: .65rem 0; font-size: 1rem; line-height: 1.4; }
.article-page .blog-hero h1 { max-width: 26ch; font-size: clamp(2.125rem, 4.4vw, 3.5rem); line-height: 1.12; letter-spacing: -.045em; }
.article-page .answer { max-width: 72ch; margin: 0 0 2.5rem; color: var(--basalto); font-size: 1.2rem; line-height: 1.6; }
.article-body { max-width: 72ch; }
.article-body h2 { max-width: 26ch; line-height: 1.15; font-size: clamp(1.75rem, 2.5vw, 2.4rem); }
.article-body section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.case-page .caso-head h1 { font-size: clamp(2.75rem, 5.4vw, 4.5rem); line-height: 1.08; }
.case-page .caso-cierre h2 { max-width: 21ch; font-size: var(--t-h1); line-height: 1.1; }
@media (max-width: 1100px) {
  .site-header .main-nav > a.nav-home { display: flex; }
  .nav-wide-label { display: none; }
  .nav-compact-label { display: inline; }
  .site-header .main-nav .nav-clients { padding-left: 0; margin-top: 1.5rem; border-left: 0; }
  .site-header .main-nav .nav-cta { flex-shrink: 0; margin-top: 1.5rem; }
  .site-header .main-nav > a:not(.nav-cta) { display: flex; min-height: 56px; }
}
@media (max-width: 720px) {
  .faq-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .faq-categories button { min-width: 0; padding-inline: .6rem; font-size: 1rem; }
  .contenedor, .blog-page .blog-shell,
  .case-page .caso > .wrap, .legal-page .legal > .wrap { width: calc(100% - 2.5rem); }
  .blog-page .blog-shell, .case-page .caso > .wrap,
  .legal-page .legal > .wrap { padding-inline: 0; }
  .hero { min-height: 0; padding: 7rem 0 5.5rem; }
  .hero h1 { font-size: clamp(2.125rem, 9.5vw, 2.75rem); line-height: 1.12; }
  .hero .eyebrow { max-width: 42ch; font-size: .7rem; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-note { margin-top: 1rem; font-size: 1rem; }
  .section-heading h2, .audience .section-heading h2,
  .contact-copy h2 { font-size: clamp(1.875rem, 8.1vw, 2.4rem); line-height: 1.12; }
  .section-actions { align-items: stretch; flex-direction: column; }
  .audience-grid--four .audience-card,
  .audience-grid--four .audience-card:nth-child(odd) { padding: 1.5rem 0; border-left: 0; border-top: 0; border-bottom: 1px solid rgba(216, 211, 202, .22); }
  .audience-grid--four .audience-card:last-child { border-bottom: 0; }
  .text-list { grid-template-columns: 1fr; gap: .7rem; }
  .plan-tab { font-size: .78rem; }
  .modo { display: flex; width: 100%; }
  .modo-opcion { flex: 1; padding-inline: .55rem; font-size: 1rem; }
  .offer-spec li { font-size: 1rem; }
  .offer-head { margin-bottom: 1rem; }
  .offer-who { font-size: 1rem; }
  .offer-card .precio { font-size: clamp(1.875rem, 8vw, 2.75rem); }
  .offer-card .boton { width: 100%; }
  .scope-details { margin-block: .25rem .75rem; border-bottom: 1px solid rgba(216, 211, 202, .18); }
  .media-band { margin-top: 0; }
  .plan-comparison { display: block; margin-top: 2rem; }
  .plan-comparison h3 { margin-bottom: .75rem; }
  .plan-comparison dl { margin: 0; border-top: 1px solid rgba(216, 211, 202, .22); }
  .plan-comparison dl > div { padding: .8rem 0; border-bottom: 1px solid rgba(216, 211, 202, .22); }
  .plan-comparison dt { color: #a9c2af; font-weight: 700; }
  .plan-comparison dd { margin: .2rem 0 0; color: #c7cac6; }
  .plan-comparison > p { margin-top: .75rem; color: #c7cac6; font-size: 1rem; }
  .plan-guidance { margin-top: 2rem; }
  .leader-card { min-height: 0; }
  .leader-card h3 { margin-top: 3rem; }
  .article-index { position: static; }
  .article-page .blog-hero h1 { font-size: clamp(2.125rem, 9.5vw, 2.75rem); }
  .article-page .answer { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div:nth-child(3) { grid-column: 1 / -1; }
}
