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

:root {
  --primary: #100731;
  --secondary: #2ed4f5;
  --secondary-hover: #1cb5d4;
  --base: #ffffff;
  --text-dark: #333333;
  --text-light: #f4f4f5;
  --text-muted: #a1a1aa;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.05);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--base);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--primary); }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary); }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }

.text-gradient {
  background: linear-gradient(90deg, var(--base) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(46, 212, 245, 0.4);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 212, 245, 0.6);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--base);
  border-color: var(--primary);
}

.btn-block {
  width: 100%;
}

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

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.white-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  color: var(--text-dark);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.9rem;
}

.white-card .form-label {
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.white-card .form-control {
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(46, 212, 245, 0.2);
}

/* Layout Elements */
header {
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled .logo {
  color: var(--primary);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 0.3rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20% 100%;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Background effects */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary) 0%, rgba(46, 212, 245, 0) 70%);
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Simulator / Funnel Layout */
.simulator-widget {
  position: relative;
  z-index: 10;
  scroll-margin-top: 120px;
}

/* Steps Indicator */
.steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e4e4e7;
  transform: translateY(-50%);
  z-index: 1;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e4e4e7;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.step-dot.active {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 212, 245, 0.2);
}

.step-dot.completed {
  background: var(--primary);
  color: var(--base);
}

/* Range Slider Custom */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 15px 0;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #e4e4e7;
  border-radius: 3px;
}

/* Values Display */
.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.value-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.simulator-result {
  background: var(--primary);
  color: var(--base);
  padding: 1.5rem;
  border-radius: 16px;
  margin-top: 1.5rem;
  text-align: center;
}

.simulator-result h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.simulator-result .monthly-fee {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Sections */
section {
  padding: 5rem 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(46, 212, 245, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
}

/* Utilities */
.hidden { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Products Grid & Accordion */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.accordion-container {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header h3 {
  font-family: serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.tasa-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: monospace;
}

.tasa-highlight {
  color: var(--secondary);
  font-weight: 600;
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  color: var(--text-dark);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding-bottom: 1.5rem;
  opacity: 1;
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Cyan Slider Customization */
.cyan-slider {
  height: 4px !important;
  background: #cffafe !important;
}

.cyan-slider::-webkit-slider-thumb {
  background: var(--base) !important;
  border: 3px solid var(--secondary) !important;
  box-shadow: 0 0 10px rgba(46, 212, 245, 0.3) !important;
  margin-top: -10px !important;
}

.cyan-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--secondary) var(--range-progress, 0%), #cffafe var(--range-progress, 0%)) !important;
  height: 4px !important;
}

/* Service & Nosotros additions */
.service-card:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
  .nosotros-grid {
    grid-template-columns: 1fr !important;
  }
  .info-blocks-grid {
    grid-template-columns: 1fr !important;
  }
  .institutional-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Animated Character G */
#cursor-g {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(46, 212, 245, 0.3);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--secondary);
  font-size: 24px;
  transform: translate(-50%, -50%); /* Start centered */
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, color 0.3s;
  border: 2px solid rgba(46, 212, 245, 0.5);
  left: 0;
  top: 0;
}

#cursor-g.hover-active {
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 8px 25px rgba(46, 212, 245, 0.6);
  border-color: var(--primary);
}

/* Eyes inside the G */
.g-eyes {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.g-eye {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
  transition: height 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.g-pupil {
  width: 5px;
  height: 5px;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
}

#cursor-g.hover-active .g-eye {
  height: 14px; /* Surprised look */
}

/* Enhancing Icons */
.ph-fill, .ph {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}

.service-card:hover .service-icon i,
.benefit-card:hover .benefit-icon i,
.glass-panel:hover i.ph-fill {
  transform: scale(1.25) translateY(-3px);
  color: var(--secondary-hover);
}

/* Elevation on cards */
.glass-panel {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 20px rgba(46, 212, 245, 0.15);
}

.service-card:hover {
  transform: scale(1.03) translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 25px rgba(46, 212, 245, 0.2) !important;
}

.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Modern Footer */
.modern-footer {
  background: rgba(30, 30, 35, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
  color: var(--text-light);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.modern-footer .logo {
  color: var(--base);
}

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

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

.footer-desc {
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 300px;
}

.modern-footer h4 {
  color: var(--base);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.modern-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40%;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-contact li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a1a1aa;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--base);
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icons a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(46, 212, 245, 0.4);
  border-color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .modern-footer {
    padding-top: 3rem;
  }
  .footer-desc {
    max-width: 100%;
  }
}
