/* =========================================================
   RALLY KART — SELECTOR DE PAÍS PERFORMANCE
   Solo se carga en la portada / página con [rk_selector_pais]
========================================================= */

body.rk-country-selector-page {
  background:#050607!important;
}

/* La portada es una landing: sin header global de Divi. */
body.rk-country-selector-page #main-header,
body.rk-country-selector-page #top-header,
body.rk-country-selector-page .et-l--header,
body.rk-country-selector-page header.et-l {
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}

/* Elimina márgenes/paddings generados por Divi solo en esta portada. */
body.rk-country-selector-page #page-container,
body.rk-country-selector-page #et-main-area,
body.rk-country-selector-page #main-content,
body.rk-country-selector-page .entry-content {
  margin:0!important;
  padding:0!important;
  background:#050607!important;
}

body.rk-country-selector-page #main-content .et_pb_section,
body.rk-country-selector-page #main-content .et_pb_row,
body.rk-country-selector-page #main-content .et_pb_column,
body.rk-country-selector-page #main-content .et_pb_module,
body.rk-country-selector-page #main-content .et_pb_code,
body.rk-country-selector-page #main-content .et_pb_code_inner,
body.rk-country-selector-page #main-content .et_pb_text,
body.rk-country-selector-page #main-content .et_pb_text_inner {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

#rk-country-selector,
#rk-country-selector * {
  box-sizing:border-box;
}

#rk-country-selector {
  --rk-red:#ef1d23;
  --rk-red2:#ff3933;
  --rk-text:#d7d7d7;
  --rk-muted:#aeb2b7;
  --rk-border:rgba(255,255,255,.16);
  --rk-max:1180px;

  position:relative;
  width:100%;
  min-height:100vh;
  min-height:100svh;
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:38px 18px 44px;

  color:#fff;
  font-family:Arial,Helvetica,sans-serif;

  background:
    radial-gradient(circle at 18% 18%,rgba(239,29,35,.22),transparent 28%),
    radial-gradient(circle at 82% 20%,rgba(255,255,255,.08),transparent 24%),
    linear-gradient(180deg,#050607 0%,#0b0d0f 100%);
}

#rk-country-selector::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(120deg,transparent 0 45%,rgba(255,255,255,.032) 46% 48%,transparent 49% 100%),
    radial-gradient(circle at 50% 100%,rgba(239,29,35,.08),transparent 40%);
}

#rk-country-selector a {
  color:inherit;
  text-decoration:none!important;
}

#rk-country-selector .rk-country-wrap {
  position:relative;
  z-index:2;
  width:100%;
  max-width:var(--rk-max);
  margin:0 auto;
  text-align:center;
}

#rk-country-selector .rk-country-logo {
  width:100%;
  margin:0 auto 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

#rk-country-selector .rk-country-logo img {
  display:block;
  width:clamp(210px,24vw,330px);
  max-width:100%;
  height:auto;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

#rk-country-selector .rk-country-kicker {
  margin:0 0 9px;
  color:var(--rk-red);
  font-family:'Eurostile LT Bold Extended','Eurostile',Arial,sans-serif;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:.8px;
  text-transform:uppercase;
}

#rk-country-selector h1 {
  margin:0;
  color:#fff;
  font-family:'Eurostile LT Bold Extended','Eurostile',Arial,sans-serif;
  font-size:clamp(38px,6vw,76px);
  font-weight:900;
  line-height:.96;
  letter-spacing:-2px;
}

#rk-country-selector .rk-country-sub {
  max-width:700px;
  margin:17px auto 30px;
  color:var(--rk-text);
  font-size:18px;
  line-height:1.5;
}

#rk-country-selector .rk-country-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  width:100%;
}

#rk-country-selector .rk-country-card {
  position:relative;
  isolation:isolate;
  min-height:420px;
  overflow:hidden;

  display:flex;
  align-items:flex-end;

  padding:22px;

  border:1px solid var(--rk-border);
  border-radius:22px;
  box-shadow:0 20px 48px rgba(0,0,0,.34);

  text-align:left;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

#rk-country-selector .rk-country-picture {
  position:absolute;
  inset:0;
  z-index:-3;
  display:block;
  width:100%;
  height:100%;
}

#rk-country-selector .rk-country-picture img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

#rk-country-selector .rk-country-card::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(0,0,0,.03) 0%,rgba(0,0,0,.18) 38%,rgba(0,0,0,.88) 100%);
}

#rk-country-selector .rk-country-card::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(118deg,transparent 0 38%,rgba(255,255,255,.055) 39% 43%,transparent 44% 100%);
}

#rk-country-selector .rk-country-card:hover,
#rk-country-selector .rk-country-card:focus-visible {
  transform:translateY(-4px);
  border-color:rgba(239,29,35,.60);
  box-shadow:0 26px 60px rgba(0,0,0,.42);
}

#rk-country-selector .rk-country-card:focus-visible {
  outline:2px solid var(--rk-red);
  outline-offset:3px;
}

#rk-country-selector .rk-country-flag {
  position:absolute;
  top:18px;
  right:18px;

  width:56px;
  height:56px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:rgba(10,12,14,.60);
  box-shadow:0 9px 24px rgba(0,0,0,.25);

  font-size:30px;
  line-height:1;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

#rk-country-selector .rk-country-content {
  display:block;
  width:100%;
  position:relative;
}

#rk-country-selector .rk-country-name {
  display:block;
  margin:0 0 11px;
  color:#fff;
  font-family:'Eurostile LT Bold Extended','Eurostile',Arial,sans-serif;
  font-size:38px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.5px;
  text-shadow:0 3px 14px rgba(0,0,0,.72);
}

#rk-country-selector .rk-country-description {
  display:block;
  min-height:54px;
  margin:0 0 18px;
  color:#e0e2e4;
  font-size:15px;
  line-height:1.48;
  text-shadow:0 3px 14px rgba(0,0,0,.72);
}

#rk-country-selector .rk-country-button {
  display:inline-flex;
  min-height:46px;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:12px 18px;

  border-radius:11px;
  background:linear-gradient(90deg,var(--rk-red),var(--rk-red2));
  box-shadow:0 10px 22px rgba(239,29,35,.24);

  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:1;
}

#rk-country-selector .rk-country-button b {
  font-size:17px;
  font-weight:700;
}

@media(max-width:900px) {
  #rk-country-selector {
    min-height:auto;
    padding:32px 18px 40px;
  }

  #rk-country-selector .rk-country-logo img {
    width:260px;
  }

  #rk-country-selector h1 {
    font-size:clamp(42px,8vw,62px);
    line-height:1;
  }

  #rk-country-selector .rk-country-sub {
    margin-bottom:24px;
  }

  #rk-country-selector .rk-country-grid {
    grid-template-columns:1fr;
    max-width:680px;
    margin:0 auto;
    gap:18px;
  }

  #rk-country-selector .rk-country-card {
    min-height:330px;
  }

  #rk-country-selector .rk-country-description {
    min-height:0;
    max-width:520px;
  }
}

@media(max-width:640px) {
  #rk-country-selector {
    padding:
      24px
      14px
      calc(32px + env(safe-area-inset-bottom));
  }

  #rk-country-selector .rk-country-logo {
    margin-bottom:10px;
  }

  #rk-country-selector .rk-country-logo img {
    width:225px;
  }

  #rk-country-selector .rk-country-kicker {
    font-size:11px;
    margin-bottom:8px;
  }

  #rk-country-selector h1 {
    font-size:clamp(40px,12vw,55px);
    letter-spacing:-1.4px;
  }

  #rk-country-selector .rk-country-sub {
    margin:15px auto 22px;
    font-size:16px;
    line-height:1.48;
  }

  #rk-country-selector .rk-country-grid {
    gap:16px;
  }

  #rk-country-selector .rk-country-card {
    min-height:330px;
    padding:20px;
    border-radius:18px;
  }

  #rk-country-selector .rk-country-flag {
    top:15px;
    right:15px;
    width:52px;
    height:52px;
    font-size:28px;
  }

  #rk-country-selector .rk-country-name {
    margin-bottom:10px;
    font-size:34px;
  }

  #rk-country-selector .rk-country-description {
    margin-bottom:17px;
    font-size:15px;
  }

  #rk-country-selector .rk-country-button {
    min-height:48px;
    padding:13px 18px;
    font-size:14px;
  }
}

@media(max-width:390px) {
  #rk-country-selector {
    padding-left:10px;
    padding-right:10px;
  }

  #rk-country-selector h1 {
    font-size:39px;
  }

  #rk-country-selector .rk-country-card {
    min-height:310px;
    padding:18px;
  }
}

@media(prefers-reduced-motion:reduce) {
  #rk-country-selector .rk-country-card {
    transition:none;
  }
}
