/* BetWinner LATAM — paleta basada en la marca oficial
   Verde oscuro #0b5d3b / verde #147a4e · amarillo #ffd60a · fondo #f4f5f7 */
:root{
  --green-900:#0b5d3b; --green-700:#147a4e; --green-500:#2ea866;
  --yellow:#ffd60a; --yellow-600:#f5c518;
  --bg:#f4f5f7; --card:#ffffff; --ink:#16241d; --muted:#5a6b62;
  --border:#e3e8e5; --shadow:0 4px 18px rgba(11,93,59,.10);
  --radius:14px; --maxw:1160px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:var(--green-700);text-decoration:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
h1,h2,h3{line-height:1.2;font-weight:800;letter-spacing:-.02em}
img{max-width:100%;height:auto;display:block}

/* ---------- Header ---------- */
.site-header{background:var(--green-900);position:sticky;top:0;z-index:50;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.header-inner{display:flex;align-items:center;gap:24px;height:64px}
.logo-img{height:40px;width:auto}
.main-nav{display:flex;gap:22px;margin-left:8px}
.main-nav a{color:#dff3e8;font-weight:600;font-size:15px;transition:color .15s}
.main-nav a:hover{color:var(--yellow)}
.btn-cta{margin-left:auto;background:var(--yellow);color:#0b3d27;font-weight:800;padding:11px 22px;border-radius:10px;font-size:15px;transition:transform .12s,box-shadow .12s;white-space:nowrap}
.btn-cta:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(255,214,10,.4)}
.btn-cta i{font-style:normal;margin-left:4px}
.btn-lg{padding:15px 30px;font-size:17px}
.btn-block{display:block;text-align:center;width:100%;margin-left:0}
.btn-ghost{color:#fff;border:1.5px solid rgba(255,255,255,.4);padding:13px 24px;border-radius:10px;font-weight:700;transition:.15s}
.btn-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff}
.nav-toggle{display:none;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer;padding:8px}
.nav-toggle span{width:24px;height:2px;background:#fff;border-radius:2px}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:14px}

/* ---------- Selector de país (banderita) en cabecera ---------- */
.country-switch{position:relative}
.cs-trigger{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:10px;padding:8px 12px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;transition:.15s}
.cs-trigger:hover{background:rgba(255,255,255,.18)}
.cs-flag{line-height:1;display:inline-flex}
.cs-flag .fi{width:1.25em;height:.94em;border-radius:2px}
.cs-globe{display:inline-block;width:16px;height:16px;border-radius:50%;border:1.6px solid currentColor;position:relative}
.cs-globe:before{content:"";position:absolute;inset:-1.6px;border-radius:50%;border:1.6px solid currentColor;border-top:none;border-bottom:none;width:8px;margin:0 auto;left:0;right:0}
.cs-current{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-caret{font-size:11px;opacity:.8}
.cs-menu{position:absolute;top:calc(100% + 8px);right:0;width:260px;max-height:380px;overflow-y:auto;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 34px rgba(0,0,0,.22);padding:8px;display:none;z-index:60}
.country-switch.open .cs-menu{display:block}
.country-switch.open .cs-caret{transform:rotate(180deg)}
.cs-search{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;margin-bottom:6px;outline:none}
.cs-search:focus{border-color:var(--green-500)}
.cs-item{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:8px;color:var(--ink);font-size:14.5px;font-weight:500}
.cs-item:hover{background:var(--bg)}
.cs-item.active{background:#eafaf1;color:var(--green-700);font-weight:700}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(135deg,var(--green-900),var(--green-700));color:#fff;padding:64px 0 72px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-80px;width:380px;height:380px;background:radial-gradient(circle,rgba(255,214,10,.18),transparent 70%);border-radius:50%}
.hero-eyebrow{display:inline-block;background:rgba(255,214,10,.16);color:var(--yellow);font-weight:700;font-size:13px;padding:6px 14px;border-radius:999px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:18px}
.hero-eyebrow.light{background:rgba(255,255,255,.14);color:#fff}
.hero h1{font-size:42px;max-width:760px;margin-bottom:18px}
.hero .lead{font-size:18px;color:#e2f1ea;max-width:680px;margin-bottom:28px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.hero-trust{display:flex;gap:24px;margin-top:30px;color:#cfe7da;font-weight:600;font-size:14px}
.hero-trust span{display:flex;align-items:center;gap:6px}

/* ---------- Section base ---------- */
section{padding:56px 0}
.section-h{font-size:30px;text-align:center;margin-bottom:8px}
.section-sub{text-align:center;color:var(--muted);max-width:600px;margin:0 auto 28px}

/* ---------- Why ---------- */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:10px}
.why-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px 22px;box-shadow:var(--shadow)}
.why-ic{margin-bottom:14px;color:var(--green-700,#0b5d3b)}
.why-ic svg{width:30px;height:30px;display:block}
.why-card h3{font-size:18px;margin-bottom:8px}
.why-card p{color:var(--muted);font-size:15px}

/* ---------- Mundial teaser ---------- */
.mundial-teaser{background:linear-gradient(120deg,#0b3d27,var(--green-700));color:#fff}
.mt-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:center}
.mt-text{max-width:720px}
.mt-text h2{font-size:30px;margin:6px 0 14px}
.mt-text p{color:#dcefe4;font-size:17px;margin-bottom:22px}
.mt-media{display:block;border-radius:14px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.12);transition:transform .25s ease,box-shadow .25s ease}
.mt-media:hover{transform:translateY(-4px);box-shadow:0 24px 50px rgba(0,0,0,.45)}
.mt-media img{display:block;width:100%;height:auto}
@media(max-width:860px){.mt-grid{grid-template-columns:1fr;gap:26px}.mt-media{order:-1}}

/* ---------- FAQ ---------- */
.faq-section{background:var(--card)}
.faq-list{max-width:780px;margin:0 auto}
.faq-item{background:var(--bg);border:1px solid var(--border);border-radius:12px;margin-bottom:12px;padding:0 20px;transition:.15s}
.faq-item summary{cursor:pointer;font-weight:700;padding:18px 0;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq-item summary::after{content:"+";font-size:22px;color:var(--green-500);font-weight:400}
.faq-item[open] summary::after{content:"–"}
.faq-item p{padding:0 0 18px;color:var(--muted)}

/* ---------- Country page ---------- */
.breadcrumb{font-size:14px;color:#cfe7da;margin-bottom:18px}
.breadcrumb a{color:#fff}
.breadcrumb span{margin:0 6px}
.country-hero{background:linear-gradient(135deg,var(--green-900),var(--green-700));color:#fff;padding:36px 0 56px}
.country-hero-inner{display:grid;grid-template-columns:1.4fr 1fr;gap:40px;align-items:start}
.flag-big{display:block;margin-bottom:10px}
.flag-big .fi{width:54px;height:40px;border-radius:5px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.breadcrumb .fi{width:1.2em;height:.9em;border-radius:2px;vertical-align:-1px}
.country-hero h1{font-size:36px;margin-bottom:14px}
.country-hero .lead{color:#e2f1ea;font-size:17px;margin-bottom:24px}
.offer-card{background:var(--card);color:var(--ink);border-radius:18px;padding:26px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.offer-badge{display:inline-flex;align-items:center;gap:6px;background:#fff4cc;color:#8a6d00;font-weight:700;font-size:13px;padding:5px 12px;border-radius:999px;margin-bottom:12px}
/* Estrellas dibujadas en CSS (sin emoji), 5 estrellas tipo rating */
.stars{display:inline-block;width:74px;height:14px;line-height:0;background-repeat:repeat-x;background-size:14.8px 14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='14' viewBox='0 0 15 14'%3E%3Cpath fill='%23f5a623' d='M7.5 0l1.9 4.1 4.5.5-3.4 3 1 4.4-4-2.3-4 2.3 1-4.4-3.4-3 4.5-.5z'/%3E%3C/svg%3E")}
.hero-trust .stars,.offer-badge .stars{vertical-align:middle}
.offer-title{font-size:23px;color:var(--green-700);margin-bottom:16px}
.offer-list{list-style:none;margin-bottom:20px}
.offer-list li{position:relative;padding:7px 0 7px 26px;border-bottom:1px solid var(--border);font-weight:600;font-size:15px}
.offer-list li:before{content:"";position:absolute;left:2px;top:11px;width:9px;height:5px;border-left:2px solid #0b5d3b;border-bottom:2px solid #0b5d3b;transform:rotate(-45deg)}
.offer-fineprint{text-align:center;color:var(--muted);font-size:13px;margin-top:12px}

.content-wrap{padding-top:48px;padding-bottom:48px}
.content-layout{display:grid;grid-template-columns:260px 1fr;gap:48px;align-items:start}
.toc{position:sticky;top:84px}
.toc-inner{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px 22px;box-shadow:var(--shadow)}
.toc-title{font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--green-700);margin-bottom:12px}
.toc ol{list-style:none;counter-reset:toc}
.toc li{counter-increment:toc;margin-bottom:9px;font-size:14.5px;line-height:1.4}
.toc li::before{content:counter(toc) ".";color:var(--green-500);font-weight:700;margin-right:7px}
.toc a{color:#33433b}
.toc a:hover{color:var(--green-700)}
.content-main{max-width:780px;width:100%}
.content-block{margin-bottom:36px;scroll-margin-top:80px}
.content-block h2{font-size:25px;margin-bottom:14px;color:var(--ink)}
.content-block p{color:#33433b;font-size:16.5px;margin-bottom:14px}
.content-block a{color:var(--green-700,#0b5d3b);font-weight:600;text-decoration:underline}
.check-list{margin:0 0 14px;padding-left:0;list-style:none}
.check-list li{position:relative;padding-left:30px;margin-bottom:11px;color:#33433b;font-size:16.5px}
.check-list li:before{content:"";position:absolute;left:3px;top:6px;width:10px;height:6px;border-left:2.2px solid #0b5d3b;border-bottom:2.2px solid #0b5d3b;transform:rotate(-45deg)}
.hero-sub{color:#cfe7da;font-size:17px;max-width:680px;margin:6px 0 2px;line-height:1.55}
.legal-page .content-wrap{max-width:820px;margin:0 auto}
.content-block #mundial,.content-block.mundial-block{}
#mundial{background:linear-gradient(120deg,#eafaf1,#f4f5f7);border-left:4px solid var(--green-500);padding:22px 24px;border-radius:12px}

/* ---------- Venues (mundial) ---------- */
.venue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:16px}
.venue{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:16px}
.venue strong{display:block;font-size:16px;margin-bottom:4px}
.venue span{color:var(--muted);font-size:14px}

/* Ejemplos de apuestas (análisis) */
.bet-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:18px 0 8px}
.bet-card{background:var(--bg);border:1px solid var(--border);border-left:4px solid #0b5d3b;border-radius:12px;padding:20px}
.bet-card h3{font-size:18px;margin:8px 0 10px;color:var(--ink)}
.bet-card p{font-size:15px;color:#33433b;margin:0}
.bet-tag{display:inline-block;background:#eaf4ee;color:#0b5d3b;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:4px 10px;border-radius:999px}
.bet-line{font-size:15px;background:#fff4cc;color:#6b5500;border-radius:8px;padding:8px 12px;margin:0 0 12px!important}
.bet-line strong{color:#8a6d00}
.bet-disclaimer{font-size:14px!important;color:var(--muted)!important;border-top:1px solid var(--border);padding-top:14px;margin-top:18px}

/* ---------- Byline + Autor (E-E-A-T) ---------- */
.byline{font-size:14px;color:#cfe7da;margin:-6px 0 16px}
.byline a{color:var(--yellow);font-weight:600}
.author-box{background:var(--bg);padding:40px 0}
.author-card{display:flex;gap:22px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:26px 28px;box-shadow:var(--shadow);max-width:860px;margin:0 auto;align-items:flex-start}
.author-avatar{flex:none;width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--green-700),var(--green-500));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;letter-spacing:.02em}
.author-avatar.big{width:96px;height:96px;font-size:34px}
.author-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--green-700);font-weight:700}
.author-name{font-size:20px;margin:2px 0 2px}
.author-job{color:var(--green-700);font-weight:600;font-size:14px;margin-bottom:10px}
.author-bio{color:var(--muted);font-size:15px;line-height:1.6}
.author-hero{display:flex;gap:26px;align-items:center}
.author-hero h1{color:#fff;font-size:34px;margin:4px 0}
.author-job-big{color:var(--yellow);font-weight:600;font-size:16px}
.author-links{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:10px 0 16px}
.author-links a{display:block;background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:11px 14px;font-weight:600}
.author-links a:hover{border-color:var(--green-500)}
.footer-author{margin-top:6px;font-size:13px;color:#8fb6a3}
.footer-author a{color:#cfe7da;font-weight:600}

/* ---------- Footer ---------- */
.site-footer{background:var(--green-900);color:#cfe7da;padding:48px 0 24px;margin-top:20px}
.footer-grid{display:grid;grid-template-columns:280px 1fr auto;gap:48px}
.footer-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.footer-links a{color:#cfe7da;font-size:14px;transition:.15s}
.footer-links a:hover{color:var(--yellow)}
.footer-info{min-width:160px}
.footer-logo{height:38px;margin-bottom:14px}
.footer-text{font-size:14px;color:#9fc4b2;margin-bottom:14px}
.age-badge{display:inline-block;background:#fff;color:var(--green-900);font-weight:800;border-radius:8px;padding:4px 10px;font-size:14px}
.footer-title{color:#fff;font-size:16px;margin-bottom:14px}
.country-grid{display:flex;flex-wrap:wrap;gap:8px}
.country-chip{display:inline-flex;align-items:center;gap:6px;color:#cfe7da;font-size:13.5px;background:rgba(255,255,255,.06);padding:6px 11px;border-radius:8px;transition:.15s}
.country-chip .fi{width:1.15em;height:.86em;border-radius:2px}
.cs-item .fi{width:1.2em;height:.9em;border-radius:2px}
.country-chip:hover,.country-chip.active{background:var(--yellow);color:#0b3d27}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:32px;padding-top:18px;text-align:center;font-size:13px;color:#8fb6a3}

/* ---------- Hero con imagen de fondo ---------- */
.hero--image{padding:84px 0 92px}
.hero--image .hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0}
.hero--image .hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(11,93,59,.93) 0%,rgba(20,122,78,.82) 55%,rgba(11,93,59,.6) 100%)}
.hero--image .hero-inner{position:relative;z-index:1}

/* ---------- Imágenes de contenido (figure) ---------- */
.content-img{margin:8px 0 22px;border-radius:var(--radius);overflow:hidden;background:var(--card);box-shadow:var(--shadow)}
.content-img img{width:100%;height:auto;display:block}
.content-img figcaption{font-size:13.5px;color:var(--muted);padding:10px 16px;background:var(--card);border-top:1px solid var(--border)}
.content-img--wide{max-width:100%}
.content-img--box{max-width:560px;margin-left:auto;margin-right:auto}
.content-block .content-img{margin-top:4px}

/* ---------- Tablas de datos ---------- */
.table-wrap{overflow-x:auto;margin:6px 0 22px;border-radius:var(--radius);box-shadow:var(--shadow);background:var(--card)}
.data-table{width:100%;border-collapse:collapse;font-size:15.5px;min-width:420px}
.data-table caption{text-align:left;font-weight:700;color:var(--ink);padding:14px 16px 0;font-size:15px}
.data-table thead th{background:var(--green-900);color:#fff;text-align:left;font-weight:700;font-size:14px;padding:12px 16px;letter-spacing:.01em}
.data-table tbody th,.data-table tbody td{padding:11px 16px;border-top:1px solid var(--border);color:#33433b;text-align:left;vertical-align:top}
.data-table tbody th{font-weight:700;color:var(--ink)}
.data-table tbody tr:nth-child(even){background:#f8faf9}

/* ---------- Listas (features / pasos) ---------- */
.feature-list{margin:4px 0 18px;padding-left:0;list-style:none}
.feature-list li{position:relative;padding-left:30px;margin-bottom:11px;color:#33433b;font-size:16.5px}
.feature-list li:before{content:"";position:absolute;left:4px;top:6px;width:11px;height:6px;border-left:2.4px solid var(--green-700);border-bottom:2.4px solid var(--green-700);transform:rotate(-45deg)}
.step-list{margin:4px 0 18px;padding-left:0;list-style:none;counter-reset:step}
.step-list li{position:relative;padding-left:42px;margin-bottom:13px;color:#33433b;font-size:16.5px;min-height:28px;display:flex;align-items:center;flex-wrap:wrap}
.step-list li:before{counter-increment:step;content:counter(step);position:absolute;left:0;top:0;width:28px;height:28px;background:var(--green-700);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.section-sub{text-align:center;color:var(--muted);max-width:680px;margin:0 auto 26px;font-size:16px}

/* ---------- Sección comparativa (home) ---------- */
.compare-section{padding:52px 0}
.compare-section .table-wrap{max-width:920px;margin:0 auto}

/* ---------- Responsive ---------- */
@media(max-width:860px){
  .main-nav{display:none}
  .nav-toggle{display:flex;margin-left:8px}
  body.nav-open .main-nav{display:flex;position:absolute;top:64px;left:0;right:0;background:var(--green-900);flex-direction:column;padding:16px 20px;gap:14px;z-index:55}
  .header-actions{margin-left:auto}
  .cs-current{display:none}
  .cs-trigger{padding:8px 10px}
  .header-actions .btn-cta{padding:9px 14px;font-size:14px}
  .cs-menu{right:-40px}
  .hero h1{font-size:32px}
  .country-hero-inner{grid-template-columns:1fr}
  .content-layout{grid-template-columns:1fr;gap:0}
  .toc{position:static;margin-bottom:28px}
  .footer-grid{grid-template-columns:1fr;gap:28px}
  .footer-info{min-width:0}
  .btn-cta{margin-left:0}
  .header-inner .btn-cta{margin-left:auto}
}
@media(max-width:860px){
  .content-img--box{max-width:100%}
  .data-table{font-size:14.5px}
  .hero--image{padding:60px 0 64px}
}
@media(max-width:480px){
  .hero h1{font-size:27px}
  .section-h{font-size:24px}
  .hero-trust{flex-wrap:wrap;gap:14px}
  .data-table thead th,.data-table tbody th,.data-table tbody td{padding:9px 11px}
}

/* ---------- Optimización móvil y accesibilidad (PageSpeed) ---------- */
/* Evita reescalado raro de texto y scroll horizontal en móviles */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
/* Tap targets cómodos (>=44px) en pantallas táctiles, recomendación de Google */
@media(max-width:860px){
  .main-nav a{padding:10px 4px;font-size:16px;min-height:44px;display:flex;align-items:center}
  .btn-cta,.btn-ghost{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .header-actions .btn-cta{padding:11px 16px}
  .cs-trigger{min-height:42px}
  .cs-item{min-height:44px}
  .footer-links a{display:inline-block;padding:7px 0;min-height:40px}
  .country-chip{padding:9px 12px}
  .nav-toggle{min-width:44px;min-height:44px}
}
/* Imágenes responsivas siempre ajustadas a su contenedor (anti-CLS) */
.mt-media img,.content-img img{max-width:100%;height:auto}
/* Respeta preferencia de menos animación */
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
