/* ============================================================
   TU WEB SMA — Design System v3
   Paleta: #0A3873 (navy) · #375C8C (blue) · #CC0066 (magenta) · #A3004F (magenta-dark) · #E0007A (magenta-light)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
  /* Brand palette */
  --navy: #0A3873;
  --blue: #375C8C;
  --rose: #CC0066;
  --mauve: #A3004F;
  --blush: #E0007A;

  /* Semantic aliases */
  --primary: var(--navy);
  --primary-light: var(--blue);
  --accent: var(--rose);
  --accent-2: var(--mauve);
  --accent-3: var(--blush);

  /* Backgrounds (dark navy tones) */
  --dark: #06101F;
  --dark-2: #0B1A30;
  --dark-3: #102040;
  --dark-4: #17294E;

  --white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.55);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #06101F 0%, #0d1e38 55%, #0A3873 100%);
  --gradient-btn: linear-gradient(135deg, #CC0066, #A3004F);
  --gradient-blue: linear-gradient(135deg, #0A3873, #375C8C);
  --gradient-accent: linear-gradient(135deg, #CC0066, #E0007A);
  --gradient-card: linear-gradient(145deg, rgba(55, 92, 140, 0.12), rgba(55, 92, 140, 0.03));

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(10, 56, 115, 0.2);
  --shadow-md: 0 8px 32px rgba(10, 56, 115, 0.3);
  --shadow-lg: 0 20px 60px rgba(6, 16, 31, 0.6);
  --shadow-rose: 0 8px 30px rgba(204,0,102,0.45);

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Motion */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.tws-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.8rem 0;
  transition: var(--transition);
}

.tws-nav.scrolled {
  background: rgba(6, 16, 31, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(55, 92, 140, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  padding: 0.55rem 0;
}

.tws-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(55, 92, 140, 0.6);
  object-fit: cover;
  transition: var(--transition);
}

.nav-logo:hover img {
  border-color: var(--rose);
  box-shadow: 0 0 16px rgba(0, 196, 180, 0.45);
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 55%;
}

.nav-cta {
  background: var(--gradient-btn) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-rose);
  font-size: 1rem !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(0, 196, 180, 0.5) !important;
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  background:
    /* Gradient left overlay so text stays readable */
    linear-gradient(to right,
      #06101F 0%,
      #06101F 40%,
      rgba(6, 16, 31, 0.82) 58%,
      rgba(6, 16, 31, 0.35) 80%,
      rgba(6, 16, 31, 0.1) 100%),
    /* Additional top/bottom fade */
    linear-gradient(to bottom,
      rgba(6, 16, 31, 0.6) 0%,
      transparent 15%,
      transparent 85%,
      rgba(6, 16, 31, 0.8) 100%),
    /* Computer illustration as background */
    url('../assets/img/hero-bg.jpg') center right / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Subtle blue orb overlay on the left to add depth */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(55, 92, 140, 0.18) 0%, transparent 65%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
  animation: floatOrb 9s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 196, 180, 0.08) 0%, transparent 65%);
  bottom: -60px;
  left: 30%;
  border-radius: 50%;
  animation: floatOrb 12s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Grid dot overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(55, 92, 140, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 92, 140, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% center, black 20%, transparent 70%);
  pointer-events: none;
}

/* Single-column container, text stays on the left */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 580px;
  /* Text block limited to left half */
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(55, 92, 140, 0.18);
  border: 1px solid rgba(55, 92, 140, 0.4);
  color: var(--blush);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--rose);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 2.5rem;
  max-width: 520px;
  font-weight: 400;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--gradient-btn);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-rose);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.btn-primary-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 196, 180, 0.5);
}

.btn-primary-hero:hover::before {
  opacity: 1;
}

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(55, 92, 140, 0.5);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-outline-hero:hover {
  border-color: var(--blue);
  background: rgba(55, 92, 140, 0.15);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  font-weight: 500;
}



/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
  padding: 6rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(55, 92, 140, 0.15);
  border: 1px solid rgba(55, 92, 140, 0.35);
  color: var(--blush);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 3px;
  margin: 1rem auto 1.5rem;
}

.divider-left {
  margin-left: 0;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--dark-2);
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid rgba(55, 92, 140, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(55, 92, 140, 0.4);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Icon variants */
.icon-blue {
  background: rgba(10, 56, 115, 0.25);
  color: #7BAAF7;
  border: 1px solid rgba(55, 92, 140, 0.35);
}

.icon-cyan {
  background: rgba(55, 92, 140, 0.2);
  color: #A8C4F0;
  border: 1px solid rgba(55, 92, 140, 0.3);
}

.icon-purple {
  background: rgba(191, 115, 143, 0.15);
  color: var(--mauve);
  border: 1px solid rgba(191, 115, 143, 0.3);
}

.icon-green {
  background: rgba(217, 150, 150, 0.15);
  color: var(--blush);
  border: 1px solid rgba(217, 150, 150, 0.3);
}

.service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================
   ABOUT / CÓMO TRABAJAMOS
   ============================================================ */
.about {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(55, 92, 140, 0.12) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  border-radius: 50%;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(6, 16, 31, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(55, 92, 140, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-image-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-image-badge .badge-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-image-badge .badge-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.about-text p {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.about-text p strong {
  -webkit-text-fill-color: initial;
  color: var(--blush) !important;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(55, 92, 140, 0.12);
  border: 1px solid rgba(55, 92, 140, 0.25);
  color: #A8C4F0;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(55, 92, 140, 0.22);
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-section {
  background: var(--dark-3);
  border: 1px solid rgba(55, 92, 140, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.process-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 3%;
  right: 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(55, 92, 140, 0.35) 20%, rgba(55, 92, 140, 0.35) 80%, transparent);
  z-index: 0;
}

.process-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(55, 92, 140, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  border-color: rgba(55, 92, 140, 0.4);
  background: rgba(55, 92, 140, 0.07);
  transform: translateY(-4px);
}

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blush);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  background: rgba(10, 56, 115, 0.25);
  color: #7BAAF7;
  border: 1px solid rgba(55, 92, 140, 0.3);
}

.process-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.process-step p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.6;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  background: var(--dark-2);
}

.project-card {
  background: var(--dark-3);
  border: 1px solid rgba(55, 92, 140, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 92, 140, 0.45);
  box-shadow: var(--shadow-md);
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  transition: var(--transition);
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.project-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-badge {
  display: inline-block;
  background: rgba(55, 92, 140, 0.18);
  color: #A8C4F0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.project-body h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blush);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--rose);
  gap: 0.7rem;
}

.project-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(55, 92, 140, 0.35);
  background: rgba(55, 92, 140, 0.12);
  transition: var(--transition-fast);
}

.project-secondary-link:hover {
  background: rgba(55, 92, 140, 0.28);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.project-btn-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--gradient-btn);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-rose);
  font-family: 'Inter', sans-serif;
}

.project-btn-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(204, 0, 102, 0.5);
  color: var(--white);
}

.qr-wrap {
  border: 1px solid rgba(55, 92, 140, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(55, 92, 140, 0.07);
  display: inline-block;
  margin-top: 1rem;
}

.qr-wrap img {
  border-radius: 8px;
  width: 130px;
  height: 130px;
  object-fit: contain;
}

/* ============================================================
   MODALS & CAROUSEL
   ============================================================ */
body.modal-open {
  overflow: hidden;
}

.tws-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tws-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.tws-modal[hidden] {
  display: none;
}

.tws-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tws-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 3rem);
  background: linear-gradient(160deg, #0B1A30 0%, #06101F 100%);
  border: 1px solid rgba(55, 92, 140, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(10, 56, 115, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tws-modal.active .tws-modal-dialog {
  transform: scale(1) translateY(0);
}

.tws-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.2rem; /* más bajo */
  border-bottom: 1px solid rgba(55, 92, 140, 0.2);
  background: rgba(10, 56, 115, 0.15);
}

.tws-modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tws-modal-header-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.tws-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(55, 92, 140, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tws-modal-close:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: rotate(90deg);
}

.tws-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tws-modal-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Carousel */
.tws-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #030a14;
  border: 1px solid rgba(55, 92, 140, 0.25);
}

.tws-carousel-track {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tws-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 3.5rem 1rem;
}

.tws-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  position: relative;
}

.tws-carousel-slide img {
  max-height: 480px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.tws-carousel-caption {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(6, 16, 31, 0.85);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(55, 92, 140, 0.35);
  text-align: center;
  backdrop-filter: blur(8px);
}

.tws-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 16, 31, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(55, 92, 140, 0.45);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5;
}

.tws-carousel-btn:hover {
  background: var(--blue);
  border-color: var(--blush);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(204, 0, 102, 0.4);
}

.tws-carousel-btn.prev {
  left: 12px;
}

.tws-carousel-btn.next {
  right: 12px;
}

.tws-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  background: rgba(6, 16, 31, 0.75);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(55, 92, 140, 0.35);
}

.tws-carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.tws-carousel-dots .dot.active {
  background: var(--rose);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--rose);
}

/* Download card */
.tws-download-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(10, 56, 115, 0.18);
  border: 1px solid rgba(55, 92, 140, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.25rem;
}

.tws-download-qr-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(55, 92, 140, 0.35);
}

.tws-download-qr {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  object-fit: contain;
  display: block;
}

.tws-qr-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.tws-download-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.tws-download-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.tws-download-info p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.btn-download-apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gradient-btn);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  box-shadow: var(--shadow-rose);
  margin-top: 0.35rem;
  text-align: center;
  align-self: flex-start;
}

.btn-download-apk:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 0, 102, 0.6);
  color: var(--white);
}

@media (max-width: 600px) {
  .tws-download-card {
    flex-direction: column;
    text-align: center;
  }

  .tws-download-info {
    align-items: center;
  }

  .btn-download-apk {
    align-self: stretch;
  }

  .tws-carousel-track {
    min-height: 380px;
  }

  .tws-carousel-slide img {
    max-height: 340px;
  }
}

/* ============================================================
   NUEVO DISEÑO DE MODALES - CARRUSEL + INFORMACIÓN
   ============================================================ */

/* Modal más ancho para permitir dos columnas */
.tws-modal-dialog {
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 2rem);
}

/* Cuerpo del modal dividido en dos columnas */
.tws-modal-body {
  padding: 1.5rem;
  overflow-y: auto;

  display: grid;

  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);

  grid-template-areas:
    "carousel description"
    "carousel download";

  gap: 1.5rem;

  align-items: stretch;
}

/* Descripción: columna derecha arriba */
.tws-modal-desc {
  grid-area: description;

  margin: 0;
  align-self: start;

  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Carrusel: columna izquierda */
.tws-carousel {
  grid-area: carousel;

  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;

  border-radius: var(--radius-md);
  overflow: hidden;

  background: #030a14;
  border: 1px solid rgba(55, 92, 140, 0.25);

  display: flex;
  align-items: stretch;
}

/* Área donde aparece la imagen */
.tws-carousel-track {
  position: relative;

  width: 100%;
  height: 100%;
  min-height: 520px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* Cada slide */
.tws-carousel-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.4s ease, transform 0.4s ease;

  transform: scale(0.97);

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 1.5rem 3.5rem 4rem;
  box-sizing: border-box;
}

/* Slide activo */
.tws-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);

  position: relative;
}

/* IMAGEN COMPLETA */
.tws-carousel-slide img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: calc(100% - 3rem);

  object-fit: contain;

  border-radius: 14px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* Texto debajo de la imagen */
.tws-carousel-caption {
  flex-shrink: 0;

  max-width: 90%;

  margin-top: 0.85rem;

  font-size: 0.82rem;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.85);

  background: rgba(6, 16, 31, 0.85);

  padding: 0.4rem 1rem;

  border-radius: var(--radius-xl);

  border: 1px solid rgba(55, 92, 140, 0.35);

  text-align: center;

  backdrop-filter: blur(8px);
}

/* Flechas */
.tws-carousel-btn.prev {
  left: 12px;
}

.tws-carousel-btn.next {
  right: 12px;
}

/* Tarjeta de descarga: columna derecha abajo */
.tws-download-card {
  grid-area: download;

  width: 100%;
  box-sizing: border-box;

  margin-top: 0;

  align-self: end;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 1rem;

  text-align: center;

  background: rgba(10, 56, 115, 0.18);

  border: 1px solid rgba(55, 92, 140, 0.35);

  border-radius: var(--radius-md);

  padding: 1.25rem;
}

/* QR */
.tws-download-qr-wrap {
  flex-shrink: 0;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 0.45rem;

  background: rgba(255, 255, 255, 0.05);

  padding: 0.75rem;

  border-radius: 12px;

  border: 1px solid rgba(55, 92, 140, 0.35);
}

.tws-download-qr {
  width: 140px;
  height: 140px;

  border-radius: 8px;

  background: #ffffff;

  padding: 4px;

  object-fit: contain;

  display: block;
}

/* Información de descarga */
.tws-download-info {
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 0.55rem;
}

.tws-download-info h4 {
  font-size: 1.15rem;
  font-weight: 700;

  color: var(--white);

  margin: 0;
}

.tws-download-info p {
  font-size: 0.88rem;

  color: rgba(255, 255, 255, 0.65);

  line-height: 1.55;

  margin: 0;
}

/* Botón descargar */
.btn-download-apk {
  align-self: center;
}

/* ============================================================
   TABLET / CELULAR
   ============================================================ */

@media (max-width: 900px) {

  .tws-modal {
    padding: 0.75rem;
  }

  .tws-modal-dialog {
    max-width: 700px;
    max-height: calc(100vh - 1.5rem);
  }

  .tws-modal-body {
    display: grid;

    grid-template-columns: 1fr;

    grid-template-areas:
      "description"
      "carousel"
      "download";

    gap: 1rem;

    padding: 1rem;
  }

  .tws-carousel {
    min-height: 450px;
    height: 450px;
  }

  .tws-carousel-track {
    min-height: 450px;
    height: 450px;
  }

  .tws-carousel-slide {
    padding: 1rem 3rem 3.5rem;
  }

  .tws-carousel-slide img {
    max-width: 100%;
    max-height: calc(100% - 3rem);
  }

  .tws-download-card {
    flex-direction: row;
    text-align: left;
  }

  .tws-download-info {
    align-items: flex-start;
    text-align: left;
  }

  .btn-download-apk {
    align-self: flex-start;
  }
}

/* ============================================================
   CELULARES
   ============================================================ */

@media (max-width: 600px) {

  .tws-modal {
    padding: 0.5rem;
  }

  .tws-modal-dialog {
    max-height: calc(100vh - 1rem);
  }

  .tws-modal-header {
    padding: 1rem;
  }

  .tws-modal-body {
    padding: 0.85rem;
  }

  .tws-carousel {
    min-height: 380px;
    height: 380px;
  }

  .tws-carousel-track {
    min-height: 380px;
    height: 380px;
  }

  .tws-carousel-slide {
    padding: 0.75rem 2.5rem 3.5rem;
  }

  .tws-carousel-slide img {
    max-width: 100%;
    max-height: calc(100% - 3rem);
  }

  .tws-download-card {
    flex-direction: column;
    text-align: center;
  }

  .tws-download-info {
    align-items: center;
    text-align: center;
  }

  .btn-download-apk {
    align-self: center;
  }
}
/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--dark);
}

.contact-card {
  background: var(--dark-3);
  border: 1px solid rgba(55, 92, 140, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.contact-card:hover {
  border-color: rgba(55, 92, 140, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(55, 92, 140, 0.12);
  border: 1px solid rgba(55, 92, 140, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #A8C4F0;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background: rgba(55, 92, 140, 0.22);
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(55, 92, 140, 0.35);
}

.contact-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.6rem;
}

.contact-card p,
.contact-card a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.contact-card a:hover {
  color: var(--rose);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-full {
  background: var(--dark-2);
  border-top: 1px solid rgba(55, 92, 140, 0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 0.5rem;
  max-width: 280px;
}

.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.social-links-footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(55, 92, 140, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
  background: rgba(55, 92, 140, 0.08);
}

.social-link:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(0, 196, 180, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 196, 180, 0.3);
}

.footer-locations {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-locations li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.footer-locations i {
  color: var(--blush);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(55, 92, 140, 0.15);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--blush);
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

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

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(25px, -25px) scale(1.04);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.05s;
}

.stagger-2 {
  transition-delay: 0.15s;
}

.stagger-3 {
  transition-delay: 0.25s;
}

.stagger-4 {
  transition-delay: 0.35s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(6, 16, 31, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.1rem;
    border-bottom: 1px solid rgba(55, 92, 140, 0.2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    list-style: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
  }

  .nav-links a:hover {
    background: rgba(55, 92, 140, 0.12);
  }

  .nav-cta {
    font-size: 1.05rem !important;
  }

  /* Hero: en tablet el fondo se centra y el texto ocupa todo el ancho */
  .hero {
    background-position: center center;
    background:
      linear-gradient(to bottom,
        rgba(6, 16, 31, 0.75) 0%,
        rgba(6, 16, 31, 0.65) 50%,
        rgba(6, 16, 31, 0.85) 100%),
      url('../assets/img/hero-bg.jpg') center center / cover no-repeat;
  }

  .hero-content {
    max-width: 100%;
  }

  /* Grids */
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .grid-1-2 {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-image-wrap img {
    height: 300px;
  }

  /* Process */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 1.5rem;
  }

  .footer-desc {
    max-width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary-hero,
  .btn-outline-hero {
    width: 100%;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-section {
    padding: 1.5rem 1rem;
  }
}