/* ceos.org.mx — shared design system
   Palette: deep navy base, gold primary accent, rosa mexicano secondary accent */
:root {
  --navy-900: #0b1626;
  --navy-800: #0d1b2a;
  --navy-700: #13263c;
  --navy-600: #1b344f;
  --navy-100: #e8eef5;
  --gold: #f0b429;
  --gold-dark: #d99a1b;
  --pink: #e4007c;
  --pink-dark: #b80064;
  --green: #1db954;
  --red: #e5484d;
  --text: #22303e;
  --text-light: #5a6b7b;
  --bg: #f6f8fa;
  --card: #ffffff;
  --border: #dde5ec;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(13, 27, 42, .08);
  --maxw: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--pink-dark); }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-800); font-weight: 800; }
h1 { font-size: 1.9rem; margin: .4em 0; }
h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.22rem; margin: 1.4em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- header / nav ---------- */
.site-header { background: var(--navy-800); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.site-header .container { display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 0; }
.logo img { width: 34px; height: 34px; }
.logo span { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .5px; }
.logo span em { color: var(--gold); font-style: normal; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; margin-left: auto; cursor: pointer; padding: 10px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 24px; height: 3px; background: #fff; border-radius: 2px; position: relative; content: "";
}
.nav-toggle-label span::before { position: absolute; top: -8px; }
.nav-toggle-label span::after { position: absolute; top: 8px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { color: #cfdae6; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 11px; border-radius: 8px; display: block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: var(--navy-600); }
@media (max-width: 920px) {
  .nav-toggle-label { display: block; }
  .main-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding-bottom: 12px; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(90deg, rgba(11,22,38,.94) 0%, rgba(11,22,38,.78) 36%, rgba(11,22,38,.30) 70%, rgba(11,22,38,.10) 100%), url('/assets/img/hero-bg.jpg'); background-size: cover; background-position: center right; color: #dce7f2; padding: 44px 0 36px; }
.hero h1 { color: #fff; font-size: 2.1rem; margin: 0 0 .4em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 850px; margin: .4em 0; }
.hero .meta-line { font-size: .88rem; color: #9fb3c8; margin-top: 14px; }
.hero .meta-line a { color: var(--gold); }
.byline-author { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; text-decoration: none; }
.byline-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--navy-700); flex-shrink: 0; }
/* ---------- mobile only: hide the intro + info badges, keep H1, "Actualizado" date and author ---------- */
@media (max-width: 680px) {
  .hero { padding: 16px 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero .container > p:not(.meta-line) { display: none; }    /* hide long intro on mobile */
  .hero .badges { margin-top: 10px; gap: 6px; }
  .hero .badges .badge:not(:last-child) { display: none; }   /* keep only "Actualizado" on mobile */
  .hero .meta-line { margin-top: 11px; font-size: .8rem; line-height: 1.5; }
  .byline-face { width: 26px; height: 26px; }
  #top-casinos { padding-top: 4px; }
  #top-casinos h2 { margin-top: .4em; font-size: 1.22rem; }
  .offer-list { margin-top: 14px; }
}
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #e8eef5; font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.badge strong { color: var(--gold); }

/* ---------- breadcrumbs / TOC ---------- */
.breadcrumbs { font-size: .85rem; color: var(--text-light); margin: 18px 0 0; }
.breadcrumbs a { color: var(--text-light); }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; box-shadow: var(--shadow); }
.toc strong { display: block; margin-bottom: 8px; color: var(--navy-800); }
.toc ol { columns: 2; gap: 32px; margin: 0; padding-left: 20px; font-size: .93rem; }
.toc a { text-decoration: none; }
@media (max-width: 700px) { .toc ol { columns: 1; } }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .9rem; min-width: 640px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { background: var(--navy-800); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
tbody tr:nth-child(even) { background: #fbfcfe; }
tbody tr:hover { background: #f4f7fb; }
td .op-logo { width: 84px; height: 44px; object-fit: contain; display: block; }
.info-table table { min-width: 0; }
.info-table th { background: var(--navy-700); color: #fff; width: 42%; }

/* ---------- top list cards ---------- */
.top-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow); position: relative; }
.top-card .rank { position: absolute; top: -10px; left: -8px; background: var(--navy-800); color: var(--gold); font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 3px 11px; }
.top-card.first { border: 2px solid var(--gold); }
.top-card.first .rank { background: var(--gold); color: var(--navy-900); }
.top-card img { width: 110px; height: 56px; object-fit: contain; }
.top-card .bonus { font-weight: 700; color: var(--navy-800); }
.top-card .terms { font-size: .82rem; color: var(--text-light); }
@media (max-width: 700px) { .top-card { grid-template-columns: 1fr; text-align: center; } .top-card img { margin: 0 auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--navy-900); font-weight: 800; text-decoration: none; padding: 12px 26px; border-radius: 10px; font-size: .95rem; text-align: center; box-shadow: 0 2px 6px rgba(217,154,27,.4); white-space: nowrap; }
.btn:hover { filter: brightness(1.06); color: var(--navy-900); }
.btn-secondary { background: var(--pink); color: #fff; box-shadow: 0 2px 6px rgba(228,0,124,.35); }
.btn-secondary:hover { color: #fff; }
.btn-small { padding: 9px 18px; font-size: .85rem; }

/* ---------- review blocks ---------- */
.review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; margin: 30px 0; box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 16px; margin-bottom: 8px; }
.review-head img { width: 130px; height: 64px; object-fit: contain; }
.review-head .score { margin-left: auto; text-align: center; }
.review-head .score .num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy-800); }
.review-head .score .outof { font-size: .75rem; color: var(--text-light); }
.review h3 { margin-top: 0; }

/* ---------- pros & cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.pros, .cons { border-radius: var(--radius); padding: 16px 20px; }
.pros { background: #effaf3; border: 1px solid #c4ecd2; }
.cons { background: #fdf0f0; border: 1px solid #f3cdcf; }
.pros h4, .cons h4 { margin: 0 0 8px; }
.pros ul, .cons ul { margin: 0; padding-left: 0; list-style: none; font-size: .93rem; }
.pros li, .cons li { padding-left: 26px; position: relative; margin: 7px 0; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
@media (max-width: 700px) { .pros-cons { grid-template-columns: 1fr; } }

/* ---------- callouts / steps / faq ---------- */
.callout { border-left: 4px solid var(--gold); background: #fff8e8; border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 20px; margin: 20px 0; font-size: .95rem; }
.callout.pink { border-left-color: var(--pink); background: #fdeef6; }
.callout.green { border-left-color: var(--green); background: #effaf3; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps li strong:first-child { display: block; color: var(--navy-800); margin-bottom: 2px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin: 10px 0; padding: 0 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; color: var(--navy-800); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { font-size: .95rem; }

/* ---------- misc ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.tag { display: inline-block; background: var(--navy-100); color: var(--navy-700); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; font-size: .9rem; }
.author-box .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-800); color: var(--gold); font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-photo { border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; background: var(--navy-800); }
/* ---------- wide comparison table: fit all columns ---------- */
.comp-table table { table-layout: fixed; width: 100%; min-width: 0; font-size: .8rem; }
.comp-table th, .comp-table td { padding: 9px 7px; overflow-wrap: anywhere; word-break: break-word; vertical-align: top; }
.comp-table thead th { font-size: .68rem; letter-spacing: .2px; padding: 9px 7px; }
.comp-table th:nth-child(1), .comp-table td:nth-child(1) { width: 3%; text-align: center; padding-left: 3px; padding-right: 3px; }
.comp-table th:nth-child(2), .comp-table td:nth-child(2) { width: 8%; }
.comp-table th:nth-child(3), .comp-table td:nth-child(3) { width: 16%; }
.comp-table th:nth-child(4), .comp-table td:nth-child(4) { width: 11%; }
.comp-table th:nth-child(5), .comp-table td:nth-child(5) { width: 10%; }
.comp-table th:nth-child(6), .comp-table td:nth-child(6) { width: 11%; }
.comp-table th:nth-child(7), .comp-table td:nth-child(7) { width: 15%; }
.comp-table th:nth-child(8), .comp-table td:nth-child(8) { width: 17%; }
.comp-table th:nth-child(9), .comp-table td:nth-child(9) { width: 9%; text-align: center; padding-left: 3px; padding-right: 3px; }
.comp-table .btn-small { padding: 7px 8px; font-size: .76rem; width: 100%; box-sizing: border-box; }
@media (max-width: 760px) { .comp-table table { table-layout: auto; min-width: 820px; font-size: .82rem; } .comp-table th, .comp-table td { width: auto !important; } }

/* ---------- affiliate offer cards ---------- */
.offer-list { margin: 26px 0 10px; }
.offer-card { display: grid; grid-template-columns: 74px 148px minmax(160px, 1fr) 232px 236px; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin: 16px 0; box-shadow: var(--shadow); }
.offer-card.first { border: 2px solid var(--gold); box-shadow: 0 4px 18px rgba(240,180,41,.18); }

.offer-head { text-align: center; }
.offer-head .rank-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--navy-700); line-height: 1; }
.offer-card.first .offer-head .rank-num { color: var(--gold-dark); }
.offer-head .rank-label { display: block; font-size: .6rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-light); margin-top: 4px; }

.offer-logo { background: #f2f5f8; border: 1px solid var(--border); border-radius: 10px; height: 76px; display: flex; align-items: center; justify-content: center; padding: 8px 14px; }
.offer-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.offer-info h3 { margin: 0 0 4px; font-size: 1.18rem; }
.offer-tagline { display: none; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); }
.offer-meta { font-size: .84rem; }
.offer-meta + .offer-meta { margin-top: 7px; }
.offer-meta .k { display: block; font-size: .62rem; letter-spacing: .6px; text-transform: uppercase; color: var(--text-light); }
.offer-meta .v { font-weight: 700; color: var(--navy-800); }

.offer-bonus { text-align: left; }
.bonus-pill { display: inline-block; background: #fff5da; border: 1px solid #efe1b4; color: var(--navy-900); font-weight: 800; font-size: 1.04rem; line-height: 1.3; padding: 12px 16px; border-radius: 10px; }
.bonus-sub { display: block; font-size: .78rem; color: var(--text-light); margin-top: 9px; }

.offer-cta { text-align: center; }
.offer-btn { display: block; width: 100%; box-sizing: border-box; padding: 14px 16px; font-size: .95rem; }
.cta-sub { display: block; font-size: .72rem; color: var(--text-light); margin-top: 9px; }

.aff-note { font-size: .8rem; color: var(--text-light); margin: 10px 2px 0; }

@media (max-width: 860px) {
  .offer-card { grid-template-columns: 60px 120px 1fr 200px; grid-template-areas: "head logo info bonus" "head logo info cta"; gap: 14px 16px; }
  .offer-head { grid-area: head; }
  .offer-logo { grid-area: logo; }
  .offer-info { grid-area: info; }
  .offer-bonus { grid-area: bonus; }
  .offer-cta { grid-area: cta; margin-top: 4px; }
}

@media (max-width: 680px) {
  .offer-card { display: block; padding: 0 0 18px; text-align: center; overflow: hidden; }
  .offer-head { display: flex; align-items: center; background: var(--navy-800); color: #fff; padding: 11px 16px; margin-bottom: 18px; }
  .offer-head .rank-num { font-size: 1rem; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
  .offer-head .rank-label { margin: 0 0 0 10px; color: #cfdae6; letter-spacing: 1.2px; }
  .offer-head .rank-label::before { content: "/ "; color: #64788f; }
  .offer-card.first .offer-head .rank-num { color: var(--gold); }
  .offer-logo { background: transparent; border: none; height: auto; max-width: 180px; margin: 0 auto 10px; }
  .offer-info { padding: 0 20px; }
  .offer-info h3 { font-size: 1.5rem; margin-bottom: 6px; }
  .offer-tagline { display: block; margin-bottom: 14px; }
  .offer-meta { display: none; }
  .offer-bonus { padding: 0 20px; }
  .bonus-pill { font-size: 1.1rem; padding: 12px 22px; }
  .bonus-sub { display: none; }
  .offer-cta { padding: 16px 20px 0; }
  .offer-btn { padding: 15px 18px; font-size: 1rem; }
  .cta-sub { margin-top: 10px; }
}

/* ---------- luxury feature band ---------- */
.lux-band { position: relative; margin: 40px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b1626 url('/assets/img/feature-lux.jpg') center/cover no-repeat; min-height: 300px; display: flex; align-items: center; }
.lux-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,22,38,.92) 0%, rgba(11,22,38,.72) 45%, rgba(11,22,38,.15) 100%); }
.lux-band .lux-inner { position: relative; z-index: 1; max-width: 560px; padding: 34px 38px; color: #e8eef5; }
.lux-band h2 { color: #fff; margin-top: 0; }
.lux-band h2 em { color: var(--gold); font-style: normal; }
.lux-band p { color: #cfdae6; margin: .5em 0 0; }
@media (max-width: 640px) { .lux-band .lux-inner { padding: 24px 22px; } .lux-band::before { background: linear-gradient(180deg, rgba(11,22,38,.88) 0%, rgba(11,22,38,.78) 100%); } }

.rg-strip { background: var(--navy-900); color: #9fb3c8; font-size: .8rem; text-align: center; padding: 8px 14px; }
.rg-strip strong { color: var(--gold); }
main { padding-bottom: 50px; }
section { scroll-margin-top: 80px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb3c8; font-size: .88rem; margin-top: 50px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0 26px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #9fb3c8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid var(--navy-600); padding: 18px 0 26px; font-size: .78rem; line-height: 1.6; }
.site-footer .f18 { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--red); border-radius: 50%; color: #fff; font-weight: 800; font-size: .8rem; margin-right: 10px; vertical-align: middle; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* single-page: smooth anchor landing for guide cards */
[id^="guia-"] { scroll-margin-top: 80px; }
