/* ========================================================================== 
   R SCRIPTS — Página principal 2026
   Este archivo solo se carga en portal/index.html para no modificar catálogo,
   ruletazo, encuestas ni el panel administrativo.
   ========================================================================== */

.home-page {
  --home-bg: #08090a;
  --home-bg-deep: #050607;
  --home-graphite: #111315;
  --home-graphite-2: #17191c;
  --home-panel: #141619;
  --home-panel-light: #1c1f23;
  --home-silver: #c7cbd0;
  --home-silver-light: #eef0f2;
  --home-gray: #8c9299;
  --home-gray-dark: #5f656c;
  --home-red: #e31b2f;
  --home-red-bright: #ff3045;
  --home-red-dark: #8f0c19;
  --home-line: rgba(204, 209, 215, .16);
  --home-line-strong: rgba(204, 209, 215, .28);
  --home-shadow: 0 28px 80px rgba(0, 0, 0, .35);
  --home-container: min(1440px, calc(100% - 9vw));
  margin: 0;
  color: var(--home-silver-light);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 4%, rgba(227, 27, 47, .14), transparent 29rem),
    radial-gradient(circle at 90% 21%, rgba(190, 196, 202, .065), transparent 34rem),
    linear-gradient(180deg, #0a0b0d 0%, var(--home-bg) 48%, #060708 100%);
}

.home-page::before {
  z-index: -2;
  opacity: .42;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,.018) 44% 44.15%, transparent 44.15% 100%);
}

.home-page #stars {
  z-index: -4;
  opacity: .28;
}

.home-page * {
  scrollbar-width: thin;
  scrollbar-color: var(--home-red) var(--home-graphite);
}

.home-page ::selection {
  color: #fff;
  background: var(--home-red);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page .brand-text strong {
  font-family: "Manrope", "Inter", sans-serif;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 2px solid var(--home-red-bright);
  outline-offset: 4px;
}

/* Header ------------------------------------------------------------------ */
.home-page .home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  height: 88px;
  padding: 0 max(4.5vw, 28px);
  border-bottom: 1px solid var(--home-line);
  background: rgba(8, 9, 10, .94);
  backdrop-filter: none;
  transition: height .25s ease, background .25s ease, box-shadow .25s ease;
}

.home-page .home-header.is-scrolled {
  height: 76px;
  background: rgba(7, 8, 9, .98);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.home-page .brand {
  gap: 13px;
  flex: 0 0 auto;
}

.home-page .brand-logo {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(227, 27, 47, .8);
  border-radius: 5px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  font-weight: 800;
  background:
    linear-gradient(145deg, rgba(227, 27, 47, .28), transparent 60%),
    var(--home-graphite-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 8px 22px rgba(0,0,0,.25);
}

.home-page .brand-logo::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--home-red-bright);
  border-bottom: 2px solid var(--home-red-bright);
}

.home-page .brand-text {
  gap: 3px;
}

.home-page .brand-text strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 2.1px;
}

.home-page .brand-text small {
  color: var(--home-gray);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.home-page .nav {
  align-items: center;
  gap: clamp(15px, 1.55vw, 28px);
  margin-left: auto;
  margin-right: clamp(20px, 2.4vw, 42px);
  color: var(--home-gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .25px;
}

.home-page .nav a {
  position: relative;
  padding: 12px 0;
  transition: color .2s ease;
}

.home-page .nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: var(--home-red);
  transition: right .25s ease;
}

.home-page .nav a:hover,
.home-page .nav a.active {
  color: #fff;
  text-shadow: none;
}

.home-page .nav a:hover::after,
.home-page .nav a.active::after {
  right: 0;
}

.home-page .header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid var(--home-line-strong);
  border-radius: 4px;
  color: #fff;
  background: var(--home-graphite-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-page .header-cta:hover {
  transform: translateY(-1px);
  border-color: var(--home-red);
  background: #202327;
}

.home-page .header-cta i { color: var(--home-red-bright); font-size: 10px; }

.home-page .menu-btn {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--home-line-strong);
  border-radius: 4px;
  color: #fff;
  background: var(--home-graphite-2);
  cursor: pointer;
}

.home-page .menu-btn span {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.home-page .menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.home-page .menu-btn.open span:nth-child(2) { opacity: 0; }
.home-page .menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Global homepage structure ------------------------------------------------ */
.home-page main { overflow: hidden; }

.home-page .home-section {
  width: var(--home-container);
  margin-inline: auto;
  padding: 124px 0;
}

.home-page .section-label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 54px;
  color: var(--home-gray);
}

.home-page .section-label::after {
  content: "";
  width: min(180px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, var(--home-line-strong), transparent);
}

.home-page .section-label span {
  color: var(--home-red-bright);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.home-page .section-label p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.home-page .eyebrow {
  margin-bottom: 18px;
  color: var(--home-red-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.3px;
}

.home-page h2 {
  color: #f5f6f7;
  font-size: clamp(35px, 4.25vw, 66px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2.5px;
}

.home-page .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: end;
  gap: clamp(42px, 8vw, 130px);
  margin-bottom: 62px;
}

.home-page .section-heading > p {
  margin: 0 0 5px;
  color: var(--home-gray);
  font-size: 14px;
  line-height: 1.85;
}

.home-page .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
}

.home-page .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Hero -------------------------------------------------------------------- */
.home-page .hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr);
  align-items: center;
  gap: clamp(52px, 7vw, 118px);
  padding-top: 150px;
  padding-bottom: 105px;
}

.home-page .hero::before {
  content: "R1";
  position: absolute;
  top: 9%;
  right: -5%;
  z-index: -1;
  color: rgba(255,255,255,.014);
  font-family: "Manrope", sans-serif;
  font-size: clamp(260px, 35vw, 560px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -40px;
  pointer-events: none;
}

.home-page .hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 27px;
  color: var(--home-silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-page .kicker-line {
  width: 42px;
  height: 2px;
  background: var(--home-red);
  box-shadow: 12px 0 0 rgba(227,27,47,.35);
}

.home-page h1 {
  max-width: 840px;
  color: #f6f7f8;
  font-size: clamp(52px, 6.1vw, 92px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -5px;
  text-shadow: none;
}

.home-page h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 229, 232, .62);
  text-stroke: 1px rgba(226, 229, 232, .62);
}

.home-page .hero-text {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--home-gray);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.85;
}

.home-page .hero-actions {
  gap: 12px;
  margin-top: 34px;
}

.home-page .btn {
  min-height: 52px;
  gap: 11px;
  padding: 0 23px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: none;
}

.home-page .btn:hover { transform: translateY(-2px); }

.home-page .btn.primary {
  border: 1px solid var(--home-red);
  color: #fff;
  background: linear-gradient(135deg, var(--home-red-bright), var(--home-red-dark));
  box-shadow: 0 12px 32px rgba(227, 27, 47, .19);
}

.home-page .btn.primary:hover {
  box-shadow: 0 15px 38px rgba(227, 27, 47, .28);
}

.home-page .btn.ghost {
  border: 1px solid var(--home-line-strong);
  color: var(--home-silver-light);
  background: rgba(20,22,25,.86);
}

.home-page .btn.ghost:hover {
  border-color: rgba(235,238,241,.44);
  background: #1b1e21;
  box-shadow: none;
}

.home-page .hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 35px;
  padding-top: 26px;
  border-top: 1px solid var(--home-line);
  color: var(--home-gray);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.home-page .hero-capabilities span { display: flex; align-items: center; gap: 8px; }
.home-page .hero-capabilities i { color: var(--home-red-bright); font-size: 9px; }

.home-page .hero-visual {
  position: relative;
  isolation: isolate;
}

.home-page .hero-visual::before,
.home-page .hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.home-page .hero-visual::before {
  inset: 9% -8% -8% 12%;
  border: 1px solid rgba(227,27,47,.16);
  background: linear-gradient(145deg, rgba(227,27,47,.055), transparent 50%);
  transform: skewY(-3deg);
}

.home-page .hero-visual::after {
  width: 110px;
  height: 4px;
  top: -2px;
  right: 8%;
  background: var(--home-red);
}

.home-page .visual-frame {
  position: relative;
  min-height: 575px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 24px;
  border: 1px solid var(--home-line-strong);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(13,15,17,.94) 37%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--home-shadow), inset 0 0 45px rgba(255,255,255,.018);
  overflow: hidden;
}

.home-page .frame-corners::before,
.home-page .frame-corners::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.home-page .frame-corners::before {
  top: 11px;
  left: 11px;
  border-top: 2px solid var(--home-red);
  border-left: 2px solid var(--home-red);
}

.home-page .frame-corners::after {
  right: 11px;
  bottom: 11px;
  border-right: 2px solid var(--home-silver);
  border-bottom: 2px solid var(--home-silver);
  opacity: .34;
}

.home-page .visual-header,
.home-page .visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-page .visual-header {
  padding: 7px 7px 20px;
  border-bottom: 1px solid var(--home-line);
}

.home-page .visual-header div { display: grid; gap: 5px; }
.home-page .visual-header small,
.home-page .visual-footer,
.home-page .visual-data-grid small {
  color: var(--home-gray-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.home-page .visual-header strong {
  color: var(--home-silver-light);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  letter-spacing: .2px;
}

.home-page .system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--home-silver);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.home-page .system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-red-bright);
  box-shadow: 0 0 0 5px rgba(227,27,47,.08), 0 0 14px rgba(227,27,47,.5);
  animation: homePulse 2s infinite;
}

.home-page .visual-brandmark {
  position: relative;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  margin: 25px 0;
}

.home-page .brandmark-ring,
.home-page .brandmark-axis {
  position: absolute;
  pointer-events: none;
}

.home-page .brandmark-ring { border-radius: 50%; }

.home-page .ring-one {
  inset: 12px;
  border: 1px solid rgba(215,219,223,.22);
  border-top-color: var(--home-red);
  border-bottom-color: rgba(227,27,47,.5);
  animation: rotateRing 14s linear infinite;
}

.home-page .ring-one::before,
.home-page .ring-one::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-red-bright);
  box-shadow: 0 0 15px rgba(227,27,47,.5);
}
.home-page .ring-one::before { top: 26px; left: 23px; }
.home-page .ring-one::after { right: 25px; bottom: 25px; }

.home-page .ring-two {
  inset: 43px;
  border: 1px dashed rgba(213,218,223,.18);
  animation: rotateRingReverse 20s linear infinite;
}

.home-page .brandmark-core {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227,27,47,.72);
  border-radius: 50%;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 53px;
  font-weight: 800;
  line-height: 1;
  background: radial-gradient(circle at 35% 30%, #282c30, #111315 68%);
  box-shadow: 0 0 0 11px rgba(255,255,255,.018), 0 0 45px rgba(227,27,47,.14);
}

.home-page .brandmark-core span {
  position: absolute;
  right: 19px;
  bottom: 20px;
  color: var(--home-red-bright);
  font-size: 13px;
}

.home-page .axis-x { left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); }
.home-page .axis-y { top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.14), transparent); }

.home-page .visual-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-page .visual-data-grid article {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 13px 10px;
  border: 1px solid var(--home-line);
  border-radius: 3px;
  background: rgba(255,255,255,.025);
}

.home-page .data-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227,27,47,.25);
  color: var(--home-red-bright);
  background: rgba(227,27,47,.06);
  font-size: 12px;
}

.home-page .visual-data-grid article div { min-width: 0; display: grid; gap: 3px; }
.home-page .visual-data-grid strong { overflow: hidden; color: var(--home-silver); font-size: 10px; text-overflow: ellipsis; }
.home-page .data-index { position: absolute; top: 5px; right: 6px; color: rgba(255,255,255,.14); font-size: 7px; }

.home-page .visual-footer {
  margin-top: 18px;
  padding: 15px 6px 4px;
  border-top: 1px solid var(--home-line);
}

.home-page .signal-bars { height: 14px; display: flex; align-items: end; gap: 3px; }
.home-page .signal-bars i { width: 3px; background: var(--home-red); opacity: .9; }
.home-page .signal-bars i:nth-child(1) { height: 4px; }
.home-page .signal-bars i:nth-child(2) { height: 7px; }
.home-page .signal-bars i:nth-child(3) { height: 10px; }
.home-page .signal-bars i:nth-child(4) { height: 13px; }
.home-page .signal-bars i:nth-child(5) { height: 9px; opacity: .3; }

.home-page .hero-scroll {
  position: absolute;
  left: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--home-gray-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
}
.home-page .hero-scroll i { color: var(--home-red); animation: scrollArrow 1.8s ease-in-out infinite; }

/* Expertise strip --------------------------------------------------------- */
.home-page .expertise-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--home-line);
  background: #0d0f11;
}

.home-page .expertise-strip::before,
.home-page .expertise-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 12vw;
  pointer-events: none;
}
.home-page .expertise-strip::before { left: 0; background: linear-gradient(90deg, #0d0f11, transparent); }
.home-page .expertise-strip::after { right: 0; background: linear-gradient(-90deg, #0d0f11, transparent); }

.home-page .expertise-track {
  width: max-content;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: 5vw;
  color: var(--home-gray);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.home-page .expertise-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--home-red);
  box-shadow: 0 0 10px rgba(227,27,47,.4);
}

/* About ------------------------------------------------------------------- */
.home-page .about-section { padding-bottom: 110px; }

.home-page .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .62fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: start;
}

.home-page .about-copy h2 { max-width: 900px; }

.home-page .about-details {
  padding-top: 38px;
  border-top: 1px solid var(--home-line-strong);
}

.home-page .about-details p {
  margin: 0 0 19px;
  color: var(--home-gray);
  font-size: 14px;
  line-height: 1.85;
}

.home-page .text-link,
.home-page .outline-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--home-silver-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.home-page .text-link {
  margin-top: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--home-red);
}

.home-page .text-link i,
.home-page .outline-link i { color: var(--home-red-bright); transition: transform .2s ease; }
.home-page .text-link:hover i,
.home-page .outline-link:hover i { transform: translateX(4px); }

.home-page .principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 90px;
  border: 1px solid var(--home-line);
  background: var(--home-line);
}

.home-page .principle-card {
  position: relative;
  min-height: 285px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%),
    var(--home-graphite);
  transition: background .25s ease;
}

.home-page .principle-card:hover { background: var(--home-panel-light); }

.home-page .principle-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--home-red);
  transition: width .3s ease;
}
.home-page .principle-card:hover::after { width: 100%; }

.home-page .principle-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: rgba(255,255,255,.16);
  font-size: 10px;
  font-weight: 800;
}

.home-page .principle-card > i {
  margin-bottom: 65px;
  color: var(--home-red-bright);
  font-size: 25px;
}

.home-page .principle-card h3 {
  margin-bottom: 13px;
  color: #f3f4f5;
  font-size: 21px;
  letter-spacing: -.4px;
}

.home-page .principle-card p {
  max-width: 330px;
  margin: 0;
  color: var(--home-gray);
  font-size: 13px;
  line-height: 1.75;
}

/* Services ---------------------------------------------------------------- */
.home-page .services-section {
  width: 100%;
  max-width: none;
  padding-inline: max(4.5vw, calc((100vw - 1440px) / 2));
  border-block: 1px solid var(--home-line);
  background:
    radial-gradient(circle at 100% 0, rgba(227,27,47,.07), transparent 28rem),
    #0b0d0f;
}

.home-page .service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-page .service-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border: 1px solid var(--home-line);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 34%),
    var(--home-panel);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.home-page .service-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  top: -100px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 56px rgba(255,255,255,.012);
  transition: border-color .25s ease, transform .5s ease;
}

.home-page .service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227,27,47,.45);
  background: var(--home-panel-light);
}
.home-page .service-card:hover::before { transform: scale(1.08); border-color: rgba(227,27,47,.28); }

.home-page .service-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--home-gray-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.home-page .service-topline i {
  color: var(--home-red-bright);
  font-size: 25px;
}

.home-page .service-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 90px;
}

.home-page .service-content h3 {
  margin-bottom: 15px;
  color: #f4f5f6;
  font-size: 25px;
  letter-spacing: -.7px;
}

.home-page .service-content p {
  margin: 0;
  color: var(--home-gray);
  font-size: 13px;
  line-height: 1.75;
}

.home-page .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 25px;
}

.home-page .service-tags span {
  padding: 7px 9px;
  border: 1px solid var(--home-line);
  color: var(--home-gray);
  background: rgba(255,255,255,.018);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.home-page .service-card > a {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-line-strong);
  color: var(--home-silver);
  background: rgba(255,255,255,.025);
  font-size: 11px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.home-page .service-card > a:hover { color: #fff; border-color: var(--home-red); background: var(--home-red); }
.home-page .service-content { padding-right: 48px; }

/* Articles ---------------------------------------------------------------- */
.home-page .articles-section {
  overflow: visible;
  padding-top: 124px;
}

.home-page .outline-link {
  min-height: 45px;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--home-line-strong);
  background: rgba(255,255,255,.02);
}
.home-page .outline-link:hover { border-color: rgba(227,27,47,.6); background: rgba(227,27,47,.055); }

.home-page .article-row-block { margin-bottom: 62px; }

.home-page .row-title,
.home-page .articles-section .row-title.compact-title,
.home-page .partners-section .row-title {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 0 16px;
  border-left: 2px solid var(--home-red);
  border-bottom: 1px solid var(--home-line);
  color: var(--home-silver-light);
  background: linear-gradient(90deg, rgba(227,27,47,.06), transparent 45%);
  text-transform: none;
}

.home-page .row-title span,
.home-page .partners-section .row-title span,
.home-page .articles-section .row-title.compact-title span {
  color: var(--home-silver-light);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.home-page .row-title small {
  margin-left: auto;
  color: var(--home-gray-dark);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.home-page .articles-marquee {
  width: 100%;
  min-height: 340px;
  margin-inline: 0;
}

.home-page .marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.home-page .marquee-track {
  gap: 16px;
  padding: 4px 0 20px;
}

.home-page .articles-section .article-card,
.home-page .article-card {
  flex: 0 0 clamp(245px, 20vw, 300px);
  width: clamp(245px, 20vw, 300px);
  min-width: clamp(245px, 20vw, 300px);
  border: 1px solid var(--home-line);
  border-radius: 5px;
  background: var(--home-panel);
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.home-page .article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227,27,47,.55);
  background: var(--home-panel-light);
}

.home-page .articles-section .article-image,
.home-page .article-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(.88) contrast(1.04);
}

.home-page .articles-section .article-content,
.home-page .article-content {
  min-height: 156px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 20px;
}

.home-page .articles-section .article-content h3,
.home-page .article-content h3 {
  overflow: hidden;
  color: var(--home-silver-light);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .article-price,
.home-page .new-price {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.home-page .old-price { color: var(--home-gray-dark); font-size: 10px; }

.home-page .discount-price-wrap {
  min-height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.home-page .discount-badge,
.home-page .floating-discount {
  border: 1px solid var(--home-red);
  border-radius: 2px;
  color: #fff;
  background: var(--home-red);
  box-shadow: none;
  font-size: 9px;
  font-weight: 800;
}

.home-page .floating-discount {
  top: 13px;
  right: 13px;
  z-index: 3;
  padding: 7px 9px;
}

.home-page .discount-badge { padding: 4px 6px; }

.home-page .article-btn {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-line-strong);
  border-radius: 3px;
  color: var(--home-silver-light);
  background: #111315;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  transition: border-color .2s ease, background .2s ease;
}
.home-page .article-btn:hover { border-color: var(--home-red); background: var(--home-red); }

.home-page .empty-articles {
  width: 100%;
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  border: 1px dashed var(--home-line-strong);
  border-radius: 4px;
  color: var(--home-gray);
  background: rgba(255,255,255,.014);
}
.home-page .empty-articles i { color: var(--home-red-bright); font-size: 27px; }
.home-page .empty-articles p { margin: 0; font-size: 12px; }

/* Partners ---------------------------------------------------------------- */
.home-page .partners-section {
  width: 100%;
  max-width: none;
  padding-inline: max(4.5vw, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--home-line);
  background: linear-gradient(180deg, #0b0d0f, #08090a);
}

.home-page .partner-category-block { margin-top: 62px; }
.home-page .partner-category-block:first-of-type { margin-top: 0; }

.home-page .partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.home-page .partner-card,
.home-page .partner-card.dynamic-partner {
  position: relative;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 9px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  color: inherit;
  background: var(--home-panel);
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.home-page .partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227,27,47,.55);
  background: var(--home-panel-light);
}

.home-page .partner-card.official-partner-card,
.home-page .partner-card.server-partner-card { width: 100%; }

.home-page .partner-card img,
.home-page .partner-card.official-partner-card img,
.home-page .partner-card.server-partner-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(.82) contrast(1.04);
}

.home-page .partner-card-name {
  display: block;
  margin: 10px 4px 3px;
  overflow: hidden;
  color: var(--home-silver-light);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .partner-creator-badge {
  position: static;
  display: block;
  width: fit-content;
  margin: 0 4px 4px;
  padding: 4px 6px;
  border: 1px solid rgba(227,27,47,.35);
  border-radius: 2px;
  color: #ff8490;
  background: rgba(227,27,47,.07);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

/* Modal ------------------------------------------------------------------- */
.home-page .modal-overlay {
  z-index: 100;
  background: rgba(3,4,5,.88);
  backdrop-filter: none;
}

.home-page .modal-box {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid var(--home-line-strong);
  border-radius: 5px;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    #111315;
  background-size: 26px 26px;
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.home-page .modal-close {
  top: 15px;
  right: 15px;
  border-color: var(--home-line-strong);
  border-radius: 3px;
  background: #1a1d20;
}
.home-page .modal-close:hover { border-color: var(--home-red); color: #fff; }

.home-page .modal-head { padding-right: 48px; }
.home-page .modal-head h3 { color: #fff; font-size: 28px; }

.home-page .partner-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .partner-links.single-button { grid-template-columns: minmax(180px, 240px); }

.home-page .partner-link {
  min-height: 116px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  color: var(--home-silver-light);
  background: rgba(255,255,255,.025);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.home-page .partner-link:hover { transform: translateY(-3px); border-color: var(--home-red); background: rgba(227,27,47,.055); }
.home-page .partner-link-icon { border-radius: 3px; background: #202327; }

/* Contact ----------------------------------------------------------------- */
.home-page .contact-section { padding-top: 100px; padding-bottom: 120px; }

.home-page .contact-box {
  position: relative;
  max-width: none;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: clamp(45px, 8vw, 125px);
  margin: 0;
  padding: clamp(42px, 6vw, 88px);
  border: 1px solid var(--home-line-strong);
  border-radius: 6px;
  text-align: left;
  background:
    linear-gradient(120deg, rgba(227,27,47,.12), transparent 43%),
    linear-gradient(145deg, rgba(255,255,255,.04), transparent 55%),
    #111315;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.home-page .contact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 3px;
  background: linear-gradient(90deg, var(--home-red-bright), transparent);
}

.home-page .contact-box::after {
  content: "R";
  position: absolute;
  right: -20px;
  bottom: -95px;
  color: rgba(255,255,255,.025);
  font-family: "Manrope", sans-serif;
  font-size: 330px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.home-page .contact-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  pointer-events: none;
}

.home-page .contact-copy,
.home-page .contact-actions { position: relative; z-index: 2; }
.home-page .contact-copy h2 { max-width: 850px; }
.home-page .contact-copy > p:last-child { max-width: 690px; margin: 24px 0 0; color: var(--home-gray); font-size: 14px; line-height: 1.8; }
.home-page .contact-actions { display: grid; gap: 11px; }
.home-page .contact-actions .btn { width: 100%; }
.home-page .contact-code { position: absolute; left: 28px; bottom: 18px; color: rgba(255,255,255,.18); font-size: 7px; font-weight: 800; letter-spacing: 1.7px; }

/* Footer ------------------------------------------------------------------ */
.home-page .home-footer {
  padding: 0 max(4.5vw, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--home-line);
  color: var(--home-gray);
  background: #060708;
  text-align: left;
}

.home-page .footer-main {
  min-height: 145px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 38px;
}

.home-page .footer-brand { justify-self: start; }

.home-page .footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 40px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}
.home-page .footer-nav a:hover { color: #fff; }

.home-page .footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.home-page .footer-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 3px;
  color: var(--home-silver);
  background: var(--home-graphite);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.home-page .footer-socials a:hover { transform: translateY(-2px); border-color: var(--home-red); background: rgba(227,27,47,.08); }
.home-page .footer-socials img { width: 17px; height: 17px; object-fit: contain; }

.home-page .footer-bottom {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--home-line);
  color: var(--home-gray-dark);
  font-size: 9px;
  letter-spacing: .5px;
}
.home-page .footer-bottom p { margin: 0; }
.home-page .footer-bottom p:last-child { text-transform: uppercase; letter-spacing: 1.4px; }

/* Animations -------------------------------------------------------------- */
@keyframes homePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

@keyframes rotateRing { to { transform: rotate(360deg); } }
@keyframes rotateRingReverse { to { transform: rotate(-360deg); } }

@keyframes scrollArrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1240px) {
  .home-page .home-header { padding-inline: 3.5vw; }
  .home-page .nav { gap: 15px; margin-right: 18px; font-size: 10px; }
  .home-page .header-cta { padding-inline: 13px; }
  .home-page .hero { grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr); gap: 48px; }
  .home-page .visual-frame { min-height: 530px; }
  .home-page .partners-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-page .footer-main { grid-template-columns: 1fr auto; }
  .home-page .footer-nav { display: none; }
}

@media (max-width: 1020px) {
  .home-page .home-header { height: 76px; }
  .home-page .menu-btn { display: flex; order: 3; }
  .home-page .header-cta { margin-left: auto; order: 2; }
  .home-page .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 49;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 12px max(4.5vw, 24px) 22px;
    border-bottom: 1px solid var(--home-line-strong);
    background: #0b0d0f;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  }
  .home-page .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .home-page .nav a { padding: 15px 2px; border-bottom: 1px solid var(--home-line); font-size: 12px; }
  .home-page .nav a::after { display: none; }

  .home-page .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 145px;
    padding-bottom: 110px;
  }
  .home-page .hero-content { max-width: 850px; }
  .home-page .hero-visual { width: min(680px, 100%); margin: 10px auto 0; }
  .home-page .hero-scroll { display: none; }

  .home-page .about-layout,
  .home-page .section-heading { grid-template-columns: 1fr; gap: 35px; }
  .home-page .about-details { max-width: 760px; padding-top: 30px; }
  .home-page .section-heading > p { max-width: 670px; }

  .home-page .service-list { grid-template-columns: 1fr; }
  .home-page .service-card { min-height: 310px; }
  .home-page .service-content { padding-top: 65px; }

  .home-page .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .contact-box { grid-template-columns: 1fr; gap: 38px; }
  .home-page .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-page { --home-container: min(100% - 40px, 680px); }
  .home-page .home-header { padding-inline: 20px; }
  .home-page .brand-text small { display: none; }
  .home-page .header-cta { display: none; }
  .home-page .menu-btn { margin-left: auto; }

  .home-page .home-section { padding-block: 90px; }
  .home-page .hero { padding-top: 130px; }
  .home-page h1 { font-size: clamp(44px, 13vw, 68px); letter-spacing: -3.5px; }
  .home-page h2 { font-size: clamp(33px, 9vw, 48px); letter-spacing: -1.8px; }

  .home-page .hero-capabilities { display: grid; gap: 12px; }
  .home-page .visual-frame { min-height: 500px; padding: 19px; }
  .home-page .visual-brandmark { width: 220px; height: 220px; }
  .home-page .visual-data-grid { grid-template-columns: 1fr; }
  .home-page .visual-data-grid article { padding: 10px; }
  .home-page .visual-data-grid article:nth-child(3) { display: none; }

  .home-page .expertise-track { gap: 18px; font-size: 8px; }
  .home-page .principles-grid { grid-template-columns: 1fr; }
  .home-page .principle-card { min-height: 240px; }
  .home-page .principle-card > i { margin-bottom: 48px; }

  .home-page .section-heading { margin-bottom: 42px; }
  .home-page .outline-link { width: fit-content; }

  .home-page .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-page .contact-actions { grid-template-columns: 1fr; }

  .home-page .footer-main { min-height: 170px; grid-template-columns: 1fr; justify-items: start; gap: 25px; padding-block: 34px; }
  .home-page .footer-socials { justify-content: flex-start; }
  .home-page .footer-bottom { min-height: 78px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

@media (max-width: 500px) {
  .home-page { --home-container: calc(100% - 30px); }
  .home-page .home-header { padding-inline: 15px; }
  .home-page .brand-logo { width: 42px; height: 42px; }
  .home-page .brand-text strong { font-size: 13px; }

  .home-page .hero { padding-top: 115px; }
  .home-page .hero-kicker { font-size: 9px; letter-spacing: 1.4px; }
  .home-page .hero-text { margin-top: 23px; }
  .home-page .hero-actions { display: grid; }
  .home-page .hero-actions .btn { width: 100%; }
  .home-page .visual-frame { min-height: 455px; padding: 15px; }
  .home-page .visual-header strong { font-size: 11px; }
  .home-page .system-status { font-size: 7px; }
  .home-page .visual-brandmark { width: 190px; height: 190px; margin: 15px 0; }
  .home-page .brandmark-core { width: 92px; height: 92px; font-size: 44px; }
  .home-page .ring-two { inset: 35px; }
  .home-page .visual-footer { font-size: 6px; }

  .home-page .section-label { margin-bottom: 38px; }
  .home-page .section-label::after { flex: 1; }
  .home-page .principles-grid { margin-top: 58px; }
  .home-page .service-card { min-height: 350px; padding: 24px; }
  .home-page .service-content { padding-right: 0; padding-bottom: 45px; }

  .home-page .row-title,
  .home-page .articles-section .row-title.compact-title,
  .home-page .partners-section .row-title { padding-inline: 12px; }
  .home-page .row-title small { display: none; }

  .home-page .articles-section .article-card,
  .home-page .article-card {
    flex-basis: 235px;
    width: 235px;
    min-width: 235px;
  }
  .home-page .articles-section .article-image,
  .home-page .article-image { height: 150px; }

  .home-page .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .partner-card,
  .home-page .partner-card.dynamic-partner { padding: 6px; }
  .home-page .partner-card-name { font-size: 9px; }

  .home-page .contact-box { min-height: 500px; padding: 35px 24px 48px; }
  .home-page .contact-code { left: 24px; }
  .home-page .modal-box { padding: 26px 20px; }
  .home-page .partner-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ========================================================================== 
   Compatibilidad con reglas históricas de style.css
   El archivo base contiene ajustes con !important utilizados por páginas
   antiguas. Estas reglas, limitadas a .home-page, aseguran que únicamente la
   portada use las proporciones del nuevo diseño.
   ========================================================================== */
.home-page .articles-section .row-title.compact-title,
.home-page .partners-section .row-title {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: left !important;
}

.home-page .articles-section .row-title.compact-title span,
.home-page .partners-section .row-title span {
  width: auto !important;
  display: inline !important;
  margin: 0 !important;
  text-align: left !important;
}

.home-page .articles-section .article-card {
  flex: 0 0 clamp(245px, 20vw, 300px) !important;
  width: clamp(245px, 20vw, 300px) !important;
  min-width: clamp(245px, 20vw, 300px) !important;
  max-width: clamp(245px, 20vw, 300px) !important;
  border-radius: 5px !important;
}

.home-page .articles-section .article-image {
  width: 100% !important;
  height: 170px !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
}

.home-page .articles-section .article-content {
  min-height: 156px !important;
  padding: 20px !important;
  gap: 10px !important;
  text-align: left !important;
  justify-items: stretch !important;
}

.home-page .articles-section .article-content h3 {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.home-page .articles-section .article-price,
.home-page .articles-section .new-price {
  font-size: 16px !important;
}

.home-page .articles-section .old-price { font-size: 10px !important; }
.home-page .articles-section .discount-price-wrap { gap: 7px !important; }

.home-page .articles-section .discount-badge,
.home-page .articles-section .floating-discount {
  min-height: 0 !important;
  padding: 4px 6px !important;
  font-size: 9px !important;
}

.home-page .articles-section .floating-discount {
  top: 13px !important;
  right: 13px !important;
  padding: 7px 9px !important;
}

.home-page .articles-section .article-btn {
  min-height: 38px !important;
  padding: 0 14px !important;
  font-size: 9px !important;
}

.home-page #officialPartnersGrid,
.home-page #serverPartnersGrid {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  flex-wrap: initial !important;
  justify-content: initial !important;
  align-items: start !important;
  margin: 0 !important;
  gap: 14px !important;
}

.home-page #officialPartnersGrid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.home-page #serverPartnersGrid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; gap: 10px !important; }

.home-page #officialPartnersGrid .partner-card,
.home-page #serverPartnersGrid .partner-card {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 4px !important;
}

.home-page #officialPartnersGrid .partner-card {
  padding: 9px !important;
  gap: 0 !important;
  aspect-ratio: auto !important;
}

.home-page #serverPartnersGrid .partner-card {
  padding: 5px !important;
  gap: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

.home-page #officialPartnersGrid .partner-card img,
.home-page #serverPartnersGrid .partner-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  margin: 0 !important;
}

.home-page #serverPartnersGrid .partner-card img { height: 100% !important; }

.home-page #officialPartnersGrid .partner-card-name {
  display: block !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  margin: 10px 4px 3px !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.home-page #officialPartnersGrid .partner-creator-badge {
  display: block !important;
  visibility: visible !important;
  width: fit-content !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 4px 4px !important;
  padding: 4px 6px !important;
  overflow: visible !important;
  font-size: 7px !important;
}

.home-page .home-footer {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  padding: 0 max(4.5vw, calc((100vw - 1440px) / 2)) !important;
  text-align: left !important;
}

.home-page .home-footer p {
  width: auto !important;
  margin: 0 !important;
  text-align: left !important;
}

.home-page .home-footer .footer-socials {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 !important;
}

.home-page .home-footer .footer-socials a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 3px !important;
  background: var(--home-graphite) !important;
  font-size: 16px !important;
}

.home-page .home-footer .footer-socials a:hover {
  transform: translateY(-2px) !important;
  background: rgba(227,27,47,.08) !important;
}

.home-page .home-footer .footer-socials img {
  width: 17px !important;
  height: 17px !important;
}

.home-page .footer-bottom p:last-child { text-align: right !important; }

@media (max-width: 1240px) {
  .home-page #officialPartnersGrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .home-page #serverPartnersGrid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

@media (max-width: 1020px) {
  .home-page #officialPartnersGrid,
  .home-page #serverPartnersGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  .home-page .articles-section .article-card {
    flex-basis: 235px !important;
    width: 235px !important;
    min-width: 235px !important;
    max-width: 235px !important;
  }

  .home-page .articles-section .article-image { height: 150px !important; }
  .home-page #officialPartnersGrid,
  .home-page #serverPartnersGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }

  .home-page .home-footer {
    min-height: 0 !important;
    padding: 0 20px !important;
  }

  .home-page .home-footer .footer-socials {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    justify-content: flex-start !important;
  }

  .home-page .footer-bottom p:last-child { text-align: left !important; }
}

@media (max-width: 500px) {
  .home-page .home-footer { padding: 0 15px !important; }
}
