html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

*[id] {
  scroll-margin-top: 96px;
}

/* Header brand (logo + subtitle stacked) */
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}

.logo-text-sub {
  margin-top: 2px;
}

:root {
  --primary: #990000;
  --primary-dark: #7a0000;
  --accent: #111827;
  --bg: #f5f3f1;
  --text-main: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border-soft: #e5e7eb;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #f5e0df 0, #ffffff 45%, #f7f5f3 100%);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo-img {
  height: 90px;
  width: auto;
}

.logo-text-main {
  font-weight: 700;
  font-size: 1rem;
}

.logo-text-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(153, 0, 0, 0.45);
  border: none;
  cursor: pointer;
}

.btn-nav:hover {
  background: var(--primary-dark);
}

/* Hero */

.hero {
  padding: 3.2rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(248, 244, 242, 0.9);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hero-eyebrow i {
  font-size: 0.95rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.7rem;
}

.tag-pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-primary {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(153, 0, 0, 0.5);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Hero card */

.hero-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-card-title {
  font-weight: 600;
}

.hero-card-sub {
  color: var(--text-muted);
}

.hero-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(153, 0, 0, 0.08);
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1;
  flex-direction: column;
}

.hero-image {
  border-radius: 1.2rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f3f4f6;
  align-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  align-content: center;
}

.hero-card-list {
  list-style: none;
  margin-bottom: 0.8rem;
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-card-list li::before {
  content: "✔";
  font-size: 0.8rem;
  color: #16a34a;
}

.hero-card-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Secciones genéricas */

section {
  padding: 3.5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 34rem;
  margin: 0 auto;
}

/* Por qué IA pintura */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 2.5rem;
  align-items: center;
}

.why-visual {
  background: #fbe6e5;
  border-radius: 1.4rem;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.why-node-center {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(135deg, #990000, #b91c1c);
  margin: 0 auto;
  position: relative;
  box-shadow: 0 16px 40px rgba(153, 0, 0, 0.5);
}

.why-node-center::after {
  content: "IA";
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

.why-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #990000, transparent);
  transform-origin: left center;
}

.why-line:nth-child(1) {
  width: 140px;
  top: 35%;
  left: 50%;
  transform: rotate(8deg);
}

.why-line:nth-child(2) {
  width: 120px;
  top: 52%;
  left: 50%;
  transform: rotate(-12deg);
}

.why-line:nth-child(3) {
  width: 140px;
  top: 50%;
  right: 50%;
  transform: rotate(180deg);
  background: linear-gradient(90deg, transparent, #b91c1c);
}

.why-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.why-intro {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0.7rem;
}

.why-list {
  list-style: none;
  margin-top: 0.3rem;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
}

.why-list li span.icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.why-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Beneficios diferenciadores */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.benefit-card {
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--primary-dark);
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Dirigido a */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audience-item {
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  padding: 0.95rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.audience-alert {
  margin-top: 1.3rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 0.88rem;
  color: #7f1d1d;
  text-align: center;
  font-weight: 500;
}

/* Programa */

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.program-card {
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.program-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.program-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.program-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.program-list {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.program-list li {
  margin-bottom: 0.4rem;
}

/* Modalidades */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 24px 60px rgba(153, 0, 0, 0.25);
  position: relative;
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pricing-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.pricing-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.pricing-from {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.pricing-list {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.pricing-list li {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.pricing-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: 700;
}

.pricing-footer {
  margin-top: auto;
}

.btn-pricing {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fee2e2;
  color: var(--primary-dark);
}

.btn-pricing:hover {
  background: #fecaca;
}

.btn-pricing.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-pricing.primary:hover {
  background: var(--primary-dark);
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* Contacto (sin formulario) */

.contact-section {
  background: #f7f5f3;
  border-top: 1px solid #e5e7eb;
  padding: 3.2rem 0 3.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-heading h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.contact-heading p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  max-width: 26rem;
}

.contact-bullets {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.contact-bullets li {
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.contact-bullets li::before {
  content: "✓";
  color: #16a34a;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.contact-small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-card {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.95);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bloque CTA del chat dentro de la tarjeta */
.contact-chat-cta {
  width: 100%;
  text-align: center;
  color: var(--text-main);
}

.contact-chat-cta i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.contact-chat-cta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-chat-cta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Footer */

footer {
  background: #1f2933;
  color: #e5e7eb;
  padding: 2rem 0 1.3rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  font-size: 0.86rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-text {
  color: #cbd5e1;
  font-size: 0.83rem;
}

.footer-links {
  list-style: none;
  color: #cbd5e1;
  font-size: 0.83rem;
}

.footer-links li {
  margin-bottom: 0.22rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.footer-bottom a {
  color: #e5e7eb;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive */

@media (max-width: 960px) {

  .hero-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid,
  .program-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    gap: 2rem;
  }

  .benefits-grid,
  .audience-grid,
  .program-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  header {
    position: static;
  }

  .contact-section {
    padding-top: 2.6rem;
  }
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  color: var(--text-muted);
}

/* Responsive FAQ */

@media (max-width: 720px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* === AEO/SEO content blocks === */

.comparison-wrap {
  margin-top: 1rem;
}

.comparison-card {
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.comparison-table thead th {
  font-size: 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.comparison-table tbody td {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.h3-inline {
  margin: 0 0 0.6rem 0;
  font-size: 1.05rem;
}

.small-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.7rem;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.fit-card {
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.fit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.fit-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.fit-card ul li {
  margin: 0.35rem 0;
}

.fit-card.nofit {
  border-color: rgba(0, 0, 0, 0.12);
}

.pricing-summary {
  margin-top: 1.2rem;
  /* overflow-x: auto;  Removed to prefer stacking */
}

@media (max-width: 720px) {
  .fit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Universal Card-based Layout for Tables on Mobile */
  .comparison-table {
    display: block;
    width: 100%;
    border: none !important;
    background: transparent !important;
    min-width: 0 !important;
    /* Override any previous min-width */
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tr {
    margin-bottom: 2rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: 0;
  }

  .comparison-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
    /* Centered content as requested */
    display: block;
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
  }

  /* Specific highlights for pricing rows */
  .pricing-summary .comparison-table td[data-label="Precio base"] {
    background: rgba(153, 0, 0, 0.03);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
  }

  .comparison-card {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow-x: visible !important;
    /* No more horizontal scroll */
  }

  .comparison-wrap,
  .pricing-summary {
    overflow-x: visible !important;
  }
}

/* === Visual polish for AEO blocks (Ajustado para no romper mobile) === */
.comparison-wrap {
  margin-top: 1.25rem;
}

.comparison-card {
  padding: 1.25rem 1.25rem;
}

.comparison-table {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  overflow: hidden;
}

.comparison-table thead th {
  background: rgba(140, 0, 0, 0.045);
  color: var(--text);
  font-weight: 700;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--border-soft);
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

@media (min-width: 721px) {

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 38%;
    color: var(--text);
    font-weight: 600;
  }
}

.comparison-table tbody td {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fit-grid {
  margin-top: 1.5rem;
  align-items: stretch;
}

.fit-card {
  min-height: 100%;
}

.fit-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fit-card h3::before {
  content: none !important;
  display: none !important;
}

.fit-card.nofit {
  background: rgba(140, 0, 0, 0.03);
  border-color: rgba(140, 0, 0, 0.18);
}

.fit-card ul {
  padding-left: 1.15rem;
}

.fit-card ul li {
  margin: 0.45rem 0;
  line-height: 1.45;
}

.audience-alert {
  margin-top: 1.35rem;
  padding: 1rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(140, 0, 0, 0.04);
  border: 1px solid rgba(140, 0, 0, 0.12);
  color: var(--text-muted);
}

html.no-scroll {
  overflow: hidden;
}

/* Cookie banner + modal (RGPD/ePrivacy) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #fff;
  border-color: var(--border-soft);
  color: var(--text-main);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.btn-secondary:hover {
  border-color: rgba(0, 0, 0, .18);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .10);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
}

.cookie-banner__text {
  font-size: .95rem;
  color: var(--text-main);
}

.cookie-banner__text a {
  color: var(--primary);
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width:820px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.cookie-modal.is-open {
  display: block;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .55);
}

.cookie-modal__panel {
  position: relative;
  max-width: 640px;
  width: calc(100% - 28px);
  margin: min(10vh, 72px) auto 0;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(127, 29, 29, .06), rgba(255, 255, 255, 0));
}

.cookie-modal__title {
  font-weight: 900;
  color: var(--text-main);
}

.cookie-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal__close:hover {
  border-color: rgba(0, 0, 0, .18);
}

.cookie-modal__body {
  padding: 16px 18px;
  color: var(--text);
}

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  margin-top: 12px;
  background: rgba(255, 255, 255, .6);
}

.cookie-toggle input {
  margin-top: 3px;
}

.cookie-toggle strong {
  color: var(--text-main);
}

.cookie-toggle small {
  display: block;
  color: var(--text-muted);
  margin-top: 2px;
}

.cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .55);
}

.cookie-modal__footer .btn {
  white-space: nowrap;
}

@media (max-width:520px) {
  .cookie-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal__footer .btn {
    width: 100%;
  }
}

/* AEO v4 - small UI refinements */
.subtle-separator {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 18px 0 26px;
  border-radius: 999px;
}

.why-node-center-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 14px auto 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* === Zoho SalesIQ: asegurar visibilidad del widget sobre banners/modales === */
#zsiq_float,
.zsiq_float,
iframe[id*="zsiq"],
div[id*="zsiq"] {
  z-index: 2147483647 !important;
}

.fit-icon {
  margin-right: 0.5rem;
  font-size: 1.1em;
}

.fit-icon-ok {
  color: #2e7d32;
}

.fit-icon-no {
  color: #b71c1c;
}

/* --- Normalizar altura de tarjetas con y sin imagen --- */

.audience-grid,
.benefits-grid {
  align-items: start;
}

.audience-card,
.benefit-card,
.fit-card {
  height: auto;
  min-height: unset;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.audience-card img,
.benefit-card img {
  max-height: 160px;
  object-fit: cover;
  width: 100%;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.audience-card.has-image,
.benefit-card.has-image {
  max-height: 260px;
  overflow: hidden;
}

/* === COMPACT WHY GRID OVERRIDE (v2) === */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.why-visual {
  padding: 0;
  background: none;
  border-radius: var(--radius, 1.4rem);
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15, 23, 42, 0.08));
}

.why-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.why-grid .benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.why-grid .benefit-card {
  height: auto;
  min-height: unset;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-grid .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .why-grid .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Botón flotante de configuración de cookies ===== */
.cookie-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147483646;
  /* por debajo del chat (2147483647) pero por encima del resto */
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.cookie-fab:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.cookie-fab i {
  font-size: 1.05rem;
}

/* Ajuste para que cookie banner no tape el FAB en móviles */
@media (max-width: 820px) {
  .cookie-fab {
    bottom: 86px;
    /* deja hueco cuando aparece el banner */
  }
}