:root {
  /* Colors */
  --surface: #ffffff;
  --surface-dim: #d9dadc;
  --surface-bright: #ffffff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4f6;
  --surface-container: #edeef0;
  --surface-container-high: #e7e8ea;
  --surface-container-highest: #e1e2e4;
  
  --on-surface: #333333;
  --on-surface-variant: #666666;
  
  --primary: #ffe600;
  --on-primary: #2d3277;
  --primary-container: #ffe600;
  --on-primary-container: #2d3277;
  --inverse-primary: #b6c7e9;
  
  --tertiary: #2d3277;
  --on-tertiary: #ffffff;
  --tertiary-container: #2d3277;
  --on-tertiary-container: #ffffff;
  --tertiary-fixed: #3483fa;
  --on-tertiary-fixed: #ffffff;
  
  --outline: #e6e6e6;
  --outline-variant: #cccccc;
  --background: #F5F1F4;
  --on-background: #333333;
  
  /* Radii */
  --radius-sm: 4px;
  --radius-DEFAULT: 6px;
  --radius-md: 6px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  --radius-full: 9999px;
  
  /* Spacing */
  --spacing-base: 8px;
  --spacing-gutter: 24px;
  --spacing-margin-mobile: 16px;
  --spacing-margin-desktop: 64px;
  --spacing-section-gap: 120px;
  --container-max: 1280px;
}

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

body {
  font-family: 'Poppins', -apple-system, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
  background-color: var(--background);
  color: var(--on-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 5rem;
}

@media (min-width: 1024px) {
  body {
    padding-top: 6rem;
  }
}

::selection {
  background-color: var(--tertiary-fixed);
  color: var(--on-tertiary-fixed);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* Typography */
.display-xl {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.headline-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.label-md {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  :root {
    --spacing-section-gap: 60px;
    --spacing-margin-mobile: 12px;
  }

  .display-xl { font-size: 36px; }
  .headline-lg { font-size: 26px; }
  .headline-md { font-size: 20px; }
  .body-lg { font-size: 16px; }
  .body-md { font-size: 15px; }
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--spacing-margin-mobile);
}

.section-padding {
  padding-block: var(--spacing-section-gap);
}

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

/* Mercado Libre Highlights */
.highlight-green {
  background-color: #e6f6eb;
  color: #00a650;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  line-height: 1.2;
}

.highlight-blue {
  background-color: #3483fa;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  line-height: 1.2;
}

/* Flex & Grid */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-gutter { gap: var(--spacing-gutter); }
.gap-6 { gap: 1.5rem; }

/* Navbar */
.navbar {
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .navbar-logo {
  color: var(--on-background);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 1.5rem;
  height: 5rem;
  max-width: 100%;
  margin-inline: auto;
  position: relative;
}

@media (min-width: 1024px) {
  .navbar-container {
    padding-inline: 3rem;
    height: 6rem;
  }
}

.navbar-logo {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .navbar-logo img {
    height: 100px;
  }
}

.navbar-logo:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.navbar-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}

.navbar-contact {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--on-background);
  white-space: nowrap;
  z-index: 5;
}

.navbar.scrolled .navbar-contact {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .navbar-contact {
    display: flex;
    gap: 0.4rem;
  }

  .navbar-contact .contact-info {
    gap: 0.4rem !important;
  }

  .navbar-contact .contact-info svg {
    width: 22px;
    height: 22px;
  }

  .navbar-contact .contact-info span {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .navbar-contact .contact-info span {
    font-size: 0.72rem !important;
  }
}

@media (max-width: 380px) {
  .navbar-contact .contact-info span {
    display: none;
  }

  .navbar-contact .contact-info svg {
    width: 26px;
    height: 26px;
  }
}

.navbar-link {
  color: var(--on-background);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.navbar-link:hover {
  color: var(--tertiary-fixed);
  transform: scale(1.05);
}

.btn-primary {
  background-color: var(--tertiary-fixed);
  color: var(--on-tertiary-fixed);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #2968c8;
  color: var(--on-tertiary-fixed);
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(52, 131, 250, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(52, 131, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 131, 250, 0); }
}

.highlight-border-effect {
  animation: pulse-border 1s ease-out 3;
}

.btn-outline {
  background-color: rgba(52, 131, 250, 0.15);
  color: var(--tertiary-fixed);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(52, 131, 250, 0.25);
  color: var(--tertiary-fixed);
}

.menu-toggle {
  display: none;
  color: var(--on-background);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-actions {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 35, 102, 0.05);
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section */
.hero-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  height: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--surface-container-highest);
  box-shadow: 0 4px 20px rgba(0, 35, 102, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-card {
    max-width: 90%;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .hero-card {
    max-width: 70%;
    height: 500px;
  }
}

.hero-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 29, 55, 0.2);
  transition: background-color 0.5s ease;
}

.hero-card:hover .hero-overlay {
  background-color: rgba(10, 29, 55, 0.3);
}

.play-button {
  position: relative;
  z-index: 10;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

@media (min-width: 768px) {
  .play-button {
    width: 6rem;
    height: 6rem;
  }
}

.play-button-small {
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.3);
}

.hero-card:hover .play-button,
.case-card:hover .play-button-small {
  transform: scale(1.1);
  background-color: var(--tertiary-fixed);
}

.play-icon {
  font-size: 2.25rem;
  color: white;
  transition: color 0.5s ease;
}

@media (min-width: 768px) {
  .play-icon {
    font-size: 3rem;
  }
}

.play-button-small .play-icon {
  font-size: 1.875rem;
}

.hero-card:hover .play-icon,
.case-card:hover .play-icon {
  color: var(--on-tertiary-fixed);
}

/* Casos de Éxito */
.case-card {
  cursor: pointer;
}

.case-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--surface-container-highest);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 35, 102, 0.05);
  background-size: cover;
  background-position: center;
}

.case-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 29, 55, 0.1);
  transition: background-color 0.3s ease;
}

.case-card:hover .case-overlay {
  background-color: rgba(10, 29, 55, 0.3);
}

.case-title {
  color: var(--on-background);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.case-card:hover .case-title {
  color: var(--tertiary-container);
}

.case-desc {
  color: var(--on-surface-variant);
}

.nosotros-section {
  background-color: var(--surface-container-lowest);
  color: var(--on-background);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.nosotros-image-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .nosotros-image-wrapper {
    height: 500px;
  }
}

@media (min-width: 1024px) {
  .nosotros-image-wrapper {
    height: 600px;
  }
}

.nosotros-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 29, 55, 0.2);
  mix-blend-mode: multiply;
}

/* Contact Section */
.contact-parallax {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

@media (min-width: 768px) {
  .contact-parallax {
    min-height: 800px;
    background-attachment: fixed;
  }
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(235, 235, 235, 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.contact-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  background-color: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 35, 102, 0.1);
  border: 1px solid var(--surface-container-highest);
}

@media (min-width: 768px) {
  .contact-card {
    padding: 3rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-label {
  color: var(--on-background);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background-color: var(--surface-bright);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-DEFAULT);
  padding: 0.75rem 1rem;
  color: var(--on-background);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--tertiary-container);
  box-shadow: 0 0 0 1px var(--tertiary-container);
}

textarea.form-control {
  resize: none;
}

/* Footer */
.footer {
  background-color: #ffffff;
  color: var(--on-surface-variant);
  padding-block: 3rem;
  border-top: 1px solid var(--outline);
}

@media (min-width: 768px) {
  .footer {
    padding-block: 5rem;
  }
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-logo img {
    height: 120px;
  }
}

.footer-text {
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-background);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--tertiary-fixed);
  transition: all 0.2s ease;
  opacity: 0.8;
}

.footer-link:hover {
  color: #2968c8;
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .toast-container {
    top: 6rem;
    right: 1.5rem;
    left: auto;
  }
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-DEFAULT);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(-1rem);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background-color: rgba(34, 197, 94, 0.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.toast.error { background-color: rgba(239, 68, 68, 0.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* Responsive */
@media (min-width: 768px) {
  .container { padding-inline: var(--spacing-margin-desktop); }
  .grid-cols-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-cols-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Grid Pulse Background */
.pulse-bg-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--surface-dim) 100%);
}

.pulse-grid {
  flex: 0 0 auto;
  perspective: 800px;
  display: grid;
  grid-template-columns: repeat(7, 180px);
  grid-template-rows: repeat(7, 180px);
  grid-gap: 20px;
  transform: rotate(45deg);
  opacity: 0.8;
}

.pulse-grid div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 30px 30px 30px -20px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.pulse-grid div:nth-child(odd) {
  animation: 1500ms ease-in-out infinite alternate pulse;
}
.pulse-grid div:nth-child(even) {
  animation: 1500ms 1500ms ease-in-out infinite alternate pulse;
}

@keyframes pulse {
  to {
    transform: translate3d(0px, 0px, -60px);
    box-shadow: 15px 15px 20px -20px rgba(0, 0, 0, 0.2);
  }
}

/* Animated Floating Squares */
.animated-area {
    background: var(--background);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.animated-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #001f7b 0%, #0048cd 70%, var(--background) 100%);
    z-index: 0;
}

@media (min-width: 768px) {
    .animated-area::before {
        height: 600px;
    }
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.08); /* Light gray slightly darker */
    animation: animate_squares 25s linear infinite;
    bottom: -150px; /* Start from bottom */
}

.circles-light li {
    background: rgba(255, 255, 255, 0.03); /* Discretos y blancos para fondo oscuro */
}

.circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }
.circles li:nth-child(11) { left: 5%; width: 40px; height: 40px; animation-delay: 5s; }
.circles li:nth-child(12) { left: 15%; width: 90px; height: 90px; animation-delay: 8s; animation-duration: 20s; }
.circles li:nth-child(13) { left: 45%; width: 25px; height: 25px; animation-delay: 1s; }
.circles li:nth-child(14) { left: 60%; width: 70px; height: 70px; animation-delay: 12s; animation-duration: 22s; }
.circles li:nth-child(15) { left: 80%; width: 35px; height: 35px; animation-delay: 6s; }
.circles li:nth-child(16) { left: 90%; width: 120px; height: 120px; animation-delay: 9s; }
.circles li:nth-child(17) { left: 30%; width: 50px; height: 50px; animation-delay: 14s; }
.circles li:nth-child(18) { left: 55%; width: 15px; height: 15px; animation-delay: 3s; animation-duration: 15s; }
.circles li:nth-child(19) { left: 22%; width: 65px; height: 65px; animation-delay: 10s; animation-duration: 25s; }
.circles li:nth-child(20) { left: 95%; width: 45px; height: 45px; animation-delay: 11s; animation-duration: 19s; }

@keyframes animate_squares {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg); /* Move up instead of down */
        opacity: 0;
        border-radius: 50%;
    }
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  z-index: 10000;
  width: 95%;
  max-width: 900px;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .video-modal-content {
    width: 90%;
  }
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.video-modal-close:hover {
  color: #ccc;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .floating-whatsapp {
        bottom: 2rem;
        left: 2rem;
        width: 60px;
        height: 60px;
    }
    .floating-whatsapp svg {
        width: 32px;
        height: 32px;
    }
}

.floating-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 2px 6px 16px rgba(0,0,0,0.3);
    color: white;
}

/* === QUIÉNES SOMOS SECTION === */
.quienes-section {
    background-color: var(--surface-container-lowest);
    padding: 5rem 0 4rem;
    border-top: 1px solid var(--outline);
    border-bottom: 1px solid var(--outline);
}

.quienes-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3.5rem;
}

.quienes-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tertiary-fixed);
    margin-bottom: 0.75rem;
}

.quienes-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--on-background);
    margin-bottom: 1.25rem;
    white-space: nowrap;
}

.quienes-highlight {
    color: var(--tertiary-fixed);
    font-weight: 800;
}

.quienes-highlight-green {
    color: #00a650;
    font-weight: 700;
}

.quienes-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--on-surface-variant);
    max-width: 650px;
}

/* Steps Grid */
.quienes-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 3rem;
    padding-top: 1.75rem;
}

.quienes-step {
    flex: 1;
    background: linear-gradient(145deg, rgba(10, 25, 60, 0.95) 0%, rgba(20, 40, 90, 0.9) 100%);
    border: 1px solid rgba(52, 131, 250, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 15, 60, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Shimmer effect on hover — contained within card using background-position */
.quienes-step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.07) 50%,
        transparent 80%
    );
    background-size: 300% 100%;
    background-position: 0% 0;
    transition: background-position 0.7s ease;
}

.quienes-step:hover::before {
    background-position: 100% 0;
}

/* Subtle top glow line */
.quienes-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(52, 131, 250, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quienes-step:hover::after {
    opacity: 1;
}

.quienes-step:hover {
    box-shadow: 0 12px 40px rgba(52, 131, 250, 0.2), 0 4px 15px rgba(0, 15, 60, 0.3);
    border-color: rgba(52, 131, 250, 0.4);
}

.quienes-step-number {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3483fa, #5ba3ff);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 131, 250, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
}

.quienes-step-icon {
    width: 84px;
    height: 84px;
    min-height: 84px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.quienes-step-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.quienes-step-icon .material-symbols-outlined {
    font-size: 1.75rem;
    color: #5ba3ff;
    transition: color 0.3s ease;
}

.quienes-step:hover .quienes-step-icon {
    background: rgba(52, 131, 250, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(52, 131, 250, 0.2);
}

.quienes-step:hover .quienes-step-icon .material-symbols-outlined {
    color: #ffffff;
}

.profit-icon {
    width: auto !important;
    flex-direction: row !important;
    gap: 0.6rem;
    padding: 0 0.5rem;
}

.profit-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(52, 131, 250, 0.7);
}

.quienes-step:hover .profit-text {
    text-shadow: 0 0 24px rgba(91, 163, 255, 1);
}

.quienes-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    margin-top: 1rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quienes-step-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.quienes-step-desc .quienes-highlight {
    color: #5ba3ff;
}

.quienes-step-desc .quienes-highlight-green {
    color: #4ade80;
}

/* Arrows between steps */
.quienes-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    flex-shrink: 0;
}

.quienes-step-arrow .material-symbols-outlined {
    font-size: 1.75rem;
    color: rgba(52, 131, 250, 0.4);
}

/* Nuestro Objetivo Banner */
.quienes-objetivo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #1a2a6c 0%, #2d3277 40%, #3483fa 100%);
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(45, 50, 119, 0.25);
    position: relative;
    overflow: hidden;
}

.quienes-objetivo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.quienes-objetivo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.quienes-objetivo p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Responsive - Quiénes Somos */
@media (max-width: 1024px) {
    .quienes-title {
        font-size: 2.2rem;
        white-space: normal;
    }

    .quienes-steps {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .quienes-step {
        flex: 1 1 calc(50% - 1.5rem);
        min-width: 220px;
    }

    .quienes-step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .quienes-section {
        padding: 3rem 0 2.5rem;
    }

    .quienes-header {
        margin-bottom: 2.5rem;
    }

    .quienes-title {
        font-size: 1.75rem;
        white-space: normal;
    }

    .quienes-steps {
        flex-direction: column;
        gap: 1.25rem;
    }

    .quienes-step {
        flex: 1 1 100%;
    }

    .quienes-step-arrow {
        display: none;
    }

    .quienes-objetivo {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
}

/* === REGISTRO SECTION === */
.registro-section {
    display: flex;
    min-height: 700px;
    border-top: 1px solid var(--outline);
}

.registro-left {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #0a1a3a 0%, #0d1f4a 50%, #102a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.registro-left::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 131, 250, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.registro-left-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.registro-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.registro-hero-title em {
    font-style: italic;
    color: #ffe600;
}

.registro-hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.registro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.registro-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.registro-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: #f8f9fb;
}

.registro-form-wrapper {
    width: 100%;
    max-width: 520px;
}

.registro-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 0.4rem;
}

.registro-form-subtitle {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
}

.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.registro-form-wrapper .form-group {
    margin-bottom: 1.25rem;
}

.form-label-reg {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--on-background);
    margin-bottom: 0.4rem;
}

.optional-tag {
    font-weight: 400;
    color: var(--on-surface-variant);
    font-style: italic;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 1.2rem;
    color: #b0b8c4;
    pointer-events: none;
    z-index: 2;
}

.form-input-reg {
    width: 100%;
    padding: 0.8rem 0.85rem 0.8rem 2.75rem;
    border: 1.5px solid #dce1e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--on-background);
    background-color: #ffffff;
    transition: all 0.25s ease;
    outline: none;
}

.form-input-reg:focus {
    border-color: var(--tertiary-fixed);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.1);
}

.form-input-reg::placeholder {
    color: #b0b8c4;
}

.toggle-pass {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    z-index: 2;
}

.toggle-pass .material-symbols-outlined {
    font-size: 1.25rem;
    color: #b0b8c4;
    transition: color 0.2s;
}

.toggle-pass:hover .material-symbols-outlined {
    color: var(--on-surface-variant);
}

/* Checkboxes */
.reg-checkbox-group {
    margin-bottom: 1rem;
}

.reg-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
}

.reg-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #dce1e8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
    background: #ffffff;
}

.reg-checkbox input:checked ~ .checkmark {
    background-color: var(--tertiary-fixed);
    border-color: var(--tertiary-fixed);
}

.reg-checkbox input:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkbox-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--on-surface-variant);
}

.reg-link {
    color: var(--tertiary-fixed);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reg-link:hover {
    color: #2968c8;
}

.btn-registro {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #3483fa, #2968c8);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.btn-registro:hover {
    background: linear-gradient(135deg, #2968c8, #1d5ab8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 131, 250, 0.3);
}

.btn-registro:active {
    transform: translateY(0);
}

.btn-registro:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive - Registro */
@media (max-width: 900px) {
    .registro-section {
        flex-direction: column;
    }

    .registro-left {
        padding: 3rem 2rem;
    }

    .registro-hero-title {
        font-size: 1.75rem;
    }

    .registro-right {
        padding: 2rem 1.5rem;
    }

    .reg-row {
        grid-template-columns: 1fr;
    }
}
