/* Solución Escolar - Main Styles */
:root {
  --primary-color: #2B7CE9;
  --primary-dark: #1a5bb8;
  --primary-light: #e8f2ff;
  --secondary-color: #FF8A00;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Bootstrap Custom Colors */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 124, 233, 0.3);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding-top: 120px;
  color: #ffffff !important;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a90e2 50%, var(--secondary-color) 100%);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 700 !important;
}

.hero-content .lead {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-content .lead strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.hero-content .text-muted {
  color: rgba(255,255,255,0.9) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-content small.text-muted {
  color: rgba(255,255,255,0.85) !important;
}

.hero-mascot {
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Floating Elements - Optimizado para móviles */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.7;
  animation: floatIcon 4s ease-in-out infinite;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.floating-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.floating-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.floating-2 {
  top: 45%;
  right: 8%;
  animation-delay: 1s;
}

.floating-3 {
  bottom: 25%;
  left: 12%;
  animation-delay: 2s;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.hero-wave .shape-fill {
  fill: #FFFFFF;
}

/* Step Cards */
.step-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(43, 124, 233, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  margin-top: 20px;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(43, 124, 233, 0.1), transparent);
  transition: left 0.5s ease;
}

.step-card:hover::before {
  left: 100%;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(43, 124, 233, 0.15);
}

.step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(43, 124, 233, 0.3);
  z-index: 10;
  border: 3px solid white;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-arrow {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  z-index: 10;
}

/* Background Gradients */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Benefit Cards */
.benefit-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

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

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Problem and Solution */
.problem-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
}

.solution-card {
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: inherit;
  z-index: -1;
}

.solution-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), rgba(43, 124, 233, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 124, 233, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(43, 124, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 124, 233, 0); }
}

/* Institutional Benefits */
.benefit-icon-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-light), rgba(43, 124, 233, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Savings Section */
.volume-indicator .progress {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.community-circle {
  position: relative;
  padding: 2rem;
}

.saving-stat {
  padding: 1rem 0;
}

.saving-stat .h2 {
  margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    text-align: center;
    min-height: 100vh;
  }
  
  .hero-mascot {
    max-width: 250px;
    margin-top: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .display-6 {
    font-size: 1.25rem;
  }
  
  .step-number {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    border: 2px solid white;
  }
  
  .step-card {
    padding: 2rem 1rem 1rem 1rem;
    margin-top: 15px;
  }
  
  .step-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  /* Elementos flotantes visibles en móviles */
  .floating-elements {
    display: block !important;
    z-index: 1;
  }
  
  .floating-icon {
    width: 50px;
    height: 50px;
    opacity: 0.6;
  }
  
  .floating-image {
    width: 30px;
    height: 30px;
  }
  
  .floating-1 {
    top: 12%;
    left: 10%;
  }
  
  .floating-2 {
    top: 50%;
    right: 10%;
  }
  
  .floating-3 {
    bottom: 20%;
    left: 15%;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 90px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .benefit-card {
    padding: 1rem;
  }
  
  .floating-icon {
    width: 45px;
    height: 45px;
  }
  
  .floating-image {
    width: 25px;
    height: 25px;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .floating-icon {
    width: 40px;
    height: 40px;
  }
  
  .floating-image {
    width: 22px;
    height: 22px;
  }
  
  .floating-1 {
    top: 15%;
    left: 12%;
  }
  
  .floating-2 {
    top: 45%;
    right: 12%;
  }
  
  .floating-3 {
    bottom: 25%;
    left: 18%;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
  box-shadow: 0 0 0 3px rgba(43, 124, 233, 0.25);
  outline: none;
}

/* Footer Styles - Específico y con mayor prioridad */
footer.bg-dark {
  background-color: var(--dark-color) !important;
  color: #ffffff !important;
  padding: 3rem 0 !important;
}

footer.bg-dark h6 {
  color: #ffffff !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

footer.bg-dark .text-muted {
  color: #adb5bd !important;
  margin-bottom: 0.25rem !important;
}

footer.bg-dark .text-white {
  color: #ffffff !important;
}

footer.bg-dark a {
  color: #adb5bd !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

footer.bg-dark a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

footer.bg-dark .social-links a {
  display: inline-block !important;
  margin-right: 1rem !important;
  font-size: 1.25rem !important;
  transition: all 0.3s ease !important;
}

footer.bg-dark .social-links a:hover {
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

footer.bg-dark hr {
  border-color: #495057 !important;
  margin: 2rem 0 !important;
  opacity: 1 !important;
}

footer.bg-dark .row {
  align-items: flex-start !important;
}

footer.bg-dark .col-lg-4,
footer.bg-dark .col-lg-2,
footer.bg-dark .col-lg-3 {
  margin-bottom: 2rem !important;
}

footer.bg-dark ul.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

footer.bg-dark ul.list-unstyled li {
  margin-bottom: 0.5rem !important;
}

footer.bg-dark ul.list-unstyled li a {
  color: #adb5bd !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
}

footer.bg-dark ul.list-unstyled li a:hover {
  color: #ffffff !important;
}

/* Asegurar que el logo en el footer sea visible */
footer.bg-dark img.footer-logo {
  filter: brightness(0) invert(1) !important; /* Convertir logo principal a blanco */
  margin-bottom: 1rem !important;
}

/* Iconos de contacto mantienen su color original */
footer.bg-dark .contact-icon {
  filter: none !important; /* Sin filtro para iconos de contacto */
  margin-bottom: 0 !important;
}

/* Copyright section */
footer.bg-dark .row.align-items-center:last-child .text-muted {
  font-size: 0.875rem !important;
}

footer.bg-dark .row.align-items-center:last-child a {
  font-size: 0.875rem !important;
  margin-left: 1rem !important;
}

@media (max-width: 768px) {
  footer.bg-dark .col-lg-6.text-lg-end {
    text-align: left !important;
    margin-top: 1rem !important;
  }
  
  footer.bg-dark .row.align-items-center:last-child a {
    margin-left: 0 !important;
    margin-right: 1rem !important;
  }
}

/* Print Styles */
@media print {
  .hero-section,
  .navbar,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Clases de utilidad adicionales que pueden faltar */
.text-lg-end {
  text-align: right !important;
}

.g-4 > * {
  margin-top: 1.5rem !important;
}

.fab {
  font-family: inherit !important;
}

/* Asegurar que todos los elementos del footer tengan el color correcto */
footer * {
  color: inherit !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
}

footer p {
  color: #adb5bd !important;
  margin-bottom: 0.5rem !important;
}