/* Global Section Refinements */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.bg-light {
  background-color: var(--bg-soft);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--primary-navy);
}

.carousel-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 1.2s cubic-bezier(0.6, 0.05, 0.01, 0.9);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Background Gradients for Slides - High Resolution Professional Images */
.carousel-slide:nth-child(1) { background: linear-gradient(rgba(24, 41, 102, 0.7), rgba(24, 41, 102, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2070'); }
.carousel-slide:nth-child(1) .btn-primary:hover,
.carousel-slide:nth-child(2) .btn-primary:hover,
.carousel-slide:nth-child(3) .btn-primary:hover { background-color: var(--primary-blue); color: white; }
.carousel-slide:nth-child(2) { background: linear-gradient(rgba(0, 169, 237, 0.6), rgba(24, 41, 102, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=2069'); }
.carousel-slide:nth-child(3) { background: linear-gradient(rgba(24, 41, 102, 0.8), rgba(0, 169, 237, 0.6)), url('https://images.unsplash.com/photo-1449156001935-d25a89b2a651?auto=format&fit=crop&q=80&w=2070'); }

.carousel-slide .hero-actions .btn-primary { 
  background-color: var(--primary-blue); 
  color: white; 
}
.carousel-slide .hero-actions .btn-primary:hover { 
  background-color: #4fc5f7; 
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 169, 237, 0.3);
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.4s;
}

.carousel-slide.active .hero-badge {
  transform: translateY(0);
  opacity: 1;
}

.carousel-slide.active h1 {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.5s;
  color: white;
}

.carousel-slide.active p {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.6s;
}

.carousel-slide.active .hero-actions {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.7s;
}

.carousel-slide h1, .carousel-slide p, .carousel-slide .hero-actions {
  transform: translateY(40px);
  opacity: 0;
  margin-top: 14px;

}

/* Carousel Controls */
.carousel-nav {
  position: absolute;
  bottom: 3rem;
  right: 5%;
  display: flex;
  gap: 1.5rem;
  z-index: 10;
}

.carousel-nav button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 1.2rem;
}

.carousel-nav button:hover {
  background: white;
  color: var(--primary-navy);
  transform: scale(1.05);
}

.carousel-dots {
  position: absolute;
  bottom: 3rem;
  left: 5%;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
}

.dot.active {
  background: var(--primary-blue);
  width: 40px;
}

/* Fideicomiso Section - Minimal & Clean */
.grid-fideicomiso {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.fideicomiso-card {
  padding: 3.5rem 2.5rem;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fideicomiso-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -12px rgba(24, 41, 102, 0.08);
  border-color: rgba(0, 169, 237, 0.2);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(0, 169, 237, 0.05);
  color: var(--primary-blue);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}

.fideicomiso-card:hover .card-icon {
  background-color: var(--primary-blue);
  color: white;
  transform: rotateY(180deg);
}

.fideicomiso-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.fideicomiso-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Como Invertir - Sophisticated Box */
.como-invertir {
  padding: 5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 32px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.como-invertir::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 169, 237, 0.03) 0%, transparent 70%);
  z-index: 0;
}

.como-invertir-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.como-invertir-header i {
  font-size: 2rem;
  color: var(--primary-blue);
}

.como-invertir > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 1;
}

.agente {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid transparent;
}

.agente:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
}

.agente i.bi-building, .agente i.bi-bank {
  font-size: 2.5rem;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.agente h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
}

.agente p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.agente p i {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

/* Sobre Nosotros - Premium Parallax Alternative */
.parallax-section {
  background: linear-gradient(rgba(24, 41, 102, 0.9), rgba(24, 41, 102, 0.9)), url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&q=80&w=2069');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 0;
}

.mision-vision-valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
}

.sobre-nosotros-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.sobre-nosotros-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
}

.mvv-item {
  text-align: center;
}

.mvv-item i {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  display: inline-block;
}

.mvv-item h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.mvv-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.8;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.values-list li {
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.values-list li i {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* FAQ Cards - Refined for Alignment and Size */
.faq-grid {
  max-width: 750px; /* More compact and focused */
  margin: 0 auto;
}

.card-faq {
  margin-bottom: 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-faq .accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-navy);
  cursor: pointer;
}

.card-faq .accordion-header i {
  font-size: 1.1rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.card-faq.active {
  border-color: var(--primary-blue);
  box-shadow: 0 10px 25px -10px rgba(24, 41, 102, 0.1);
}

.card-faq.active .accordion-header i {
  transform: rotate(45deg);
}

.card-faq .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-faq.active .accordion-content {
  max-height: 300px;
}

.content-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Documentos - Premium Minimalist List */
.docs-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-item:hover {
  transform: translateX(10px);
  border-color: var(--primary-blue);
  background: var(--bg-soft);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.doc-info i {
  font-size: 2rem;
  color: var(--primary-navy);
}

.doc-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-navy);
}

.doc-download {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .como-invertir {
    padding: 2rem 1.5rem;
  }

  .hero-carousel h1 {
    font-size: 2.5rem;
  }

  .carousel-nav {
    bottom: 2rem;
    right: 50%;
    transform: translateX(50%);
  }

  .carousel-dots {
    display: none;
  }
}

.agentes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.agente {
  padding: 2rem 1.5rem;
}
.agente i.bi-building, .agente i.bi-bank {
  font-size: 2rem;
}
.agente h4 {
  font-size: 1.1rem;
}
.agente p {
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .agentes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .agente {
    padding: 1.5rem 1rem;
  }
  .agente i.bi-building, .agente i.bi-bank {
    font-size: 1.5rem;
  }
  .agente h4 {
    font-size: 1rem;
  }
  .agente p {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 768px) {
  .agente {
    padding: 1.5rem 1rem;
  }
  .agente i.bi-building, .agente i.bi-bank {
    font-size: 1.5rem;
  }
  .agente h4 {
    font-size: 1rem;
  }
  .agente p {
    font-size: 0.85rem;
  }
  .doc-item {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .doc-info {
    gap: 1rem;
  }
  .doc-info i {
    font-size: 1.5rem;
  }
  .doc-name {
    font-size: 0.95rem;
  }
  .doc-download {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .doc-item {
    padding: 1rem;
  }
  .doc-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .doc-info i {
    font-size: 1.25rem;
  }
}
