:root {
  --bg: #070909;
  --bg-soft: #101719;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.54);
  --green: #22c55e;
  --cyan: #12a8df;
  --yellow: #f5c84c;
  --red: #ef4444;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.82), rgba(7, 9, 9, 0.94)),
    linear-gradient(135deg, #050505, #0f1718 48%, #050505);
  position: relative;
  overflow-x: hidden;
}

body.simple-bg {
  background:
    linear-gradient(rgba(7, 9, 9, 0.72), rgba(7, 9, 9, 0.9)),
    url("../img/subimos-al-canal-808.png") center / cover fixed,
    linear-gradient(135deg, #050505, #101719 48%, #050505);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(34, 197, 94, 0.08) 34%, transparent 50%),
    linear-gradient(245deg, transparent 0 20%, rgba(18, 168, 223, 0.08) 38%, transparent 56%);
  opacity: 0.42;
  animation: slow-light 8s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
  opacity: 0.32;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.22));
}

.brand span {
  display: grid;
  line-height: 0.92;
  font-size: 15px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.48);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  padding: 8px 13px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.58);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.lang-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 11px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.26);
}

.lang-link.alt {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.flag {
  position: relative;
  width: 22px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.flag-es {
  background: linear-gradient(
    to bottom,
    #c60b1e 0 25%,
    #ffc400 25% 75%,
    #c60b1e 75% 100%
  );
}

.flag-en {
  background:
    linear-gradient(to bottom, #b22234 0 7.69%, #fff 7.69% 15.38%, #b22234 15.38% 23.07%, #fff 23.07% 30.76%, #b22234 30.76% 38.45%, #fff 38.45% 46.14%, #b22234 46.14% 53.83%, #fff 53.83% 61.52%, #b22234 61.52% 69.21%, #fff 69.21% 76.9%, #b22234 76.9% 84.59%, #fff 84.59% 92.28%, #b22234 92.28% 100%);
}

.flag-en::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 8px;
  background: #3c3b6e;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  padding: 11px 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.52);
  background: rgba(255, 255, 255, 0.13);
}

.btn.primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(18, 168, 223, 0.2);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-content: center;
  padding: 50px 0 90px;
}

.hero-inner {
  max-width: 880px;
}

.eyebrow {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.98;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.1;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.lead {
  max-width: 780px;
  font-size: clamp(18px, 2vw, 22px);
}

.plain-link {
  color: #dfffea;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(34, 197, 94, 0.5);
  text-underline-offset: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.section {
  padding: 82px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 52px var(--shadow);
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: blur(16px);
}

.card.featured {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(18, 168, 223, 0.1));
  border-color: rgba(34, 197, 94, 0.36);
}

.card.warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(255, 255, 255, 0.05));
  border-color: rgba(239, 68, 68, 0.36);
}

.card.note {
  background: linear-gradient(135deg, rgba(245, 200, 76, 0.12), rgba(255, 255, 255, 0.05));
  border-color: rgba(245, 200, 76, 0.34);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.benefit-tile {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.benefit-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.benefit-tile span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.showcase-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
}

.showcase-scroll::-webkit-scrollbar {
  height: 8px;
}

.showcase-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.showcase-card {
  scroll-snap-align: start;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 52px var(--shadow);
  overflow: hidden;
}

.showcase-card img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.28);
}

.showcase-card div {
  padding: 22px;
}

.center-actions {
  justify-content: center;
}

.kicker {
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.media-frame {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 52px var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}

.list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 14px 0 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: start;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--text);
  font: inherit;
  padding: 14px;
  outline: none;
}

input:focus {
  border-color: var(--green);
  background: rgba(0, 0, 0, 0.48);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.help-text {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.42;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button.btn {
  cursor: pointer;
  font-size: 16px;
}

button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.status {
  display: none;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  line-height: 1.45;
}

.status.ok {
  display: block;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #e6fff0;
}

.status.error {
  display: block;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #ffe4e4;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font-size: 14px;
}

.footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

@keyframes slow-light {
  from {
    opacity: 0.26;
    transform: translate3d(-1.5%, -1%, 0);
  }
  to {
    opacity: 0.58;
    transform: translate3d(1.5%, 1%, 0);
  }
}

@media (max-width: 880px) {
  .site-shell {
    width: min(100% - 24px, 1140px);
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    border-radius: 8px;
  }

  .language-switch {
    border-radius: 8px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 64px;
  }

  .section {
    padding: 58px 0;
  }

  .grid,
  .grid.two,
  .benefit-strip,
  .media-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .media-frame,
  .media-frame img {
    min-height: 260px;
  }

  .showcase-scroll {
    grid-auto-columns: minmax(84%, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .nav-links a {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .card {
    padding: 20px;
  }

  .actions .btn {
    width: 100%;
  }
}
