:root {
  --navy-950: #05111f;
  --navy-900: #081a2c;
  --navy-800: #0d2942;
  --navy-700: #123c5e;
  --red-500: #f43f4f;
  --red-600: #e52b3b;
  --gold: #d7b14b;
  --ink: #102033;
  --muted: #637084;
  --surface: #f4f7fb;
  --white: #fff;
  --line: #dce4ee;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(4, 18, 33, .16);
  --container: min(1240px, calc(100% - 40px));
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden
}

img {
  display: block;
  max-width: 100%
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

.container {
  width: var(--container);
  margin-inline: auto
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 9999;
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px
}

.skip-link:focus {
  top: 16px
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red-500), var(--gold));
  z-index: 9999
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: .35s;
  background: linear-gradient(180deg, rgba(5, 17, 31, .94), rgba(5, 17, 31, .35), transparent)
}

.header.scrolled {
  background: rgba(5, 17, 31, .94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18)
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.brand img {
  height: 62px;
  width: auto
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  font-weight: 650;
  font-size: .93rem
}

.nav-links a,
.dropbtn {
  opacity: .92
}

.nav-links a:hover,
.dropbtn:hover {
  opacity: 1;
  color: #ff7782
}

.drop {
  position: relative
}

.dropbtn {
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font-weight: 650
}

.dropmenu {
  position: absolute;
  top: calc(100% + 16px);
  left: -20px;
  min-width: 245px;
  padding: 12px;
  background: rgba(9, 27, 45, .98);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s
}

.drop:hover .dropmenu,
.drop.open .dropmenu {
  opacity: 1;
  visibility: visible;
  transform: none
}

.dropmenu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px
}

.dropmenu a:hover {
  background: rgba(255, 255, 255, .07)
}

.nav-cta {
  background: var(--red-600);
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(229, 43, 59, .28)
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden
}

.hero-media {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 17, 31, .98) 0%, rgba(5, 17, 31, .84) 42%, rgba(5, 17, 31, .2) 100%), linear-gradient(0deg, rgba(5, 17, 31, .9), transparent 45%)
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 70px;
  align-items: center;
  padding: 150px 0 90px
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--red-500)
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor
}

.hero h1,
.page-hero h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3.4rem, 7.5vw, 7.4rem);
  line-height: .91;
  letter-spacing: -.055em;
  margin: 20px 0 24px
}

.hero h1 em,
.page-hero h1 em {
  font-style: normal;
  color: var(--red-500)
}

.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.75;
  color: #cbd6e2;
  max-width: 690px
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--red-600);
  color: #fff;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .3s
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(229, 43, 59, .32)
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .35)
}

.hero-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3)
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px
}

.status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .8rem;
  color: #cdd7e2
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31d593;
  box-shadow: 0 0 0 7px rgba(49, 213, 147, .12);
  animation: pulse 2s infinite
}

.panel-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .09);
  margin-top: 12px;
  transition: .3s
}

.panel-card:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, .14)
}

.panel-num {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  color: #ff6a76;
  font-weight: 900
}

.panel-card small {
  display: block;
  color: #bdc8d4;
  margin-top: 4px
}

.hero-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  right: -160px;
  top: -140px;
  animation: spin 28s linear infinite
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  inset: 65px
}

.hero-orbit::after {
  inset: 135px
}

.section {
  padding: 110px 0
}

.section.soft {
  background: var(--surface)
}

.section.dark {
  background: var(--navy-950);
  color: #fff
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px
}

.section-head h2 {
  font-family: "Space Grotesk";
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 14px 0
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7
}

.dark .section-head p {
  color: #b9c4d0
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.feature-card {
  position: relative;
  min-height: 410px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(5, 17, 31, .92) 85%);
  z-index: -1
}

.feature-card:hover img {
  transform: scale(1.08)
}

.feature-card-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.3rem
}

.feature-card h3 {
  font-size: 1.65rem;
  margin: 0 0 10px
}

.feature-card p {
  color: #d6dfe7;
  line-height: 1.55
}

.feature-card .link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
  color: #fff
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  transition: .3s
}

.mini-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(10, 35, 58, .1);
  border-color: #f5a0a8
}

.mini-card .icon {
  font-size: 1.5rem;
  color: var(--red-600);
  margin-bottom: 18px
}

.mini-card h3 {
  margin: 0 0 10px
}

.mini-card p {
  color: var(--muted);
  line-height: 1.6
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}

.media-stack {
  position: relative;
  min-height: 560px
}

.media-stack .main {
  position: absolute;
  inset: 0 12% 8% 0;
  width: 88%;
  height: 92%;
  object-fit: cover;
  border-radius: 32px
}

.media-stack .small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 43%;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow)
}

.quote-card {
  position: absolute;
  left: -20px;
  bottom: 30px;
  max-width: 300px;
  background: rgba(5, 17, 31, .94);
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow)
}

.content h2 {
  font-family: "Space Grotesk";
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 18px 0
}

.content p {
  color: var(--muted);
  line-height: 1.75
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 18px
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--navy-900)
}

.marquee {
  overflow: hidden;
  background: var(--red-600);
  color: #fff;
  padding: 16px 0
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 46px;
  animation: marquee 24s linear infinite;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase
}

.marquee-track span::after {
  content: "✦";
  margin-left: 46px;
  color: #ffc1c6
}

.page-hero {
  position: relative;
  min-height: 74svh;
  display: flex;
  align-items: end;
  color: #fff;
  background: var(--navy-950);
  overflow: hidden
}

.page-hero .hero-media {
  inset: -6%
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 17, 31, .97), rgba(5, 17, 31, .55), rgba(5, 17, 31, .25)), linear-gradient(0deg, rgba(5, 17, 31, .9), transparent)
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 170px 0 80px
}

.page-hero p {
  max-width: 720px;
  color: #d6dfe7;
  font-size: 1.16rem;
  line-height: 1.7
}

.breadcrumb {
  color: #c4ced8;
  font-size: .9rem;
  margin-bottom: 48px
}

.tab-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px
}

.tabs {
  display: grid;
  gap: 10px
}

.tab {
  padding: 16px 18px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-weight: 750
}

.tab.active {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900)
}

.tab-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  min-height: 380px
}

.tab-content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 22px
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3f8;
  color: #44556a;
  font-size: .85rem
}

.library-tools {
  display: flex;
  gap: 14px;
  max-width: 830px;
  margin: 0 auto 34px
}

.library-tools input,
.library-tools select,
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #cfd9e5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff
}

.empty {
  border: 2px dashed #cbd7e4;
  border-radius: 24px;
  text-align: center;
  padding: 70px 24px;
  background: #fff
}

.empty .empty-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf2f8;
  font-size: 2rem;
  color: var(--navy-900)
}

.review-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center
}

.review-cover {
  position: relative;
  background: linear-gradient(145deg, var(--navy-900), #173a59);
  color: #fff;
  min-height: 520px;
  border-radius: 28px;
  padding: 34px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.review-cover::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  right: -110px;
  bottom: -120px
}

.review-cover h3 {
  font-family: "Space Grotesk";
  font-size: 4rem;
  line-height: .9;
  margin: 160px 0 16px
}

.contact-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 30px
}

.contact-card,
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(10, 35, 58, .08)
}

.contact-item {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line)
}

.contact-item:last-child {
  border-bottom: 0
}

.contact-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: grid;
  place-items: center
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.form textarea {
  min-height: 150px;
  resize: vertical
}

.form .full {
  grid-column: 1/-1
}

.footer {
  background: var(--navy-950);
  color: #d4dde6;
  padding: 75px 0 25px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px
}

.footer h3 {
  color: #fff
}

.footer a {
  display: block;
  margin: 12px 0;
  color: #bdc9d5
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .88rem
}

.floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 12px;
  z-index: 800
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-900);
  box-shadow: var(--shadow);
  border: 0;
  cursor: pointer
}

.float-btn.whatsapp {
  background: #20c96b
}

.to-top {
  opacity: 0;
  pointer-events: none;
  transition: .25s
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(5px);
  transition: opacity .8s, transform .8s, filter .8s
}

.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform
}

.tilt>* {
  transform: translateZ(18px)
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(49, 213, 147, 0)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}

@media(max-width:980px) {
  .menu-btn {
    display: block
  }

  .nav-links {
    position: fixed;
    inset: 86px 0 auto;
    background: rgba(5, 17, 31, .98);
    padding: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100svh - 86px);
    overflow: auto
  }

  .nav-links.open {
    display: flex
  }

  .dropmenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 10px
  }

  .drop.open .dropmenu {
    display: block
  }

  .hero-grid,
  .split,
  .review-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }

  .hero-panel {
    max-width: 680px
  }

  .cards {
    grid-template-columns: 1fr 1fr
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr
  }

  .tab-shell {
    grid-template-columns: 1fr
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .page-hero {
    min-height: 62svh
  }
}

@media(max-width:640px) {
  :root {
    --container: min(100% - 28px, 1240px)
  }

  .brand img {
    height: 52px
  }

  .hero-grid {
    padding: 130px 0 70px
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem)
  }

  .section {
    padding: 78px 0
  }

  .section-head {
    display: block
  }

  .cards,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr
  }

  .feature-card {
    min-height: 360px
  }

  .stat-row {
    grid-template-columns: 1fr
  }

  .media-stack {
    min-height: 430px
  }

  .quote-card {
    left: 10px
  }

  .library-tools {
    flex-direction: column
  }

  .tabs {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    display: block
  }

  .contact-card,
  .form {
    padding: 22px
  }

  .page-hero .container {
    padding: 140px 0 65px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none
  }
}

/* =========================================================
   CINTA ANIMADA DE ÁREAS ESTRATÉGICAS
   ========================================================= */

.topics-marquee {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      #e52b3b 0%,
      #f03343 50%,
      #e52b3b 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  isolation: isolate;
}

.topics-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: topicsMarquee 32s linear infinite;
  will-change: transform;
}

.topics-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 42px;
  padding-right: 42px;
}

.topics-group span {
  flex-shrink: 0;
  font-size: clamp(.88rem, 1.2vw, 1.08rem);
  font-weight: 800;
  letter-spacing: .105em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topics-group i {
  flex-shrink: 0;
  font-size: .58rem;
  color: rgba(255, 255, 255, .72);
  transform: rotate(45deg);
}

/* Movimiento continuo sin saltos */
@keyframes topicsMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Pausa opcional al pasar el mouse */
.topics-marquee:hover .topics-track {
  animation-play-state: paused;
}

/* Desvanecimiento premium en los extremos */
.topics-marquee::before,
.topics-marquee::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 130px);
  pointer-events: none;
}

.topics-marquee::before {
  left: 0;
  background: linear-gradient(90deg,
      #e52b3b 0%,
      rgba(229, 43, 59, .82) 35%,
      transparent 100%);
}

.topics-marquee::after {
  right: 0;
  background: linear-gradient(270deg,
      #e52b3b 0%,
      rgba(229, 43, 59, .82) 35%,
      transparent 100%);
}

/* Brillo sutil */
.topics-marquee {
  background-size: 200% 100%;
  animation: topicsBackground 8s ease-in-out infinite alternate;
}

@keyframes topicsBackground {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@media (max-width: 640px) {
  .topics-marquee {
    min-height: 60px;
  }

  .topics-group {
    gap: 28px;
    padding-right: 28px;
  }

  .topics-group span {
    font-size: .8rem;
    letter-spacing: .08em;
  }
}