/* ===== VARIABLES / PALETA CEVEN ===== */
:root {
  --blue-900: #0a1f44;
  --blue-800: #102a56;
  --blue-700: #163a73;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --cyan-400: #22d3ee;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --white: #ffffff;
  --shadow: 0 20px 50px -20px rgba(10, 31, 68, 0.45);
  --radius: 20px;
  --max: 1180px;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--blue-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: var(--white); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.6);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.7); }
.btn--ghost {
  background: transparent; border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: none; color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 40px; font-size: 17px; }

/* ===== EYEBROW / TÍTULOS ===== */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--cyan-400); margin-bottom: 16px;
}
.eyebrow--dark { color: var(--blue-500); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em;
}
.section-title--light { color: var(--white); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px -10px rgba(10,31,68,.3); padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  color: var(--white); font-weight: 900; font-size: 20px;
}
.logo__text { font-weight: 800; letter-spacing: .1em; font-size: 20px; color: var(--white); }
.header.scrolled .logo__text { color: var(--blue-900); }
/* Logo imagen: sobre el hero azul va en chip blanco; al hacer scroll el header
   ya es claro, así que se quita el chip. */
.logo__img { height: 30px; width: auto; display: block; }
.header .logo {
  background: var(--white); padding: 8px 14px; border-radius: 10px;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); transition: background .3s, box-shadow .3s, padding .3s;
}
.header.scrolled .logo { background: transparent; box-shadow: none; padding: 0; }
.logo__img--footer { height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.nav { display: flex; gap: 32px; }
.nav a {
  font-weight: 500; font-size: 15px; color: rgba(255,255,255,.85); transition: color .2s;
}
.nav a:hover { color: var(--white); }
.header.scrolled .nav a { color: var(--slate-600); }
.header.scrolled .nav a:hover { color: var(--blue-600); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(59,130,246,.35), transparent 60%),
    linear-gradient(135deg, var(--blue-900), var(--blue-700));
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 80px; }
.hero__title {
  font-size: clamp(40px, 7vw, 76px); font-weight: 900; line-height: 1.02;
  letter-spacing: -.03em; margin-bottom: 22px;
}
.hero__sub { font-size: clamp(17px, 2.4vw, 22px); color: rgba(255,255,255,.78); margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 24px; color: rgba(255,255,255,.6); animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* ===== LÍNEAS / CARRUSEL ===== */
.lines { padding: 110px 0 90px; background: var(--slate-50); }
.carousel {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.carousel__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 30px; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.line-card {
  scroll-snap-align: center; flex: 0 0 320px; height: 380px; border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .35s ease;
  background: var(--blue-800);
}
.line-card:hover { transform: translateY(-8px); }
.line-card__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--c1), var(--c2));
}
.line-card__bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 55%);
}
.line-card__content {
  position: absolute; inset: 0; z-index: 2; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--white);
}
.line-card__badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 999px;
}
.line-card__name { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.line-card__logo {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: 14px; padding: 16px 20px;
  min-height: 64px; max-width: 200px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.35);
}
.line-card__logo img { max-height: 44px; width: auto; object-fit: contain; }
.line-card__desc { font-size: 15px; color: rgba(255,255,255,.82); margin-top: 8px; }
.line-card__link {
  margin-top: 18px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  opacity: .9; transition: gap .25s;
}
.line-card:hover .line-card__link { gap: 12px; }

.carousel__arrow {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--white); color: var(--blue-600); font-size: 26px; line-height: 1;
  box-shadow: var(--shadow); transition: transform .2s, background .2s;
  display: grid; place-items: center;
}
.carousel__arrow:hover { transform: translateY(-50%) scale(1.1); background: var(--blue-600); color: var(--white); }
.carousel__arrow--prev { left: -8px; }
.carousel__arrow--next { right: -8px; }

.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.carousel__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--slate-200); transition: width .3s, background .3s;
}
.carousel__dots button.active { width: 28px; border-radius: 6px; background: var(--blue-500); }

/* ===== PROMOS ===== */
.promos { padding: 110px 0; position: relative; color: var(--white); }
.promos::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}
.promos__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.promo-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 32px; backdrop-filter: blur(8px);
  transition: transform .3s, background .3s; position: relative; overflow: hidden;
}
.promo-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.promo-card__tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-900);
  background: var(--cyan-400); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.promo-card__title { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.promo-card__desc { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.5; }
.promo-card__off {
  position: absolute; top: -10px; right: -10px; font-size: 64px; font-weight: 900;
  color: rgba(255,255,255,.06); pointer-events: none;
}

/* ===== CTA ===== */
.cta { padding: 100px 0; background: var(--slate-50); text-align: center; }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta__title { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.cta__sub { font-size: 18px; color: var(--slate-600); margin: 14px 0 32px; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-900); color: var(--white); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.logo--footer .logo__text { color: var(--white); }
.footer__copy { font-size: 14px; color: rgba(255,255,255,.6); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .nav { display: none; }
  .carousel__arrow { display: none; }
  .line-card { flex-basis: 78vw; }
  .footer__inner { justify-content: center; text-align: center; }
}
