/* ============================================================================
   RADIOGRAFÍA DE LA CORRUPCIÓN - SISTEMA CNC
   Adaptado al estilo Portal de Integridad Activa (PIA)
   ============================================================================ */

/* ===== VARIABLES CSS ===== */
:root {
  /* Colores PIA - Principales */
  --color-primary-dark: #192854;      /* Azul marino oscuro - Header */
  --color-primary-light: #51BFFF;     /* Azul claro - Menú secundario */
  --color-accent: #f3294b;            /* Rojo - Acentos y alertas */
  
  /* Colores originales mantenidos */
  --primary-blue: #1e40af;
  --light-blue: #3b82f6;
  --dark-blue: #1e3a8a;
  --primary-graph: #0c1f46;
  
  /* Grises y neutrales */
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #334155;
  --text-light: #ffffff;
  
  /* Sombras y efectos */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: #fff;
  overflow-x: hidden;
}

/* Título principal de la página */
.titulo-pagina-principal {
    border-left: 5px solid #2c3e50;
    padding: 1.5rem 0 1.5rem 1.5rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0 8px 8px 0;
}

.titulo-pagina-principal h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.titulo-pagina-principal .subtitulo {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

/* ============================================================================
   HEADER - DOBLE BARRA (ESTILO PIA - VERSIÓN CORREGIDA)
   ============================================================================ */

/* Wrapper del Header */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Barra Principal - Azul Marino Oscuro */
.navbar-primary {
  background-color: #192854;
  padding: 0;
  margin: 0;
  border-bottom: none;
}

.navbar-primary .container {
  padding: 0;
}

.navbar-primary .navbar-brand {
  padding: 0.5rem 1rem;
  margin: 0;
}

.navbar-primary .navbar-brand img {
  height: 50px;
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.navbar-primary .navbar-brand:hover img {
  transform: scale(1.05);
}

/* Nav Items Container */
.navbar-primary .navbar-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.navbar-primary .nav-item {
  position: relative;
  margin: 0;
}

/* Nav Links - ESTILO EXACTO DEL PIA */
.navbar-primary .nav-link {
  color: #ffffff !important;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  display: block;
  background: transparent;
}

/* Línea de subrayado animada - EXACTO AL PIA */
.navbar-primary .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #51BFFF;
  transition: width 0.3s ease;
}

/* Hover Effect */
.navbar-primary .nav-link:hover::after,
.navbar-primary .nav-link.active::after {
  width: 100%;
}

/* Efecto sutil de background en hover */
.navbar-primary .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Link activo */
.navbar-primary .nav-link.active {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Navbar Toggler */
.navbar-primary .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 1rem;
}

.navbar-primary .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(81, 191, 255, 0.4);
  outline: none;
}

.navbar-primary .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
}

/* Barra Secundaria - Azul Claro */
.navbar-secondary {
  background-color: #51BFFF;
  padding: 0;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-secondary .nav {
  gap: 0;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.navbar-secondary .nav-link {
  color: #ffffff !important;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-secondary .nav-link:last-child {
  border-right: none;
}

.navbar-secondary .nav-link i {
  font-size: 1rem;
}

.navbar-secondary .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
/* ===== SECCIONES PRINCIPALES ===== */

/* Hero Section - Mejorada */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.hero-section h1 {
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section img {
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.hero-section img:hover {
  transform: scale(1.02);
}

/* Sección de Impacto */
.impact-section {
  padding: 60px 0;
  background: white;
  color: black;
  margin-bottom: 40px;
}

.impact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.impact-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 900px;
  margin: 0 auto;
}

/* Sección Encabezado (Hero con fondo oscuro) */
.encabezado-section,
.encabezadoInicio-section {
  background: linear-gradient(135deg, #0c2048 0%, #050c1a 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

/* ===== TARJETAS FLIP (MEJORADAS) ===== */

.impact-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.card-container {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.impact-card.flipped .card-container {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  transition: box-shadow var(--transition-normal);
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--primary-graph) 100%);
  color: white;
}

.impact-card:not(.flipped) .card-front:hover {
  box-shadow: var(--shadow-lg);
}

.card-front i {
  color: var(--color-accent);
  margin-bottom: 15px;
  transition: transform var(--transition-normal);
}

.impact-card:not(.flipped) .card-front:hover i {
  transform: scale(1.1);
}

.card-front h5 {
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.card-front .text-muted {
  color: var(--medium-gray) !important;
}

.card-back h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.card-back p {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.95;
  padding: 0 10px;
}

.impact-card:active {
  transform: scale(0.98);
}

/* ===== BOTONES DE ACCESO ===== */

.access-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--primary-graph) 100%);
  padding: 3rem 0;
}

.access-button {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  backdrop-filter: blur(10px);
}

.access-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.access-button:hover::before {
  left: 100%;
}

.access-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.access-button a {
  text-decoration: none;
  color: white;
  display: block;
}

.access-button .btn-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transition: all var(--transition-normal);
  color: var(--color-primary-light);
  font-size: 1.5rem;
}

.access-button:hover .btn-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.access-button i {
  transition: transform var(--transition-normal);
}

.access-button:hover i {
  transform: scale(1.15) rotate(-5deg);
}

/* ===== TARJETAS DE CASOS ===== */

.case-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.case-card .card-body {
  padding: 1.5rem;
}

.case-card .card-title {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-card .badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== CONTROLES DE CAROUSEL ===== */

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--color-primary-dark);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.1);
}

/* ===== CONTADOR CIRCULAR ===== */

.circle-number {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f1f1f1;
  border: 4px solid var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.circle-number:hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== FLUJO DE ESTADOS ===== */

#flujo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

#flujo-container .estado-block {
  flex: 1 1 120px;
  text-align: center;
  min-width: 100px;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: all var(--transition-normal);
}

#flujo-container .estado-block:hover {
  background: var(--color-primary-light);
  color: white;
  transform: translateY(-3px);
}

#flujo-container .estado-block h6 {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#flujo-container .estado-arrow {
  display: inline-block;
  margin: 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-primary-dark);
}

/* ===== FOOTER (ESTILO PIA) ===== */

footer {
  background: linear-gradient(135deg, var(--color-primary-dark), #0a1428) !important;
  color: var(--text-light);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer p {
  margin: 0;
  opacity: 0.9;
}

.social-links a {
  transition: all var(--transition-normal);
  color: var(--text-light);
  opacity: 0.8;
}

.social-links a:hover {
  color: var(--color-primary-light) !important;
  opacity: 1;
  transform: translateY(-3px);
}

/* ===== BOTONES PERSONALIZADOS ===== */

.btn-Color,
.btn-primary {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.btn-Color:hover,
.btn-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(81, 191, 255, 0.4);
}

/* ===== ANIMACIONES ===== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all var(--transition-slow);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all var(--transition-slow);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(81, 191, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(81, 191, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(81, 191, 255, 0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 991px) {
  /* Navbar Primary */
  .navbar-primary .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-primary .nav-link::after {
    display: none;
  }

  /* Navbar Secondary */
  .navbar-secondary {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .navbar-secondary .nav-link {
    width: 100%;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-secondary .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .hero-section {
    text-align: center;
    padding: 2rem 0;
    min-height: auto;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .row {
    flex-direction: column-reverse;
  }

  /* Impact Section */
  .impact-section h2 {
    font-size: 2rem;
  }

  /* Impact Cards */
  .impact-card {
    height: 250px;
    margin-bottom: 30px;
  }

  .card-back h3 {
    font-size: 2rem;
  }

  .card-back p {
    font-size: 0.85rem;
    padding: 0 15px;
  }

  /* Access Buttons */
  .access-button {
    margin-bottom: 1rem;
  }

  /* Estado Flow */
  #flujo-container .estado-arrow {
    display: none;
  }

  /* Circle Number */
  .circle-number {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .navbar-primary .navbar-brand img {
    height: 40px;
  }

  .impact-section {
    padding: 40px 0;
  }

  .impact-section h2 {
    font-size: 1.75rem;
  }

  .access-section {
    padding: 2rem 0;
  }
}

/* ===== UTILIDADES ADICIONALES ===== */

.bg-primary-dark {
  background-color: var(--color-primary-dark) !important;
}

.bg-primary-light {
  background-color: var(--color-primary-light) !important;
}

.text-primary-dark {
  color: var(--color-primary-dark) !important;
}

.text-primary-light {
  color: var(--color-primary-light) !important;
}

.text-accent {
  color: var(--color-accent) !important;
}

/* ===== ACCESIBILIDAD ===== */

:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* ===== SCROLL SUAVE ===== */

html {
  scroll-behavior: smooth;
}

/* ===== SELECCIÓN DE TEXTO ===== */

::selection {
  background-color: var(--color-primary-light);
  color: white;
}

::-moz-selection {
  background-color: var(--color-primary-light);
  color: white;
}

/* ============================================================================
   FOOTER - ESTILO PIA
   ============================================================================ */

.footer-pia {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0a1428 100%);
  color: var(--text-light);
  margin-top: 4rem;
  position: relative;
}

.footer-content {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo del Footer */
.footer-logo img {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

/* Títulos de Sección */
.footer-title {
  color: var(--color-primary-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
  display: inline-block;
}

/* Descripción del Footer */
.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Badges Informativos */
.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.badge-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.badge-item i {
  color: var(--color-primary-light);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.badge-item span {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/* Enlaces del Footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  font-size: 0.95rem;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--color-primary-light);
  transition: transform var(--transition-normal);
}

.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateX(5px);
}

.footer-links a:hover i {
  transform: translateX(3px);
}

/* Información de Contacto */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.contact-item i {
  color: var(--color-primary-light);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.contact-item a:hover {
  color: var(--color-primary-light);
}

/* Redes Sociales */
.footer-social h6 {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.social-icons a:hover {
  background: var(--color-primary-light);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 8px 20px rgba(81, 191, 255, 0.4);
  border-color: var(--color-primary-light);
}

/* Barra de Copyright */
.footer-bottom {
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-badges-inline {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-badges-inline .badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Botón Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary-light);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(0.95);
}

/* ===== RESPONSIVE FOOTER ===== */

@media (max-width: 991px) {
  .footer-content {
    padding: 2rem 0 1.5rem;
  }

  .footer-section {
    margin-bottom: 2rem;
  }

  .footer-logo img {
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    text-align: center;
  }

  .footer-title {
    display: block;
    width: 100%;
  }

  .footer-links a {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom .row > div {
    margin-bottom: 1rem;
  }

  .footer-badges-inline {
    justify-content: center;
    margin-top: 1rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .badge-item {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .footer-logo img {
    max-width: 150px;
  }

  .footer-title {
    font-size: 1rem;
  }

  .badge-item {
    font-size: 0.85rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== ACCESIBILIDAD ===== */

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top,
  .footer-links a,
  .social-icons a,
  .badge-item {
    transition: none;
  }
}