/* ============================================
   VARIABLES Y RESET
   ============================================ */

:root {
  --primary-purple: #8b5cf6;
  --dark-purple: #6d28d9;
  --accent-purple: #a78bfa;
  --light-purple: #c4b5fd;
  --white: #ffffff;
  --black: #000000;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: rgba(26, 26, 26, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #a3a3a3;
  --border-color: rgba(139, 92, 246, 0.2);
  --border-hover: rgba(139, 92, 246, 0.4);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.15);
  --shadow-xl: 0 16px 64px rgba(139, 92, 246, 0.2);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
  transition: transform var(--transition-fast);
  text-decoration: none;
}

.logo:hover {
  transform: scale(1.05);
}

.isologo-image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--primary-purple);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--white) !important;
  font-weight: 600;
}

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

.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-purple));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */

.calculator-section {
  padding: 140px 0 100px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(109, 40, 217, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.calculator-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.calculator-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.calculator-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.calculator-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.calculator-form-container:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl);
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type="number"] {
  width: 100%;
  padding: 14px 18px;
  background: rgba(17, 17, 17, 0.8);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: all var(--transition-base);
}

.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  background: rgba(17, 17, 17, 0.95);
}

.form-group input[type="number"]:hover {
  border-color: var(--border-hover);
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -4px;
}

.error-message {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -4px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.error-message.show {
  opacity: 1;
  color: var(--light-purple);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(17, 17, 17, 0.5);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.checkbox-item:hover {
  border-color: var(--border-hover);
  background: rgba(17, 17, 17, 0.7);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-purple);
  flex-shrink: 0;
}

.checkbox-item label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  margin: 0;
  transition: color var(--transition-base);
  flex: 1;
}

.checkbox-item:hover label {
  color: var(--text-primary);
}

.checkbox-item input[type="checkbox"]:checked + label {
  color: var(--primary-purple);
  font-weight: 600;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
  border-color: var(--primary-purple);
  background: rgba(139, 92, 246, 0.1);
}

.checkbox-item:has(input[type="checkbox"]:checked) label {
  color: var(--primary-purple);
  font-weight: 600;
}

.btn-calculate {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  margin-top: 8px;
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-purple));
}

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

.btn-calculate svg {
  transition: transform var(--transition-base);
}

.btn-calculate:hover svg {
  transform: translate(3px, -3px);
}

/* ============================================
   RESULTS
   ============================================ */

.calculator-results-container {
  margin-top: 40px;
  animation: fadeInUp 0.6s ease-out;
}

.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.results-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl);
}

.results-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.result-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.result-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  color: var(--primary-purple);
  flex-shrink: 0;
}

.result-text {
  flex: 1;
}

.result-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.result-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-purple);
  line-height: 1.2;
}

.btn-reset {
  width: 100%;
  padding: 14px 32px;
  background: rgba(26, 26, 26, 0.8);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-base);
}

.btn-reset:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-reset svg {
  transition: transform var(--transition-base);
}

.btn-reset:hover svg {
  transform: rotate(-180deg);
}

/* Botón mini para agendar reunión */
.btn-meeting {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-base);
  text-decoration: none;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-meeting:hover {
  background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-meeting:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-meeting svg {
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.btn-meeting:hover svg {
  transform: translateX(2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.logo-image {
  height: 48px;
  width: auto;
}

.footer-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-purple);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--primary-purple);
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--primary-purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-secondary {
  background: rgba(26, 26, 26, 0.7);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--border-hover);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

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

.fade-in-up[data-delay="100"] {
  animation-delay: 0.1s;
}

.fade-in-up[data-delay="200"] {
  animation-delay: 0.2s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .calculator-form-container,
  .results-card {
    padding: 32px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .calculator-title {
    font-size: 36px;
  }

  .calculator-subtitle {
    font-size: 18px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 40px 40px;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

@media (max-width: 640px) {
  .calculator-section {
    padding: 120px 0 60px;
  }

  .calculator-form-container,
  .results-card {
    padding: 24px;
  }

  .calculator-title {
    font-size: 28px;
  }

  .calculator-subtitle {
    font-size: 16px;
  }

  .results-title {
    font-size: 24px;
  }

  .result-item {
    padding: 20px;
    gap: 16px;
  }

  .result-value {
    font-size: 28px;
  }

  .result-icon {
    width: 48px;
    height: 48px;
  }
}

