:root {
  /* Colores corporativos Destia */
  --primary: #0052cc;
  --primary-dark: #003d99;
  --primary-light: #4c9aff;
  --secondary: #00c7b7;
  --accent: #ff6b35;
  --dark: #0a1628;
  --dark-light: #1a2744;
  --gray-900: #172b4d;
  --gray-700: #344563;
  --gray-500: #5e6c84;
  --gray-300: #a5adba;
  --gray-100: #f4f5f7;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #0a1628 0%,
    #1a2744 50%,
    #0052cc 100%
  );
  --gradient-card: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(0, 82, 204, 0.3);

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

/* ==================== LOADING SCREEN ==================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

.loader-logo span {
  color: var(--secondary);
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 2rem;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.logo span {
  color: var(--secondary);
}

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

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

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-700);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
}

.btn-primary:hover {
  background: #00e6d3;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 199, 183, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.navbar.scrolled .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.navbar.scrolled .menu-toggle {
  color: var(--dark);
}

.registro-hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 4rem;
  overflow: hidden;
}

.registro-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.registro-hero .hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 199, 183, 0.15) 0%,
    transparent 70%
  );
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.registro-hero .hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 82, 204, 0.2) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

/* ==================== CONTAINER ==================== */
.registro-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ==================== HEADER ==================== */
.registro-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.registro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.registro-badge i,
.registro-badge svg {
  width: 16px;
  height: 16px;
}

.registro-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.registro-header h1 .highlight {
  background: linear-gradient(135deg, var(--secondary) 0%, #00e6d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.registro-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================== FORM CARD ==================== */
.form-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

/* ==================== FORM SECTIONS ==================== */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.section-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.section-info p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ==================== FORM GRID ==================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-grid:last-child {
  margin-bottom: 0;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

/* ==================== FORM GROUP ==================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.flex-grow {
  flex: 1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.required {
  color: var(--accent);
  font-weight: 700;
}

/* ==================== INPUT WRAPPER ==================== */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i,
.input-wrapper svg {
  position: absolute;
  left: 1rem;
  color: var(--gray-300);
  transition: color 0.3s ease;
  pointer-events: none;
}

.input-wrapper:focus-within i,
.input-wrapper:focus-within svg {
  color: var(--primary);
}

/* ==================== FORM INPUT ==================== */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid var(--gray-100);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-input:hover {
  border-color: var(--gray-300);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

.form-input.valid {
  border-color: var(--secondary);
}

.form-input.invalid {
  border-color: var(--accent);
}

/* ==================== SELECT WRAPPER ==================== */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper > i:first-child,
.select-wrapper > svg:first-child {
  position: absolute;
  left: 1rem;
  color: var(--gray-300);
  transition: color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.select-wrapper:focus-within > i:first-child,
.select-wrapper:focus-within > svg:first-child {
  color: var(--primary);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  color: var(--gray-300);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.select-wrapper:focus-within .select-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* ==================== FORM SELECT ==================== */
.form-select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 3rem;
  border: 2px solid var(--gray-100);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.3s ease;
}

.form-select:hover {
  border-color: var(--gray-300);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

.select-wrapper.compact .form-select {
  padding: 0.875rem 2.5rem 0.875rem 3rem;
}

/* ==================== PHONE GRID ==================== */
.form-group-phone {
  margin-bottom: 0;
}

.form-group-phone > .form-label {
  margin-bottom: 0.75rem;
}

.phone-grid {
  display: flex;
  gap: 1rem;
}

.phone-grid .form-group:first-child {
  width: 140px;
  min-width: 140px;
}

/* ==================== PLACES CONTAINER ==================== */
.places-container {
  margin-top: 0.75rem;
}

.sortable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sortable-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: grab;
}

.sortable-list li:active {
  cursor: grabbing;
}

.sortable-list li .remove {
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

.sortable-list li .remove:hover {
  transform: scale(1.2);
}

/* ==================== PRIVACY NOTE ==================== */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(0, 82, 204, 0.05);
  border: 1px solid rgba(0, 82, 204, 0.1);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.privacy-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0, 82, 204, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.privacy-content {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.privacy-content strong {
  color: var(--dark);
}

/* ==================== FORM ACTIONS ==================== */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.form-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.form-actions .btn-primary {
  background: var(--secondary);
  color: var(--dark);
}

.form-actions .btn-primary:hover:not(:disabled) {
  background: #00e6d3;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 199, 183, 0.3);
}

.form-actions .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-actions .btn-outline {
  background: transparent;
  color: var(--gray-500);
  border: 2px solid var(--gray-100);
}

.form-actions .btn-outline:hover {
  border-color: var(--gray-300);
  color: var(--gray-700);
}

/* ==================== SPINNER ANIMATION ==================== */
.spinner {
  animation: spin 1s linear infinite;
}

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

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== GOOGLE PLACES AUTOCOMPLETE OVERRIDE ==================== */
.pac-container {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif;
  z-index: 10000;
}

.pac-item {
  padding: 0.75rem 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pac-item:hover {
  background: var(--gray-100);
}

.pac-item-query {
  font-size: 0.95rem;
  color: var(--dark);
}

.pac-matched {
  font-weight: 600;
}

.pac-icon {
  display: none;
}

/* ==================== SWEETALERT2 CUSTOMIZATION ==================== */
.swal2-popup {
  border-radius: 20px !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif !important;
}

.swal2-title {
  font-weight: 700 !important;
  color: var(--dark) !important;
}

.swal2-html-container {
  color: var(--gray-700) !important;
  line-height: 1.6 !important;
}

.swal2-confirm {
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .registro-hero {
    padding-top: 100px;
  }

  .registro-container {
    padding: 0 1rem;
  }

  .form-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .phone-grid {
    flex-direction: column;
  }

  .phone-grid .form-group:first-child {
    width: 100%;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

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

  .privacy-note {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .registro-header h1 {
    font-size: 1.75rem;
  }

  .registro-subtitle {
    font-size: 1rem;
  }

  .form-card {
    padding: 1.25rem;
  }

  .section-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .section-info h2 {
    font-size: 1.1rem;
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-column ul a:hover {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .navbar.scrolled .nav-links {
    background: var(--white);
  }

  .menu-toggle {
    display: block;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .step-card::after {
    display: none;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured.visible {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

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

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

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