/* =============================================
   ITRIS NOVEDADES — Modern Design System
   ============================================= */

:root {
  --primary: #2c4c5e;
  --primary-dark: #1a3340;
  --primary-light: #3b6882;
  --accent: #4a9fd4;
  --accent-glow: rgba(74, 159, 212, 0.25);
  --primary-light-glow: rgba(59, 104, 130, 0.22);

  --bg: #f4f7fa;
  --bg-white: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(44, 76, 94, 0.12);

  --text: #1a2f3a;
  --text-muted: #5a7180;
  --text-light: #8fa3b0;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(26, 47, 58, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 47, 58, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 47, 58, 0.14);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 72px;
  --section-pad: clamp(64px, 8vw, 100px);
  --section-pad-sm: clamp(40px, 5vw, 64px);
}

/* ---- Reset & Base ---- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* ---- Layout helpers ---- */

.section-pad {
  padding: var(--section-pad) 0;
}

.section-pad-sm {
  padding: var(--section-pad-sm) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 159, 212, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  margin: 0;
}

/* ---- Header / Navbar ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.site-header .navbar {
  height: var(--header-h);
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(44, 76, 94, 0.3);
}

.brand-text strong {
  color: var(--primary);
}

.site-header .nav-link {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--text-muted);
  padding: 8px 14px !important;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--primary);
  background: rgba(44, 76, 94, 0.06);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44, 76, 94, 0.3);
  color: #fff !important;
}

@media (max-width: 991px) {
  .site-header .navbar-collapse {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
  }

  .site-header .nav-link {
    padding: 10px 14px !important;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

/* ---- Buttons ---- */

.btn-primary-modern,
.btn-outline-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44, 76, 94, 0.25);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44, 76, 94, 0.35);
  color: #fff;
}

.btn-outline-modern {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-modern:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---- Hero ---- */

.hero-section {
  position: relative;
  padding: clamp(32px, 5vw, 52px) 0 clamp(36px, 5vw, 56px);
  overflow: hidden;
  background: #ffffff;
}

/* Canvas de estrellas y gotas */
.hero-space {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-space .hero-nebula,
.hero-space .hero-orbit {
  display: none;
}

.space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  animation: nebula-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-nebula--1 {
  width: 55%;
  height: 45%;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(74, 159, 212, 0.3) 0%, transparent 70%);
  animation-duration: 22s;
}

.hero-nebula--2 {
  width: 50%;
  height: 50%;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(59, 104, 130, 0.2) 0%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -8s;
}

.hero-nebula--3 {
  width: 35%;
  height: 30%;
  top: 30%;
  right: 20%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.35) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -4s;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(59, 104, 130, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-spin 40s linear infinite;
}

.hero-orbit--1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  margin: -300px 0 0 -300px;
  opacity: 0.25;
}

.hero-orbit--2 {
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  margin: -450px 0 0 -450px;
  opacity: 0.15;
  animation-direction: reverse;
  animation-duration: 60s;
}

@keyframes nebula-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-card {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-card-glow {
  display: none;
}

.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 48px var(--primary-light-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: hero-float 6s ease-in-out infinite;
}

.hero-banner:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 56px rgba(59, 104, 130, 0.28);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-banner--features {
  background: linear-gradient(180deg, #ffffff 0%, #eaf1f7 30%, #f5f9fc 100%);
  border: 1px solid rgba(44, 76, 94, 0.1);
  box-shadow: none;
}

.hero-banner--features:hover {
  box-shadow: none;
}

.hero-features {
  padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 32px);
}

.hero-features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(16px, 2.5vw, 24px);
}

.hero-features-header .section-title {
  margin-bottom: 8px;
}

.hero-features-header .section-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  margin-bottom: 0;
}

.hero-features .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.hero-image {
  width: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-image.loaded {
  opacity: 1;
  transform: scale(1);
}

.hero-bottom-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 16px auto 0;
  padding: 10px 20px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--text);
  text-align: center;
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(59, 104, 130, 0.2), 0 0 14px rgba(59, 104, 130, 0.12);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.hero-pill:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(59, 104, 130, 0.28), 0 0 18px rgba(59, 104, 130, 0.16);
  color: #fff;
}

.hero-pill svg {
  transition: transform var(--transition-fast);
}

.hero-pill:hover svg {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner,
  .hero-nebula,
  .hero-orbit,
  .hero-card-glow,
  .space-nebula,
  .space-stars {
    animation: none !important;
  }
}

/* =============================================
   Space theme — secciones secundarias (sutil)
   ============================================= */

.section-space {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, #0c1829 0%, #112038 50%, #0e1a2e 100%);
}

.section-space--light {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eaf1f7 30%, #f5f9fc 100%);
}

.section-space--light .space-nebula {
  opacity: 0.18;
  filter: blur(100px);
}

.section-space--light .space-nebula--a {
  background: radial-gradient(circle, rgba(74, 159, 212, 0.2) 0%, transparent 70%);
}

.section-space--light .space-nebula--b {
  background: radial-gradient(circle, rgba(59, 104, 130, 0.15) 0%, transparent 70%);
  bottom: auto;
  top: 55%;
  opacity: 0.12;
}

.section-space--light .space-stars {
  opacity: 0.3;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(59, 104, 130, 0.35), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(74, 159, 212, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 40% 20%, rgba(59, 104, 130, 0.3), transparent),
    radial-gradient(1px 1px at 55% 65%, rgba(74, 159, 212, 0.2), transparent),
    radial-gradient(1px 1px at 70% 35%, rgba(59, 104, 130, 0.28), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(74, 159, 212, 0.22), transparent),
    radial-gradient(1px 1px at 92% 10%, rgba(59, 104, 130, 0.25), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(74, 159, 212, 0.18), transparent),
    radial-gradient(1px 1px at 48% 88%, rgba(59, 104, 130, 0.2), transparent),
    radial-gradient(1px 1px at 78% 55%, rgba(74, 159, 212, 0.25), transparent);
}

.section-space--alt {
  background: linear-gradient(175deg, #0e1a2e 0%, #142640 55%, #101c30 100%);
}

.section-space--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(32px, 5vw, 48px);
  background: linear-gradient(180deg, #f5f9fc 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.section-space--alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(48px, 7vw, 72px);
  background: linear-gradient(180deg, transparent, #eef3f7);
  pointer-events: none;
  z-index: 0;
}

.section-space-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-space .container {
  position: relative;
  z-index: 1;
}

.space-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: nebula-drift 24s ease-in-out infinite alternate;
}

.space-nebula--a {
  width: 45%;
  height: 40%;
  top: -5%;
  right: -5%;
  background: radial-gradient(circle, rgba(74, 159, 212, 0.5) 0%, transparent 70%);
}

.space-nebula--b {
  width: 40%;
  height: 35%;
  bottom: 0;
  left: -5%;
  background: radial-gradient(circle, rgba(124, 92, 191, 0.35) 0%, transparent 70%);
  animation-delay: -10s;
  animation-duration: 28s;
}

.space-nebula--c {
  width: 50%;
  height: 40%;
  top: 10%;
  left: -8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  opacity: 0.22;
}

.space-nebula--d {
  width: 35%;
  height: 30%;
  bottom: 5%;
  right: 5%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  animation-delay: -6s;
  opacity: 0.2;
}

.space-stars {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 20%, rgba(186, 230, 253, 0.6), transparent),
    radial-gradient(1px 1px at 55% 65%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 70% 35%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 85% 75%, rgba(196, 181, 253, 0.5), transparent),
    radial-gradient(1px 1px at 92% 10%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 48% 88%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 78% 55%, rgba(255, 255, 255, 0.5), transparent);
  background-size: 100% 100%;
  animation: stars-twinkle 8s ease-in-out infinite alternate;
}

.space-stars--sparse {
  opacity: 0.35;
}

@keyframes stars-twinkle {
  0%   { opacity: 0.4; }
  100% { opacity: 0.65; }
}

/* Texto en secciones oscuras */
.section-space .section-tag {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.15);
}

.section-space .section-title {
  color: rgba(255, 255, 255, 0.95);
}

.section-space .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

/* Overrides tema claro */
.section-space.section-space--light .section-tag {
  color: var(--primary-light);
  background: rgba(59, 104, 130, 0.1);
  border: 1px solid rgba(59, 104, 130, 0.15);
}

.section-space.section-space--light .section-title {
  color: var(--text);
}

.section-space.section-space--light .section-subtitle {
  color: var(--text-muted);
}

/* Puente visual entre sección oscura y clara */
.section-bridge {
  position: relative;
  background: linear-gradient(180deg, #0e1a2e 0%, #eef3f7 100%);
  padding-top: clamp(32px, 5vw, 48px);
}

/* ---- Features (hero) ---- */

.hero-features .feature-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(44, 76, 94, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.hero-features .feature-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.hero-features .feature-card.feature-card--activating {
  transform: scale(0.98);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.hero-features .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.hero-features .feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-features .feature-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 8px 28px rgba(44, 76, 94, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-features .feature-card:hover::before {
  transform: scaleX(1);
}

.hero-features .feature-card:hover::after {
  opacity: 1;
}

.hero-features .feature-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.hero-features .feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
}

.hero-features .feature-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hero-features .feature-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.55;
}

/* ---- Banner ---- */

.banner-section {
  background: transparent;
}

.banner-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.banner-frame--glow {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(74, 159, 212, 0.12);
}

.banner-frame:hover {
  transform: scale(1.01);
}

.banner-frame--glow:hover {
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(74, 159, 212, 0.18);
}

.banner-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ---- Showcase ---- */

.showcase-section {
  position: relative;
}

.showcase-section.section-space--alt {
  background: var(--primary);
}

.showcase-section.section-space--alt::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(32px, 4.5vw, 52px);
  background: linear-gradient(180deg, #3b6882 0%, var(--primary) 100%);
  pointer-events: none;
  z-index: 1;
}

.showcase-section.section-space--alt::after {
  display: block;
  height: clamp(28px, 3.5vw, 40px);
  background: linear-gradient(180deg, transparent, #eef3f7);
}

.showcase-section.section-pad {
  padding: clamp(52px, 6.5vw, 72px) 0 clamp(40px, 5vw, 56px);
}

.showcase-section .section-header {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.showcase-section .section-tag {
  margin-bottom: 10px;
  padding: 5px 14px;
}

.showcase-section .section-title {
  margin-bottom: 8px;
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}

.showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.showcase-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 0 24px rgba(74, 159, 212, 0.08);
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.2);
}

.showcase-card--reverse .showcase-media {
  order: 2;
}

.showcase-card--reverse .showcase-body {
  order: 1;
}

.showcase-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-media img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-media img {
  transform: scale(1.04);
}

.showcase-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 6px;
}

.showcase-body h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.showcase-body p {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.showcase-body .btn {
  padding: 11px 22px;
  font-size: 0.875rem;
}

.section-space .btn-outline-modern {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

.section-space .btn-outline-modern:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

@media (max-width: 767px) {
  .showcase-card,
  .showcase-card--reverse {
    grid-template-columns: 1fr;
  }

  .showcase-card--reverse .showcase-media,
  .showcase-card--reverse .showcase-body {
    order: unset;
  }

  .showcase-body {
    text-align: center;
  }

  .showcase-body .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Instagram ---- */

.instagram-section {
  position: relative;
  background: var(--primary);
}

.instagram-section.section-pad {
  padding-bottom: clamp(56px, 7vw, 80px);
}

.instagram-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(32px, 5vw, 48px);
  background: linear-gradient(180deg, #ffffff 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.instagram-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(32px, 4.5vw, 52px);
  background: linear-gradient(180deg, transparent 0%, #3b6882 100%);
  border-top: 1px solid rgba(125, 211, 252, 0.22);
  pointer-events: none;
  z-index: 1;
}

.instagram-section .container {
  position: relative;
  z-index: 2;
}

.instagram-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 52px);
}

.instagram-header .section-tag {
  margin-bottom: 14px;
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.15);
}

.instagram-header .section-subtitle {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.55);
}

.instagram-heading {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 12px;
  line-height: 1;
  width: 100%;
}

.instagram-heading-text {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.instagram-heading-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.instagram-heading-link:hover {
  opacity: 0.88;
}

.instagram-heading-link--word {
  transform: translateY(5px);
}

.instagram-heading-link--logo {
  transform: translateY(3px);
}

.instagram-heading-link--word:hover,
.instagram-heading-link--logo:hover {
  transform: translateY(5px) scale(1.03);
}

.instagram-heading-link--logo:hover {
  transform: translateY(3px) scale(1.03);
}

.instagram-heading-word {
  height: clamp(32px, 5vw, 44px);
  width: auto;
  display: block;
  object-fit: contain;
}

.instagram-heading-logo {
  height: clamp(32px, 5vw, 44px);
  width: auto;
  display: block;
  object-fit: contain;
}

.instagram-embed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 991px) {
  .instagram-embed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .instagram-embed-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .instagram-embed-card {
    min-height: 460px;
  }
}

.instagram-embed-card {
  display: flex;
  justify-content: center;
  min-height: 420px;
  padding: clamp(8px, 1.5vw, 12px);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.instagram-embed-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.instagram-embed-card .instagram-media {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

/* ---- News ---- */

.news-section {
  background: linear-gradient(180deg, #eef3f7 0%, var(--bg-white) 100%);
  position: relative;
}

.news-section.section-pad {
  padding: clamp(32px, 4.5vw, 48px) 0;
}

.news-section .section-header {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.news-section .section-tag {
  margin-bottom: 10px;
  padding: 5px 14px;
}

.news-section .section-title {
  margin-bottom: 8px;
}

.news-section .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 32px);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.news-card--cosmic {
  border-color: rgba(74, 159, 212, 0.2);
  box-shadow: 0 4px 24px rgba(74, 159, 212, 0.06);
}

.news-card--cosmic:hover {
  box-shadow: var(--shadow-md), 0 0 36px rgba(74, 159, 212, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
}

.news-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(74, 159, 212, 0.12), rgba(139, 92, 246, 0.08));
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid rgba(74, 159, 212, 0.15);
}

.news-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-image {
  width: 100%;
  transition: transform 0.6s ease;
}

.news-card:hover .news-image {
  transform: scale(1.03);
}

.news-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.news-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .news-content {
    text-align: center;
  }

  .news-content .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- CTA / Contact ---- */

.cta-section.section-space--light {
  background: linear-gradient(180deg, #d6e4ef 0%, #eaf1f7 30%, #f5f9fc 100%);
}

.cta-section.section-pad {
  padding: clamp(32px, 4.5vw, 48px) 0;
}

.cta-section.section-space--light::after {
  display: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.cta-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.cta-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cta-card h3 {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.cta-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin: 4px 0 14px;
}

.cta-image-wrap img {
  max-height: 170px;
  object-fit: contain;
  transition: transform var(--transition);
}

.cta-card:hover .cta-image-wrap img {
  transform: scale(1.05);
}

.cta-card--rating {
  justify-content: space-between;
}

.cta-card--rating .btn {
  margin-top: auto;
}

.newsletter-frame {
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  min-height: 250px;
}

.embed-newsletter {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
}

.helper-text {
  display: block;
  margin-top: 12px;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.footer-copy {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

/* ---- AOS overrides ---- */

[data-aos] {
  pointer-events: auto;
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.lenis {
    scroll-behavior: auto;
  }
}

/* ---- Responsive tweaks ---- */

@media (max-width: 576px) {
  :root {
    --header-h: 64px;
  }

  .hero-pill {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .hero-features .feature-card {
    padding: 18px 16px;
  }

  .embed-newsletter {
    height: 240px;
  }

  .newsletter-frame {
    min-height: 240px;
  }

  .cta-image-wrap {
    min-height: 130px;
  }

  .cta-image-wrap img {
    max-height: 140px;
  }

  .showcase-card {
    padding: 16px;
  }

  .news-card {
    padding: 16px;
  }

  .cta-card {
    padding: 16px;
  }
}
