/* =========================================================
   REDSEAL COMPLIANCE
   STYLE.CSS
   Desktop + Tablet + Mobile
   ========================================================= */

/* ---------- VARIABLES ---------- */

:root {
  --red: #c91520;
  --red-dark: #9f0f17;
  --red-light: #e52a34;

  --gold: #c9a227;
  --gold-light: #e0bd55;

  --black: #111111;
  --black-soft: #1b1b1b;

  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #e9e9e9;
  --gray-dark: #555555;
  --text: #222222;

  --shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 18px 45px rgba(0, 0, 0, 0.14);

  --radius: 14px;
}


/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.65;

  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-wrapper {
  position: relative;

  width: 100%;
  min-height: 760px;

  overflow: hidden;

  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.56) 45%,
      rgba(0, 0, 0, 0.32) 100%
    );

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(1400px, calc(100% - 80px));
  min-height: 760px;

  margin: 0 auto;
  padding: 30px 0 55px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* ---------- HERO TOP ---------- */

.hero-top {
  width: 100%;

  display: flex;
  align-items: flex-start;

  gap: 40px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 190px;
  max-width: 190px;

  border-radius: 8px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.30);
}


/* ---------- NAV ---------- */

.main-nav {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 8px 10px;
}

.main-nav a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 12px;

  color: rgba(255, 255, 255, 0.94);

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;

  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 12px;
  right: 12px;
  bottom: 2px;

  height: 2px;

  background: var(--gold);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}


/* ---------- LANGUAGE ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 5px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 72px;

  padding: 5px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.lang-pill.light {
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.40);

  background: rgba(255, 255, 255, 0.10);

  backdrop-filter: blur(6px);
}

.lang-pill.light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.lang-active {
  color: #ffffff;

  background: var(--red);

  border: 1px solid var(--red);
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-title {
  max-width: 980px;

  margin: 60px auto 20px;

  color: #ffffff;

  text-align: center;

  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.12;

  font-weight: 700;

  letter-spacing: -1.5px;

  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  max-width: 850px;

  margin: 0 auto 25px;

  color: rgba(255, 255, 255, 0.94);

  text-align: center;

  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;

  font-weight: 400;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-badge {
  display: block;

  width: fit-content;
  max-width: 95%;

  margin: 0 auto;

  padding: 10px 20px;

  color: #ffffff;

  background: rgba(0, 0, 0, 0.42);

  border: 1px solid rgba(201, 162, 39, 0.75);

  border-radius: 999px;

  text-align: center;

  font-size: 14px;
  font-weight: 600;

  backdrop-filter: blur(8px);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   HERO BOTTOM
   ========================================================= */

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 55px;

  width: 100%;
}


/* ---------- PRIMARY BUTTON ---------- */

.btn-primary {
  appearance: none;

  border: none;

  padding: 15px 30px;

  border-radius: 8px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--red-light),
      var(--red-dark)
    );

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);

  box-shadow:
    0 15px 32px rgba(0, 0, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

section {
  width: min(1200px, calc(100% - 80px));

  margin: 0 auto;

  padding: 95px 0;
}

section + section {
  border-top: 1px solid #eeeeee;
}

.section-title {
  margin: 0 0 18px;

  color: var(--black);

  text-align: center;

  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;

  font-weight: 700;

  letter-spacing: -0.5px;
}

.section-title::after {
  content: "";

  display: block;

  width: 55px;
  height: 3px;

  margin: 17px auto 0;

  background: var(--red);
}

.section-subtitle {
  max-width: 900px;

  margin: 0 auto 16px;

  color: var(--gray-dark);

  text-align: center;

  font-size: 17px;

  line-height: 1.75;
}


/* =========================================================
   CARDS
   ========================================================= */

.cards-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;

  margin-top: 35px;
}

.card {
  position: relative;

  padding: 30px;

  background: #ffffff;

  border: 1px solid #e7e7e7;

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);

  border-color: rgba(201, 162, 39, 0.45);

  box-shadow: var(--shadow-hover);
}

.card-title {
  margin-bottom: 13px;

  color: var(--black);

  font-size: 20px;
  line-height: 1.3;

  font-weight: 700;
}

.card-title::before {
  content: "";

  display: inline-block;

  width: 5px;
  height: 20px;

  margin-right: 10px;

  vertical-align: -3px;

  background: var(--red);

  border-radius: 3px;
}

.card-text {
  margin: 0;

  color: var(--gray-dark);

  font-size: 15.5px;

  line-height: 1.75;
}

.card ul {
  padding-left: 20px;
}

.card li {
  margin-bottom: 5px;
}


/* ---------- SPECIAL GOLD CARD ---------- */

.card[style*="border:2px solid var(--gold)"] {
  border: 2px solid var(--gold) !important;
}

.card blockquote {
  color: #333333;

  background: #faf7ed;

  border-radius: 6px;
}


/* =========================================================
   ASIA → MÉXICO
   ========================================================= */

#asia {
  background:
    linear-gradient(
      180deg,
      #fafafa 0%,
      #ffffff 100%
    );
}

#asia .section-title[style] {
  margin-top: 38px;
}


/* =========================================================
   PLATFORM LOGOS
   ========================================================= */

.logo-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-top: 35px;
}

.logo-item {
  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: #ffffff;

  border: 1px solid #e3e3e3;

  border-radius: 12px;

  color: #222222;

  text-align: center;

  font-size: 17px;
  font-weight: 700;

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.05);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.logo-item:hover {
  transform: translateY(-4px);

  border-color: var(--gold);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.09);
}


/* =========================================================
   CONTACT
   ========================================================= */

#contacto {
  background: #fafafa;
}

#contacto > div {
  max-width: 760px;

  margin-left: auto;
  margin-right: auto;
}

#contacto strong {
  color: var(--black);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  width: 100%;

  padding: 65px max(40px, calc((100% - 1200px) / 2));

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 60px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #111111,
      #202020
    );

  border-top: 4px solid var(--gold);
}

.footer-left {
  flex: 1;

  max-width: 650px;
}

.footer-logo {
  margin-bottom: 16px;

  color: #ffffff;

  font-size: 25px;
  font-weight: 800;

  letter-spacing: 2px;
}

.footer-logo::first-letter {
  color: var(--red);
}

.footer-left > div:last-child {
  color: rgba(255, 255, 255, 0.70);

  font-size: 14px;

  line-height: 1.7;
}

.footer-right {
  flex: 0 0 auto;

  text-align: right;

  color: rgba(255, 255, 255, 0.82);

  font-size: 14px;

  line-height: 1.8;
}

.footer-right img {
  margin-left: auto;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   ANIMATION
   ========================================================= */

.fade-in {
  animation:
    redsealFadeIn 0.75s ease both;
}

@keyframes redsealFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   CHINESE LANGUAGE
   ========================================================= */

html[lang="zh"],
html[lang="zh"] body {
  font-family:
    Inter,
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    Arial,
    sans-serif;
}

html[lang="zh"] .hero-title {
  letter-spacing: 0;
  line-height: 1.35;
}

html[lang="zh"] .section-title {
  letter-spacing: 0;
}

html[lang="zh"] .card-title {
  line-height: 1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .hero-content {
    width: min(100% - 50px, 1200px);
  }

  .hero-top {
    gap: 25px;
  }

  .logo img {
    width: 155px;
    max-width: 155px;
  }

  .main-nav {
    gap: 5px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 6px 8px;
  }

  .hero-title {
    max-width: 850px;

    font-size: clamp(35px, 5vw, 55px);
  }

  section {
    width: min(100% - 50px, 1100px);
    padding: 80px 0;
  }

  .cards-grid {
    gap: 18px;
  }

  .card {
    padding: 25px;
  }

  footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  body {
    font-size: 15px;
  }


  /* ---------- HERO ---------- */

  .hero-wrapper {
    min-height: auto;

    background: #111111;
  }

  .hero-bg {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.60) 45%,
        rgba(0, 0, 0, 0.82) 100%
      );
  }

  .hero-content {
    width: calc(100% - 30px);
    min-height: auto;

    padding: 20px 0 35px;

    gap: 35px;
  }


  /* ---------- HERO TOP ---------- */

  .hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;
  }

  .logo {
    width: 100%;

    display: flex;
    justify-content: center;
  }

  .logo img {
    width: 145px;
    max-width: 145px;
  }


  /* ---------- NAV ---------- */

  .main-nav {
    width: 100%;

    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 5px;

    margin-top: 3px;
  }

  .main-nav a {
    min-height: 38px;

    padding: 7px 5px;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 6px;

    font-size: 11.5px;

    text-align: center;

    white-space: normal;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
  }


  /* ---------- LANGUAGES ---------- */

  .lang-switch {
    margin-top: 10px;

    gap: 6px;
  }

  .lang-pill {
    min-width: 65px;

    padding: 5px 9px;

    font-size: 11px;
  }


  /* ---------- HERO TEXT ---------- */

  .hero-title {
    max-width: 100%;

    margin: 5px auto 17px;

    font-size: clamp(30px, 9vw, 42px);

    line-height: 1.18;

    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    max-width: 100%;

    margin-bottom: 18px;

    font-size: 15.5px;

    line-height: 1.65;
  }

  .hero-badge {
    max-width: 100%;

    padding: 9px 13px;

    border-radius: 12px;

    font-size: 11.5px;

    line-height: 1.55;
  }


  /* ---------- HERO BOTTOM ---------- */

  .hero-bottom {
    flex-direction: column;

    gap: 25px;

    align-items: center;
  }

  .btn-primary {
    width: 100%;
    max-width: 340px;

    padding: 14px 20px;

    font-size: 15px;
  }

  .hero-bottom > div {
    width: 100%;

    align-items: center !important;
  }


  /* ---------- SECTIONS ---------- */

  section {
    width: calc(100% - 30px);

    padding: 60px 0;
  }

  .section-title {
    font-size: 29px;

    line-height: 1.25;
  }

  .section-title::after {
    width: 45px;

    margin-top: 14px;
  }

  .section-subtitle {
    font-size: 15.5px;

    line-height: 1.75;
  }


  /* ---------- CARDS ---------- */

  .cards-grid {
    grid-template-columns: 1fr;

    gap: 16px;

    margin-top: 28px;
  }

  .card {
    padding: 23px 20px;

    border-radius: 12px;
  }

  .card:hover {
    transform: none;
  }

  .card-title {
    font-size: 18px;

    line-height: 1.4;
  }

  .card-title::before {
    width: 4px;
    height: 18px;

    margin-right: 8px;
  }

  .card-text {
    font-size: 14.5px;

    line-height: 1.75;
  }

  .card ul {
    padding-left: 20px;
  }


  /* ---------- ASIA ---------- */

  #asia .section-title[style] {
    font-size: 21px !important;

    margin-top: 30px;
  }


  /* ---------- PLATFORM ---------- */

  .logo-grid {
    grid-template-columns: 1fr;

    gap: 12px;

    margin-top: 28px;
  }

  .logo-item {
    min-height: 70px;

    font-size: 16px;
  }


  /* ---------- CONTACT ---------- */

  #contacto > div {
    width: 100%;
  }

  #contacto > div > div {
    font-size: 14px !important;
  }

  #contacto span {
    font-size: 18px !important;

    word-break: break-word;
  }


  /* ---------- FOOTER ---------- */

  footer {
    flex-direction: column;

    align-items: center;

    gap: 35px;

    padding: 45px 25px;

    text-align: center;
  }

  .footer-left {
    width: 100%;

    max-width: 100%;
  }

  .footer-logo {
    font-size: 22px;
  }

  .footer-right {
    width: 100%;

    text-align: center;
  }

  .footer-right img {
    margin-left: auto;
    margin-right: auto;
  }


  /* ---------- FAQ / ADVANCED CARD ---------- */

  .card[style*="border:2px solid var(--gold)"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card[style*="border:2px solid var(--gold)"] > div[style*="position:absolute"] {
    right: 8px !important;
    top: -13px !important;

    font-size: 11px !important;

    padding: 6px 12px !important;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

  .hero-content {
    width: calc(100% - 22px);

    padding-top: 15px;
  }

  .logo img {
    width: 125px;
    max-width: 125px;
  }

  .main-nav a {
    min-height: 36px;

    font-size: 10.5px;
  }

  .hero-title {
    font-size: 29px;

    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 14.5px;
  }

  .hero-badge {
    font-size: 10.5px;
  }

  section {
    width: calc(100% - 22px);

    padding: 50px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .card {
    padding: 20px 17px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-text {
    font-size: 14px;
  }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

  .hero-wrapper {
    min-height: auto;
  }

  .hero-overlay {
    display: none;
  }

  .hero-title,
  .hero-subtitle,
  .hero-badge {
    color: #000000;
    text-shadow: none;
  }

  .main-nav,
  .lang-switch {
    display: none;
  }

  .card {
    box-shadow: none;
    break-inside: avoid;
  }

  footer {
    background: #ffffff;
    color: #000000;
  }
}
