/* ==========================================
   FOOTER - Pie de página corporativo
   Paleta Corporativa Minimalista
   ========================================== */

:root {
  /* Colores Corporativos */
  --color-primary: #02408f;
  --color-secondary: #02b8eb;
  --color-accent: #ff9923;
  --color-neutral: #e8e8e8;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #02408f 0%, #02b8eb 100%);
  --gradient-footer: linear-gradient(135deg, #0a1628 0%, #02408f 100%);

  /* Sombras */
  --shadow-footer: 0 -4px 24px rgba(2, 64, 143, 0.08);
}

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

.main-footer {
  background: var(--gradient-footer);
  color: #cbd5e1;
  margin-top: auto;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-footer);
}

/* Línea decorativa superior con glow */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  box-shadow: 0 2px 16px rgba(2, 184, 235, 0.4);
  z-index: 1;
}

/* Patrón decorativo sutil */
.main-footer::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 184, 235, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   GRID DEL FOOTER
============================================ */

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

/* ============================================
   COLUMNAS
============================================ */

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

/* Línea decorativa animada */
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 48px;
}

/* ============================================
   LOGO Y DESCRIPCIÓN
============================================ */

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

.footer-logo img {
  height: 48px;
  width: auto;
  max-width: 200px;
  filter: brightness(1.15);
  transition: all 0.3s ease;
}

.footer-logo:hover img {
  filter: brightness(1.3) drop-shadow(0 4px 12px rgba(2, 184, 235, 0.3));
  transform: scale(1.02);
}

.footer-logo .logo-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.footer-logo .logo-text i {
  color: var(--color-secondary);
  font-size: 34px;
}

.footer-logo:hover .logo-text {
  transform: scale(1.02);
}

.footer-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 360px;
}

/* ============================================
   REDES SOCIALES - PREMIUM
============================================ */

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Efecto gradiente al hover */
.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.footer-social a i {
  position: relative;
  z-index: 1;
}

.footer-social a:hover {
  border-color: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2, 184, 235, 0.35);
}

.footer-social a:hover::before {
  opacity: 1;
}

/* Colores específicos por red social */
.footer-social a[aria-label="Facebook"]:hover {
  border-color: #1877f2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
}
.footer-social a[aria-label="Facebook"]:hover::before { background: #1877f2; }

.footer-social a[aria-label="Twitter"]:hover {
  border-color: #1da1f2;
  box-shadow: 0 8px 24px rgba(29, 161, 242, 0.35);
}
.footer-social a[aria-label="Twitter"]:hover::before { background: #1da1f2; }

.footer-social a[aria-label="LinkedIn"]:hover {
  border-color: #0077b5;
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.35);
}
.footer-social a[aria-label="LinkedIn"]:hover::before { background: #0077b5; }

.footer-social a[aria-label="Instagram"]:hover {
  border-color: #e4405f;
  box-shadow: 0 8px 24px rgba(228, 64, 95, 0.35);
}
.footer-social a[aria-label="Instagram"]:hover::before {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

/* ============================================
   LINKS DE NAVEGACIÓN
============================================ */

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

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 2px 0;
}

/* Línea animada inferior */
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(6px);
}

.footer-links a:hover::after {
  width: 100%;
}

/* ============================================
   INFORMACIÓN DE CONTACTO
============================================ */

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

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.footer-contact li:hover {
  color: #cbd5e1;
  transform: translateX(2px);
}

.footer-contact i {
  color: var(--color-secondary);
  width: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.footer-contact li:hover i {
  color: var(--color-accent);
  transform: scale(1.1);
}

.footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.footer-contact a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact a:hover::after {
  width: 100%;
}

/* ============================================
   FOOTER BOTTOM - COPYRIGHT Y PAGOS
============================================ */

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   MÉTODOS DE PAGO
============================================ */

.footer-payment {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-payment i {
  font-size: 34px;
  color: #94a3b8;
  transition: all 0.3s ease;
  filter: grayscale(0.6) opacity(0.8);
}

.footer-payment i:hover {
  color: #ffffff;
  filter: grayscale(0) opacity(1);
  transform: scale(1.15) translateY(-2px);
}

/* Colores específicos por método de pago */
.footer-payment .fa-cc-visa:hover { color: #1a1f71; }
.footer-payment .fa-cc-mastercard:hover { color: #eb001b; }
.footer-payment .fa-cc-paypal:hover { color: #003087; }

/* ============================================
   RESPONSIVE - MOBILE FIRST
============================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding: 48px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-col:first-child {
    grid-column: auto;
    max-width: 100%;
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    padding: 24px 0;
  }

  .footer-payment {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-col h4 {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-logo img {
    height: 42px;
  }

  .footer-logo .logo-text {
    font-size: 1.3rem;
  }

  .footer-logo .logo-text i {
    font-size: 30px;
  }

  .footer-description {
    font-size: 0.85rem;
  }

  .footer-social {
    gap: 8px;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .footer-links a,
  .footer-contact li {
    font-size: 0.85rem;
  }

  .footer-payment i {
    font-size: 30px;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding: 20px 0;
  }
}

/* ============================================
   ACCESIBILIDAD
============================================ */

.footer-links a:focus-visible,
.footer-contact a:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .main-footer::after,
  .footer-logo img,
  .footer-logo .logo-text,
  .footer-social a,
  .footer-links a,
  .footer-contact li,
  .footer-payment i {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================
   ESTADOS HOVER MEJORADOS
============================================ */

.footer-col {
  transition: transform 0.3s ease;
}

@media (min-width: 769px) {
  .footer-col:hover {
    transform: translateY(-2px);
  }
}

/* ============================================
   DARK MODE SUPPORT (Si lo implementas)
============================================ */

@media (prefers-color-scheme: dark) {
  .main-footer {
    background: var(--gradient-footer);
  }
}
