/* =====================================================
   MEJOR GESTORÍA ONLINE — CSS Principal
   ===================================================== */

/* 1. Variables & Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:         #1e40af;
  --blue-dark:    #1e3a8a;
  --blue-mid:     #2563eb;
  --blue-light:   #eff6ff;
  --blue-pale:    #dbeafe;
  --green:        #059669;
  --green-dark:   #065f46;
  --green-light:  #ecfdf5;
  --amber:        #d97706;
  --amber-dark:   #92400e;
  --amber-light:  #fffbeb;
  --red:          #dc2626;
  --red-light:    #fef2f2;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-300:     #d1d5db;
  --gray-400:     #9ca3af;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-800:     #1f2937;
  --gray-900:     #111827;
  --white:        #ffffff;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-xl:    0 20px 40px -10px rgba(0,0,0,.15);
  --transition:   0.2s ease;
  --max-w:        1140px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .3rem; }
button { cursor: pointer; font-family: var(--font); }

/* 2. Layout helpers */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section      { padding: 4.5rem 0; }
.section--sm  { padding: 3rem 0; }
.section--alt { background: var(--gray-50); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media(max-width:768px){ .grid-2,.grid-3{ grid-template-columns:1fr; } }

/* 3. Typography */
h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); font-weight: 900; line-height: 1.15; color: var(--gray-900); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.25; color: var(--gray-900); letter-spacing: -.01em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.35; color: var(--gray-900); margin-bottom: .75rem; }
h4 { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: .5rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }
strong { color: var(--gray-900); font-weight: 700; }
.lead { font-size: 1.1rem; color: var(--gray-600); line-height: 1.75; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .8rem; }
.text-muted { color: var(--gray-500); }
.text-green { color: var(--green); }
.text-blue  { color: var(--blue); }
.text-amber { color: var(--amber); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* 4. Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem;
  max-width: var(--max-w); margin: 0 auto;
}
.header__logo { display: flex; align-items: center; gap: .5rem; }
.header__logo-icon {
  width: 36px; height: 36px; background: #f59e0b;
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header__logo-text { font-size: 1rem; font-weight: 900; color: var(--gray-900); letter-spacing: -.01em; }
.header__logo-text em { font-style: normal; color: #f59e0b; }
.footer__logo-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.footer__logo-icon {
  width: 28px; height: 28px; background: #f59e0b; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer__logo-text { font-size: .95rem; font-weight: 900; color: white; margin-bottom: 0; }
.footer__logo-text em { font-style: normal; color: #f59e0b; }
.author-avatar svg { display: block; }
.header__right { display: flex; align-items: center; gap: 1.25rem; }
.header__phone {
  font-size: .8rem; color: var(--gray-600);
  display: flex; align-items: center; gap: .375rem;
}
.header__updated {
  font-size: .75rem; color: var(--gray-400);
  background: var(--gray-100); padding: .25rem .6rem; border-radius: 100px;
}
@media(max-width:640px){ .header__phone{ display:none; } }
@media(max-width:380px){ .header__updated{ font-size:.68rem; padding:.2rem .4rem; } }

/* 5. Hero */
.hero {
  background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 40%, #1e40af 70%, #1d4ed8 100%);
  color: white;
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 360px; gap: 3rem;
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem;
  align-items: start;
}
@media(max-width:900px){ .hero__inner{ grid-template-columns:1fr; } }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px; padding: .35rem 1rem;
  font-size: .78rem; font-weight: 700; color: #93c5fd;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { color: white; margin-bottom: 1.25rem; }
.hero h1 .accent { color: #fbbf24; }
.hero__lead { color: #bfdbfe; font-size: 1.05rem; line-height: 1.75; margin-bottom: 2rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.hero__stat { text-align: center; min-width: 80px; }
.hero__stat-num { font-size: 1.6rem; font-weight: 900; color: #fbbf24; display: block; line-height: 1; }
.hero__stat-label { font-size: .72rem; color: #93c5fd; margin-top: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* Winner card in hero */
.winner-card {
  background: white; border-radius: var(--radius-xl); padding: 1.75rem;
  color: var(--gray-900); box-shadow: var(--shadow-xl);
  border: 2px solid #fbbf24;
}
.winner-card__crown {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .875rem; border-radius: 100px;
  display: inline-flex; align-items: center; gap: .375rem;
  margin-bottom: 1.25rem;
}
.winner-card__logo-row {
  display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem;
}
.winner-card__logo {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: .95rem;
}
.winner-card__name { font-size: 1.15rem; font-weight: 900; color: var(--gray-900); line-height: 1.2; }
.winner-card__type { font-size: .8rem; color: var(--gray-500); margin-top: .125rem; }
.winner-card__score-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--gray-50); border-radius: var(--radius);
  padding: .875rem 1rem; margin-bottom: 1.25rem;
}
.score-big { font-size: 2.25rem; font-weight: 900; color: var(--green); line-height: 1; }
.score-desc { font-size: .8rem; color: var(--gray-500); }
.score-desc strong { display: block; color: var(--gray-800); font-size: .875rem; }
.winner-card__features { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.winner-card__features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; color: var(--gray-700);
  padding: .35rem 0; border-bottom: 1px solid var(--gray-100);
}
.winner-card__features li:last-child { border: none; }
.check-icon { color: var(--green); font-size: 1rem; line-height: 1.4; flex-shrink: 0; }
.winner-card__cta {
  display: block; background: var(--blue); color: white;
  text-align: center; padding: .875rem;
  border-radius: var(--radius); font-weight: 800; font-size: .95rem;
  transition: all var(--transition);
}
.winner-card__cta:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; color: white; }
.winner-card__price { text-align: center; font-size: .8rem; color: var(--gray-500); margin-top: .625rem; }
.winner-card__price strong { color: var(--gray-900); }

/* 6. Breadcrumb */
.breadcrumb {
  padding: .875rem 0;
  font-size: .8rem; color: var(--gray-400);
  display: flex; align-items: center; gap: .375rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb__sep { color: var(--gray-300); }
.breadcrumb__current { color: var(--gray-600); font-weight: 500; }

/* 7. TOC */
.toc {
  background: var(--blue-light); border: 1px solid var(--blue-pale);
  border-radius: var(--radius-lg); padding: 1.5rem; margin: 2rem 0;
}
.toc__title {
  font-size: .875rem; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
}
.toc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .5rem; }
@media(max-width:600px){ .toc__grid{ grid-template-columns:1fr; } }
.toc__grid a {
  color: var(--blue); font-size: .875rem;
  display: flex; align-items: center; gap: .375rem;
  padding: .25rem 0;
}
.toc__grid a::before { content: '›'; font-weight: 700; font-size: 1rem; }
.toc__grid a:hover { text-decoration: underline; }

/* 8. Section heading */
.section-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: .25rem .75rem; border-radius: 100px;
  margin-bottom: .75rem;
}
.section-tag--blue   { background: var(--blue-light);  color: var(--blue); }
.section-tag--green  { background: var(--green-light); color: var(--green); }
.section-tag--amber  { background: var(--amber-light); color: var(--amber); }
.section-heading { margin-bottom: 2.5rem; }
.section-heading p { font-size: 1.05rem; color: var(--gray-600); margin-top: .5rem; }

/* 9. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.625rem; border-radius: var(--radius);
  font-weight: 700; font-size: .925rem; border: none;
  transition: all var(--transition); text-decoration: none; line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary  { background: var(--blue); color: white; }
.btn--primary:hover  { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }
.btn--amber    { background: #f59e0b; color: white; }
.btn--amber:hover    { background: var(--amber); transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }
.btn--outline  { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn--outline:hover  { background: var(--blue-light); }
.btn--white    { background: white; color: var(--blue); }
.btn--white:hover    { background: var(--gray-100); color: var(--blue-dark); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1rem; font-size: .8rem; }
.btn--full { width: 100%; }

/* 10. Quick comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.compare-table {
  width: 100%; border-collapse: collapse;
  background: white; min-width: 720px;
  font-size: .875rem;
}
.compare-table thead { background: var(--blue); color: white; }
.compare-table thead th { padding: .875rem .875rem; text-align: left; font-weight: 700; font-size: .8rem; letter-spacing: .03em; white-space: nowrap; }
.compare-table tbody tr { border-bottom: 1px solid var(--gray-200); transition: background var(--transition); }
.compare-table tbody tr:hover { background: var(--gray-50); }
.compare-table tbody tr.tr-winner { background: #fffef0; border-left: 3px solid #f59e0b; }
.compare-table tbody tr.tr-winner:hover { background: #fefce8; }
.compare-table td { padding: .8rem .875rem; vertical-align: middle; }
.compare-table td:first-child { font-weight: 600; }
.g-name-cell { display: flex; align-items: center; gap: .75rem; }
.g-logo { width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .7rem; color: white; flex-shrink: 0; }
.g-logo--trilus   { background: linear-gradient(135deg,#1e40af,#1d4ed8); }
.g-logo--decl     { background: linear-gradient(135deg,#7c3aed,#6d28d9); }
.g-logo--tax      { background: linear-gradient(135deg,#059669,#047857); }
.g-logo--nomo     { background: linear-gradient(135deg,#dc2626,#b91c1c); }
.g-logo--conta    { background: linear-gradient(135deg,#0891b2,#0e7490); }
.g-logo--quipu    { background: linear-gradient(135deg,#d97706,#b45309); }
.g-logo--ayuda    { background: linear-gradient(135deg,#be185d,#9d174d); }
.g-logo--solo     { background: linear-gradient(135deg,#6d28d9,#5b21b6); }
.g-logo--afinom   { background: linear-gradient(135deg,#0891b2,#0e7490); }
.g-logo--sapientia{ background: linear-gradient(135deg,#065f46,#047857); }
.g-logo--gestority{ background: linear-gradient(135deg,#b45309,#92400e); }
.g-logo--finutive { background: linear-gradient(135deg,#4f46e5,#4338ca); }
.g-logo--openges  { background: linear-gradient(135deg,#0369a1,#075985); }

/* Favicons */
.g-favicon { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; object-fit: contain; background: var(--gray-100); padding: 2px; }
.gc__favicon { width: 44px; height: 44px; border-radius: var(--radius); object-fit: contain; background: var(--gray-100); padding: 4px; flex-shrink: 0; }

/* Rank badge */
.rank-badge { font-size: .95rem; font-weight: 900; color: var(--gray-400); min-width: 26px; }
.rank-badge--gold   { color: #f59e0b; }
.rank-badge--silver { color: #9ca3af; }
.rank-badge--bronze { color: #b45309; }

/* Warning box */
.wbox { border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 1.25rem 0; background: #fff7ed; border: 1px solid #fed7aa; }
.wbox h4 { color: #9a3412; margin-bottom: .5rem; font-size: .875rem; }
.wbox p  { font-size: .85rem; color: #7c2d12; margin: 0; }
.badge { display: inline-block; padding: .15rem .5rem; border-radius: 100px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.badge--winner { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.badge--rec    { background: var(--blue-light); color: var(--blue); }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 1px; }
.stars__s { font-size: .9rem; }
.stars__n { font-size: .78rem; color: var(--gray-500); margin-left: .3rem; }
.filled  { color: #f59e0b; }
.empty   { color: var(--gray-300); }

/* Score pill */
.score-pill { font-weight: 800; font-size: .875rem; }
.score-pill--top    { color: var(--green); }
.score-pill--high   { color: #16a34a; }
.score-pill--mid    { color: var(--amber); }
.score-pill--low    { color: var(--red); }

/* Yes/No */
.yes  { color: var(--green); font-weight: 700; }
.no   { color: var(--red); }
.partial { color: var(--amber); font-weight: 600; }

/* Price cell */
.price-val  { font-weight: 800; color: var(--gray-900); font-size: .95rem; }
.price-note { font-size: .72rem; color: var(--gray-500); display: block; }

/* Response time */
.resp-fast   { color: var(--green);  font-weight: 700; font-size: .85rem; }
.resp-medium { color: var(--amber);  font-weight: 600; font-size: .85rem; }
.resp-slow   { color: var(--red);    font-weight: 600; font-size: .85rem; }

/* 11. Gestoria cards */
.gestoria-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.gc {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow var(--transition);
}
.gc:hover { box-shadow: var(--shadow-lg); }
.gc--winner { border: 2px solid #f59e0b; }
.gc__winner-bar {
  background: linear-gradient(90deg,#f59e0b,#d97706);
  color: white; text-align: center; padding: .5rem 1rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.gc__head {
  padding: 1.5rem; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem;
}
.gc--winner .gc__head { background: #fffef0; border-bottom-color: #fde68a; }
.gc__identity { display: flex; align-items: center; gap: 1rem; }
.gc__logo {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: white; flex-shrink: 0;
}
.gc__name { font-size: 1.3rem; font-weight: 900; color: var(--gray-900); line-height: 1.2; }
.gc__subtitle { font-size: .8rem; color: var(--gray-500); margin-top: .2rem; }
.gc__score-box { text-align: center; }
.gc__score { font-size: 2.75rem; font-weight: 900; line-height: 1; color: var(--green); }
.gc__score-sub { font-size: .72rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; }
.gc__body { padding: 1.75rem; }
.gc__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: .875rem;
  margin: 1.5rem 0;
}
.gc__meta-item {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: .875rem;
}
.gc__meta-label { font-size: .7rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.gc__meta-val { font-weight: 800; font-size: .95rem; color: var(--gray-900); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media(max-width:580px){ .pros-cons{ grid-template-columns:1fr; } }
.pros, .cons {
  border-radius: var(--radius); padding: 1rem 1.125rem;
}
.pros { background: var(--green-light); border: 1px solid #a7f3d0; }
.cons { background: var(--red-light);   border: 1px solid #fecaca; }
.pros h4 { color: #065f46; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .625rem; }
.cons h4 { color: #991b1b; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .625rem; }
.pros ul, .cons ul { padding-left: 1.125rem; }
.pros li { color: #065f46; font-size: .85rem; }
.cons li { color: #991b1b; font-size: .85rem; }
.scores-detail { display: flex; flex-direction: column; gap: .625rem; margin: 1.5rem 0; }
.sd-row { display: grid; grid-template-columns: 150px 1fr 36px; align-items: center; gap: .75rem; }
.sd-label { font-size: .8rem; color: var(--gray-600); }
.sd-bar { height: 7px; background: var(--gray-200); border-radius: 100px; overflow: hidden; }
.sd-fill { height: 100%; border-radius: 100px; background: var(--green); }
.sd-fill--amber { background: #f59e0b; }
.sd-num { font-size: .8rem; font-weight: 800; text-align: right; color: var(--gray-700); }
.testimonial {
  background: var(--blue-light); border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.testimonial__text { font-style: italic; color: var(--gray-700); font-size: .9rem; margin-bottom: .5rem; }
.testimonial__author { font-size: .78rem; color: var(--gray-500); font-weight: 700; }
.gc__cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* 12. Feature matrix */
.feat-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.feat-table {
  width: 100%; border-collapse: collapse;
  background: white; min-width: 1100px; font-size: .8rem;
}
.feat-table th {
  background: var(--blue); color: white;
  padding: .75rem .875rem; text-align: center;
  font-weight: 700; font-size: .75rem; white-space: nowrap;
}
.feat-table th:first-child { text-align: left; min-width: 210px; background: var(--blue-dark); }
.feat-table th.col-winner { background: #d97706; }
.feat-table td {
  padding: .65rem .875rem; text-align: center;
  border-bottom: 1px solid var(--gray-200); font-size: .82rem;
}
.feat-table td:first-child { text-align: left; color: var(--gray-700); font-weight: 500; }
.feat-table tr:hover td { background: var(--gray-50); }
.feat-table .cat-row td {
  background: var(--gray-100); font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--gray-500);
  padding: .5rem .875rem;
}
.feat-table td.col-winner { background: #fffef0; }

/* 13. Pricing cards */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: 1rem; }
.price-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.375rem 1.25rem; background: white; text-align: center;
  transition: box-shadow var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card--feat { border: 2px solid #f59e0b; position: relative; }
.price-card--feat::before {
  content: '★ Mejor relación calidad-precio';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #f59e0b; color: white; font-size: .7rem; font-weight: 800;
  padding: .2rem .75rem; border-radius: 100px; white-space: nowrap;
}
.price-card__company { font-size: .75rem; color: var(--gray-500); margin-bottom: .25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.price-card__plan { font-size: .75rem; color: var(--gray-400); margin-bottom: .75rem; }
.price-card__amount { font-size: 2rem; font-weight: 900; color: var(--gray-900); line-height: 1; }
.price-card__period { font-size: .75rem; color: var(--gray-500); margin-bottom: 1rem; }
.price-card__features { list-style: none; padding: 0; text-align: left; }
.price-card__features li { font-size: .78rem; color: var(--gray-700); padding: .3rem 0; border-bottom: 1px solid var(--gray-100); display: flex; gap: .4rem; }
.price-card__features li:last-child { border: none; }
.price-card__link { display: block; margin-top: 1rem; }
.price-card--warn { border-color: #fca5a5; background: #fff5f5; }
.price-card--warn .price-card__amount { color: var(--gray-500); }
.price-card__badge {
  display: inline-block; margin-bottom: .5rem; padding: .15rem .6rem;
  border-radius: 100px; font-size: .67rem; font-weight: 800;
  background: #fee2e2; color: #991b1b; letter-spacing: .04em;
}
.price-card__link--disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
  background: var(--gray-100) !important; color: var(--gray-500) !important;
  border-color: var(--gray-200) !important;
}
.feat-table th.col-warn { background: #9f1239; }
.feat-table td.col-warn { background: #fff5f5; }

/* 14. Highlight boxes */
.hbox { border-radius: var(--radius-lg); padding: 1.75rem 2rem; margin: 2rem 0; }
.hbox--blue   { background: var(--blue-light); border: 1px solid var(--blue-pale); }
.hbox--green  { background: var(--green-light); border: 1px solid #a7f3d0; }
.hbox--amber  { background: var(--amber-light); border: 1px solid #fde68a; }
.hbox--dark   { background: var(--gray-900); color: white; border: none; }
.hbox--dark h3 { color: white; }
.hbox--dark p  { color: var(--gray-300); }
.hbox h3 { margin-bottom: .75rem; }
.hbox p { font-size: .95rem; }

/* 15. Methodology steps */
.meth-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin: 1.5rem 0; }
@media(max-width:768px){ .meth-grid{ grid-template-columns:1fr; } }
.meth-step {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.5rem; border-top: 3px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}
.meth-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.meth-step__num {
  width: 38px; height: 38px; background: var(--blue); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .875rem; margin-bottom: 1rem;
}
.meth-step h4 { color: var(--gray-900); margin-bottom: .4rem; font-size: .92rem; }
.meth-step p  { font-size: .8rem; color: var(--gray-500); margin: 0; }

/* Author box */
.author-box {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.5rem; margin: 2rem 0;
}
.author-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#1e40af,#1d4ed8);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 1.25rem;
}
.author-info h4 { font-size: .95rem; }
.author-info p  { font-size: .825rem; color: var(--gray-500); margin: 0; line-height: 1.6; }

/* 16. FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.125rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .925rem; font-weight: 700; color: var(--gray-900);
  transition: background var(--transition); font-family: var(--font); cursor: pointer;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q.open { background: var(--blue-light); color: var(--blue); }
.faq-q svg { flex-shrink: 0; transition: transform .3s ease; }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height .35s ease, padding .25s ease;
  background: white;
}
.faq-a.open { max-height: 800px; }
.faq-a-inner { padding: 0 1.25rem 1.25rem; }
.faq-a-inner p { font-size: .9rem; color: var(--gray-700); margin-top: .875rem; }
.faq-a-inner ul { margin-top: .625rem; }
.faq-a-inner li { font-size: .875rem; color: var(--gray-700); }

/* 17. CTA section */
.cta-section {
  background: linear-gradient(140deg,#0f172a 0%,#1e3a8a 50%,#1e40af 100%);
  color: white; padding: 5rem 0; text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section .lead { color: #bfdbfe; margin-bottom: 2.5rem; }
.cta-section .btn--amber { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* 18. Footer */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 3.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media(max-width:768px){ .footer__grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .footer__grid{ grid-template-columns:1fr; } }
.footer__logo-text { font-size: 1rem; font-weight: 900; color: white; margin-bottom: .75rem; }
.footer__desc { font-size: .825rem; line-height: 1.7; }
.footer h4 { color: white; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .875rem; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: .375rem; }
.footer a { color: var(--gray-400); font-size: .825rem; }
.footer a:hover { color: white; text-decoration: none; }
.footer__divider { border: none; border-top: 1px solid var(--gray-700); margin: 2rem 0 1.5rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .78rem; color: var(--gray-500); }
.footer__disclaimer { background: rgba(255,255,255,.04); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .78rem; margin-bottom: 2rem; line-height: 1.65; }

/* 19. Sticky bottom bar */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--blue-dark); color: white;
  padding: .875rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  z-index: 200; transform: translateY(100%); transition: transform .3s ease;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25); flex-wrap: wrap;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar__left { display: flex; align-items: center; gap: .75rem; }
.sticky-bar__logo {
  width: 32px; height: 32px; background: var(--amber); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .65rem; color: white; flex-shrink: 0;
}
.sticky-bar__text { font-size: .85rem; color: rgba(255,255,255,.85); }
.sticky-bar__text strong { display: block; font-size: .9rem; color: #fff; }
.sticky-bar__close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 1.25rem; padding: .25rem; line-height: 1; margin-left: auto;
}
.sticky-bar__close:hover { color: white; }

/* 20. Desktop table: fit all 11 columns without horizontal scroll */
@media(min-width:1025px){
  .feat-wrap { overflow-x: visible; }
  .feat-table { min-width: 0; width: 100%; table-layout: fixed; }
  .feat-table th { font-size: .62rem; padding: .6rem .3rem; white-space: normal; word-break: break-word; }
  .feat-table th:first-child { min-width: 0; width: 22%; }
  .feat-table td { padding: .5rem .3rem; font-size: .72rem; }
  .feat-table td:first-child { font-size: .75rem; }
}

/* 21. Responsive adjustments */
@media(max-width:768px){
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}
@media(max-width:480px){
  .hero__stats { gap: 1rem; }
  .gc__head { flex-direction: column; }
  .btn--lg { font-size: .95rem; padding: .875rem 1.5rem; }
}
@media print {
  .sticky-bar,.header{ display:none; }
}

/* =====================================================
   MODAL CONTACTO
   ===================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-box h3 {
  margin: 0 0 .2rem;
  font-size: 1.2rem;
  color: #1e293b;
}
.modal-sub {
  margin: 0 0 1.5rem;
  font-size: .85rem;
  color: #64748b;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #94a3b8;
  padding: .2rem .5rem;
  border-radius: .3rem;
}
.modal-close:hover { color: #1e293b; background: #f1f5f9; }
.modal-form .form-group { margin-bottom: 1rem; }
.modal-form label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .3rem;
}
.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: .5rem;
  font-size: .9rem;
  font-family: inherit;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color .18s;
  background: #fff;
}
.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.modal-form textarea { resize: vertical; min-height: 100px; }
.modal-form .btn--full { width: 100%; justify-content: center; margin-top: .25rem; }
.modal-msg {
  font-size: .85rem;
  margin-top: .85rem;
  text-align: center;
  padding: .6rem 1rem;
  border-radius: .5rem;
}
.modal-msg.ok  { background: #f0fdf4; color: #16a34a; }
.modal-msg.err { background: #fef2f2; color: #dc2626; }
