/* ========================
   GLOBAL FIX - OVERFLOW & POSITION
   ======================== */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

.text__coorporativo-xs {
  color: var(--texto-coorporativo01) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.text__coorporativo-sm {
  color: var(--texto-coorporativo03) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.text__coorporativo {
  font-weight: 700 !important;
  color: var(--texto-coorporativo02) !important;
}

.text__success {
  color: #28a745 !important;
}

/* FIX CRÍTICO: Prevenir que AOS añada position:relative al body */
body {
  position: static !important;
  /* El body debe mantener position:static para que 
     fixed elements (navbar, topbar) funcionen correctamente */
}

.text__gris {
  color: var(--texto-coorporativo01) !important;
}

.js-gt-lang {
  border: none; /* quita el borde */
  box-shadow: none; /* quita cualquier sombra que parezca borde */
}

.layout_padding {
  padding: 8rem 0;
}

.layout_padding-top {
  padding-top: 4rem;
}

.text_padding-top {
  margin-top: 2rem !important;
}

.color__gradiente {
  background: linear-gradient(
    135deg,
    rgba(30, 18, 13, 0.95) 0%,
    rgba(0, 157, 214, 0.95) 100%
  ) !important;
}

/* ========================
   TOPBAR STYLES
   ======================== */
.topbar__bg-color {
  background-color: #222 !important;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  transition: transform 0.3s ease-in-out;
  z-index: 1070; /* Mayor que navbar para estar encima */
  overflow: visible; /* Permite que elementos internos se extiendan si es necesario */
}

.topbar .container {
  max-width: 100%;
}

.topbar-hidden {
  transform: translateY(-100%) !important;
}

/* ========================
   HEADER / NAVBAR STYLES
   ======================== */
.navbar {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-height, 0);
  transition: top 0.3s ease-in-out;
  width: 100%;
  max-width: 100vw;
  z-index: 1060;
}

.navbar .container {
  max-width: 100%;
}

.navbar-pinned {
  top: 0 !important;
}

.header_section {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.header_section .navbar-logo {
  margin-left: 1.5rem;
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.header_section .navbar-logo:hover {
  transform: scale(1.05);
}

.header_contacto-info {
  background-image: url("../img/hero/barco-header.webp");
  background-size: cover;
  background-position: center;
  padding: 0;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
}

@media (max-width: 991.98px) {
  .header_contacto-info {
    max-height: 250px !important;
    align-items: center;
    justify-content: center;
  }
  
  .header__title {
    text-align: center !important;
    margin-top: 9rem !important;
  }

  .header__breadcrumbs {
    margin-top: 0 !important;
  }
}

.header__title {
  color: var(--bs-body-bg) !important;
  font-size: 3.5rem;
  font-weight: 700;
}

.header__subtitle {
  color: var(--bs-body-bg) !important;
  font-size: 2.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.header__breadcrumbs {
  position: relative;
  margin-top: 10rem;
}

.header_contacto-info .breadcrumb {
  background-color: #fff;
  padding: 0.5rem 1rem;
}

.header_contacto-info .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--texto-coorporativo01);
  font-size: 1.3rem;
}

.header_contacto-info .breadcrumb-item a {
  color: var(--texto-coorporativo02);
  font-size: 1.3rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.header_contacto-info .breadcrumb-item a:hover {
  color: var(--fondo-coorporativo02);
  opacity: 0.8;
}

.header_contacto-info .breadcrumb-item.active {
  font-size: 1.3rem;
  font-weight: 600;
}

/* ========================
   NAVIGATION LINKS
   ======================== */
#siteNavbar .navbar-nav .nav-link {
  padding: 0.1rem 0.75rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 3;
  color: #222 !important;
}

/* Subrayado simple y elegante */
#siteNavbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--fondo-coorporativo02);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Hover: mostrar subrayado */
#siteNavbar .navbar-nav .nav-link:hover::after,
#siteNavbar .navbar-nav .nav-link.active::after {
  transform: scaleX(0);
}

/* Cambio de color al hover y activo */
#siteNavbar .navbar-nav .nav-link:hover,
#siteNavbar .navbar-nav .nav-link.active {
  color: var(--fondo-coorporativo02) !important;
}

/* ========================
   NAVIGATION LINKS - Subrayado
   ======================== */
#siteNavbar .navbar-nav .nav-link {
  position: relative;
  padding: 0.1rem 0.8rem;
  transition: color 0.3s ease;
  z-index: 3;
  color: #222 !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

#siteNavbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 0.5px;
  background: var(--fondo-coorporativo02);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

/* Mostrar subrayado en hover/active */
#siteNavbar .navbar-nav .nav-link:hover::after,
#siteNavbar .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Cambio de color al hover y activo */
#siteNavbar .navbar-nav .nav-link:hover,
#siteNavbar .navbar-nav .nav-link.active {
  color: var(--fondo-coorporativo02) !important;
}

.navbar-user-actions {
  margin-right: 1rem;
}

/* ========================
   DROPDOWN LINKS (Productos, Servicios)
   ======================== */
/* Flecha indicadora a la derecha usando ::before para no interferir con subrayado */
.navbar-nav .dropdown-toggle::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  position: absolute;
  top: 50%;
  right: 0.15rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

/* Rotar flecha cuando el dropdown está abierto */
.navbar-nav .dropdown.show .dropdown-toggle::before,
.navbar-nav .dropdown .dropdown-toggle[aria-expanded="true"]::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Asegurar padding y alineamiento */
.navbar-nav .dropdown-toggle {
  padding: 1rem 1.75rem 1rem 0.75rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* ========================
   DROPDOWN MENUS
   ======================== */
#siteNavbar .navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  z-index: 1065;
  width: max-content;
}

#siteNavbar .navbar-nav .dropdown-menu.dropdown-menu-end {
  right: 0;
  left: auto;
}

#siteNavbar .navbar-nav .dropdown-menu[data-bs-popper] {
  margin-top: 0.5rem;
}

.dropdown-menu {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  min-width: 280px;
  margin-top: 0.5rem;
  z-index: 1065; /* mayor que navbar */
}

.dropdown-item.text__navbar-links {
  padding: 0.65rem 1.5rem;
  color: #222 !important;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-item.text__navbar-links:hover,
.dropdown-item.text__navbar-links:focus {
  background-color: rgba(0, 212, 255, 0.15);
  color: var(--fondo-coorporativo01) !important;
  padding-left: 1.75rem;
  outline: none;
  box-shadow: none;
}

.dropdown-header {
  color: var(--fondo-coorporativo01);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem 0.5rem;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* ========================
   USER ACTIONS (Search, User, Cart)
   ======================== */
.navbar-user-actions {
  gap: 0.75rem !important;
}

.navbar-user-actions .btn-link {
  color: #222;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-user-actions .btn-link:hover {
  background-color: rgba(50, 156, 211, 0.5);
  color: var(--fondo-coorporativo01) !important;
  transform: scale(1.1);
}

/* ========================
   SEARCH BUTTON
   ======================== */
.search-box .btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* ========================
   USER DROPDOWN
   ======================== */
#userDropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* ========================
   CART STYLES
   ======================== */
.cart-dropdown-container .btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.cart-count-badge {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.cart-dropdown-menu {
  min-width: 320px;
  max-width: 380px;
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cart-dropdown-menu .dropdown-header {
  color: #ffffff;
  font-size: 1rem;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-items {
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  transition: background-color 0.2s ease;
}

.cart-item:hover {
  background-color: rgba(0, 212, 255, 0.05);
  border-radius: 4px;
}

.cart-item-img {
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item .btn-link {
  transition: transform 0.2s ease;
}

.cart-item .btn-link:hover {
  transform: scale(1.2);
}

/* ========================
   MOBILE CTA BUTTON
   ======================== */
.btn-feane-primary {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-feane-primary:hover {
  background: linear-gradient(135deg, #0099cc, #00d4ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
  color: #ffffff;
}

/* === CARDS / HOVERS (SITE CUSTOM) === */
.card--hover {
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.card--hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 157, 214, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}
.card--hover:hover::before {
  left: 100%;
}
.card--hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand) !important;
}
.card--luxury {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}
.card--luxury:hover {
  background: linear-gradient(145deg, #ffffff 0%, #eef7fc 100%);
  border-color: var(--brand);
}
.servicio__icon {
  font-size: 2rem;
  transition: var(--transition-bounce);
}
.card--hover:hover .servicio__icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--brand);
}

/* ========================
   NAVBAR TOGGLER (Mobile)
   ======================== */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.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' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================
   MODAL SEARCH
   ======================== */
#searchModal .modal-content {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

#searchModal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#searchModal .modal-title {
  color: #ffffff;
}

#searchModal .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

#searchModal .btn-close:hover {
  opacity: 1;
}

#searchModal .form-control {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px 0 0 8px;
}

#searchModal .form-control:focus {
  background-color: #1a1a1a;
  border-color: #00d4ff;
  color: #ffffff;
  outline: none;
  box-shadow: none;
}

#searchModal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#searchModal .btn-primary {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#searchModal .btn-primary:hover {
  background: linear-gradient(135deg, #0099cc, #00d4ff);
  transform: translateX(2px);
}

#searchModal .badge {
  padding: 0.5rem 0.75rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#searchModal .badge:hover {
  background-color: #00d4ff !important;
  color: #1a1a1a !important;
  transform: translateY(-2px);
}

/* ========================
   RESPONSIVE ADJUSTMENTS
   ======================== */

/* Escritorio: Asegurar que los dropdowns se rendericen correctamente */
@media (min-width: 992px) {
  #siteNavbar .navbar-nav .dropdown-menu {
    position: absolute !important;
    z-index: 1065 !important; /* Por encima del navbar */
  }

  /* Asegurar que el navbar no recorte los dropdowns */
  #siteNavbar .navbar-collapse {
    overflow: visible !important;
  }
}

@media (max-width: 991.98px) {
  .header_section {
    padding: 0.5rem 0;
  }

  .navbar-collapse {
    background-color: var(--bs-body-bg);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible; /* Permite que dropdowns se extiendan */
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  /* En móvil: borde izquierdo sutil */
  #siteNavbar .navbar-nav .nav-link::after {
    height: 1px;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    border-radius: 0;
  }

  /* Flecha del dropdown en móvil - posición a la derecha */
  .navbar-nav .dropdown-toggle::before {
    position: absolute;
    right: 0.2rem;
    margin-left: 0;
  }

  .navbar-nav .dropdown-toggle {
    position: relative;
  }

  #siteNavbar .navbar-nav .dropdown-menu {
    position: static;
    width: 100%;
    margin: 0;
    background-color: var(--bs-body-bg);
    border: none;
    box-shadow: none;
    border-radius: 6px;
    z-index: auto; /* En móvil no necesita z-index alto */
  }

  #siteNavbar .navbar-nav .dropdown-menu[data-bs-popper] {
    margin-top: 0;
  }

  .navbar-user-actions {
    flex-direction: row;
    justify-content: center;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .header_section .navbar-logo {
    height: 35px;
  }

  .text__navbar-links {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }

  .cart-dropdown-menu {
    min-width: 280px;
  }
}

/* ========================
   SCROLLBAR CUSTOMIZATION
   ======================== */
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

/* ========================
   UTILITIES
   ======================== */
.text-danger {
  color: #ff4757 !important;
}

.text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ========================
   ANIMATIONS & TRANSITIONS
   ======================== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu.show {
  animation: slideIn 0.3s ease-out;
}

/* hero */

.hero__bg-img {
  background-image: url("../img/hero/hero-lancha.webp") !important;
}

/* === Wave SVG === */
.custom-shape-divider-bottom-hero {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;

  line-height: 0;
  pointer-events: none; /* no bloquea clicks */
  z-index: 12 !important; /* por encima del fondo (.hero__bg) */
}

/* El SVG controla la altura de la ola */
.custom-shape-divider-bottom-hero .svg-wave {
  display: block;
  width: 100%;
  height: 120px; /* altura por defecto; ajustar si quieres ola más grande/pequeña */
}

@media (max-width: 767.98px) {
  .custom-shape-divider-bottom-hero .svg-wave {
    height: 60px; /* Ola más pequeña en móvil */
  }
}

/* Color de la ola: debe coincidir con el color de la sección siguiente */
.custom-shape-divider-bottom-hero .shape-fill {
  fill: var(--bs-body-bg, #ffffff); /* usa la variable de tu tema o blanco */
  opacity: 1;
}

/* Diferenciar capas para animación/parallax */
.custom-shape-divider-bottom-hero .wave-back {
  opacity: 0.45;
  transform-origin: center;
}
.custom-shape-divider-bottom-hero .wave-front {
  opacity: 1;
}

/* ABOUT SECTION */

.about__icon {
  font-size: 2rem;
  color: var(--primary-color) !important;
}

.about__icon-border {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px auto;
  background: #fff;
  border-radius: 50%;
  transition: 0.5s;
  color: var(--main-background);
  overflow: hidden;
  box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);
}

.about__icon-color {
  color: var(--fondo-coorporativo01) !important;
}

.detail-box {
  padding-left: 3.5rem;
}

@media (max-width: 768px) {
  .detail-box {
    padding-top: 3.5rem !important;
  }
}

.brand__color {
  color: var(--texto-coorporativo02) !important;
}

/* MARCAS SECTION */

/* ========================
   GALERÍA DE MARCAS - galeriaCarousel
   ======================== */

/* Contenedor principal del carousel */
#galeriaCarousel {
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
}

#galeriaCarousel .carousel-inner {
  padding: 2rem 0;
}

/* Contenedor de cada logo con aire y efecto hover */
.marca-logo-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Efecto hover en el contenedor
.marca-logo-container:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 157, 214, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
} */

/* Brillo sutil al hacer hover 
.marca-logo-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 157, 214, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.marca-logo-container:hover::before {
  left: 100%;
} */

/* Logos con tamaño uniforme y aire */
.marca-logo {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(20%);
  transition: all 0.3s ease;
  padding: 0.5rem;
}

/*
.marca-logo-container:hover .marca-logo {
  filter: grayscale(0%);
  transform: scale(1.05);
} */

/* Controles del carousel - visibles y estilizados */
#galeriaCarousel .carousel-control-prev,
#galeriaCarousel .carousel-control-next {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#galeriaCarousel .carousel-control-prev {
  left: -20px;
}

#galeriaCarousel .carousel-control-next {
  right: -20px;
}

#galeriaCarousel .carousel-control-prev:hover,
#galeriaCarousel .carousel-control-next:hover {
  opacity: 1;
  background: rgba(0, 157, 214, 0.95);
  transform: translateY(-50%) scale(1.1);
}

#galeriaCarousel .carousel-control-prev-icon,
#galeriaCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

#galeriaCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galeriaCarousel .carousel-control-next:hover .carousel-control-next-icon {
  filter: invert(0);
}

/* ========================
   RESPONSIVE - Tablets y Móviles
   ======================== */

/* Tablets grandes (iPad Pro) */
@media (max-width: 1199.98px) {
  .marca-logo-container {
    padding: 1.25rem;
    min-height: 120px;
  }

  .marca-logo {
    max-height: 85px;
  }
}

/* Tablets (iPad) */
@media (max-width: 991.98px) {
  #galeriaCarousel {
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
  }

  .marca-logo-container {
    padding: 1rem;
    min-height: 110px;
  }

  .marca-logo {
    max-height: 75px;
  }

  #galeriaCarousel .carousel-control-prev,
  #galeriaCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 767.98px) {
  #galeriaCarousel {
    padding: 2rem 0 1rem;
  }

  #galeriaCarousel .carousel-inner {
    padding: 1.5rem 0;
  }

  .marca-logo-container {
    padding: 1rem;
    min-height: 100px;
    border-radius: 8px;
  }

  .marca-logo {
    max-height: 65px;
  }

  /* En móvil: 2 columnas por fila */
  #galeriaCarousel .row {
    row-gap: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 575.98px) {
  #galeriaCarousel {
    padding: 1.5rem 0 1rem;
  }

  .marca-logo-container {
    padding: 0.75rem;
    min-height: 85px;
    border-radius: 6px;
  }

  .marca-logo {
    max-height: 55px;
    padding: 0.25rem;
  }

  #galeriaCarousel .carousel-control-prev,
  #galeriaCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
    opacity: 0.5;
  }

  #galeriaCarousel .carousel-control-prev {
    left: -10px;
  }

  #galeriaCarousel .carousel-control-next {
    right: -10px;
  }
}

/* Móviles muy pequeños */
@media (max-width: 374.98px) {
  .marca-logo-container {
    padding: 0.5rem;
    min-height: 75px;
  }

  .marca-logo {
    max-height: 50px;
  }
}

.badge__brand {
  padding: 2px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.icon__color-brand {
  color: var(--fondo-coorporativo02) !important;
}

.icon__check-white {
  color: #ffffff !important;
}

/* ========================
   IMAGE HOVER EFFECT - About Section
   ======================== */
.img-box-hover {
  position: relative;
  overflow: hidden;
  border-radius: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-box-hover:hover {
  box-shadow: 0 8px 30px rgba(0, 157, 214, 0.3);
  transform: translateY(-5px);
}

.img-box-hover:focus-within {
  box-shadow: 0 8px 30px rgba(0, 157, 214, 0.3);
  outline: none;
}

.img-hover-effect {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.img-box-hover:hover .img-hover-effect {
  transform: scale(1.1);
}

/* Overlay con efecto de fade */
.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 157, 214, 0.85) 0%,
    rgba(30, 18, 13, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.img-box-hover:hover .img-overlay {
  opacity: 1;
}

.img-overlay i {
  color: #ffffff;
  font-size: 3rem;
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.img-box-hover:hover .img-overlay i {
  transform: scale(1);
}

/* Animación de pulso en el icono */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.img-box-hover:hover .img-overlay i {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Accesibilidad - para cuando se navega con teclado */
.img-box-hover:focus-within .img-overlay {
  opacity: 1;
}

.img-box-hover:focus-within .img-overlay i {
  transform: scale(1);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive: reducir efecto en móviles */
@media (max-width: 768px) {
  .img-box-hover:hover {
    transform: translateY(-2px);
  }

  .img-box-hover:hover .img-hover-effect {
    transform: scale(1.05);
  }

  .img-overlay i {
    font-size: 2rem;
  }
}

/* Smooth scroll behavior para toda la página */
html {
  scroll-behavior: smooth;
}

/* ========================
   AOS ANIMATIONS FIX FOR CAROUSEL
   ======================== */

/* Asegurar que los elementos con AOS dentro del carousel tengan overflow visible */
#heroCarousel .carousel-item {
  overflow: visible !important;
}

#heroCarousel .carousel-inner {
  overflow: visible !important;
}

/* Estado inicial de elementos AOS en carousel - Ocultos y con transform */
#heroCarousel [data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
  pointer-events: none;
}

/* Estado activo/animado */
#heroCarousel [data-aos].aos-animate {
  opacity: 1;
  pointer-events: auto;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
}

/* Animaciones específicas para fade-right */
#heroCarousel [data-aos="fade-right"] {
  transform: translateX(-50px);
  opacity: 0;
}

#heroCarousel [data-aos="fade-right"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

/* Animaciones específicas para fade-left */
#heroCarousel [data-aos="fade-left"] {
  transform: translateX(50px);
  opacity: 0;
}

#heroCarousel [data-aos="fade-left"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

/* Animaciones específicas para zoom-in */
#heroCarousel [data-aos="zoom-in"] {
  transform: scale(0.6);
  opacity: 0;
}

#heroCarousel [data-aos="zoom-in"].aos-animate {
  transform: scale(1);
  opacity: 1;
}

/* Asegurar que los elementos dentro del carousel-item no hereden opacity 0 */
#heroCarousel .carousel-item .container,
#heroCarousel .carousel-item .row,
#heroCarousel .carousel-item [class*="col-"] {
  opacity: 1 !important;
}

/* Asegurar duración de transición consistente para todos los elementos AOS */
#heroCarousel .carousel-item.active [data-aos] {
  transition-duration: 1s !important;
  transition-timing-function: ease-in-out !important;
}

/* Override para elementos que ya están animados */
#heroCarousel .carousel-item.active [data-aos].aos-animate {
  transition-duration: 1s !important;
  transition-timing-function: ease-in-out !important;
}

/* Asegurar z-index correcto para elementos animados */
#heroCarousel [data-aos] {
  position: relative;
  z-index: 1;
}

/* Optimización: Will-change para mejor rendimiento en animaciones */
#heroCarousel [data-aos]:not(.aos-animate) {
  will-change: opacity, transform;
}

#heroCarousel [data-aos].aos-animate {
  will-change: auto;
}

/* Fix para que las animaciones sean visibles en todos los navegadores */
#heroCarousel .hero__caption,
#heroCarousel .hero__caption02,
#heroCarousel .hero__caption03,
#heroCarousel .hero__imagen01,
#heroCarousel .hero__imagen02,
#heroCarousel .hero__imagen03 {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

/* Asegurar que los contenedores de los elementos animados permitan transformaciones */
#heroCarousel .hero__caption,
#heroCarousel .hero__caption02,
#heroCarousel .hero__caption03 {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

#heroCarousel .hero__imagen01,
#heroCarousel .hero__imagen02,
#heroCarousel .hero__imagen03 {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* Asegurar que los slides no activos no interfieran con las animaciones */
#heroCarousel .carousel-item:not(.active) [data-aos] {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Durante la transición del carousel, mantener visibilidad */
#heroCarousel .carousel-item.carousel-item-next,
#heroCarousel .carousel-item.carousel-item-prev {
  display: block;
}

/* ========================
   RESPONSIVE AOS ADJUSTMENTS
   ======================== */
@media (max-width: 768px) {
  /* Reducir la distancia de desplazamiento en móviles */
  #heroCarousel [data-aos="fade-right"] {
    transform: translateX(-30px);
  }

  #heroCarousel [data-aos="fade-left"] {
    transform: translateX(30px);
  }

  #heroCarousel [data-aos="zoom-in"] {
    transform: scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Respetar preferencias de accesibilidad */
  #heroCarousel [data-aos] {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ========================
   CATALOGO
  ======================== */
/* Estilos adicionales para catálogo de productos */
.product-card {
  transition: all 0.3s ease;
  height: 100%;
  border: none;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.product-badge-new {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-badge-sale {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.product-price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
}

.product-quick-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-quick-actions {
  opacity: 1;
}

.filter-sidebar {
  position: sticky;
  top: 100px;
}

.stock-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.stock-low {
  background-color: #ffc107;
  color: #000;
}

.stock-out {
  background-color: #dc3545;
  color: #fff;
}

.stock-available {
  background-color: #28a745;
  color: #fff;
}

/* ========================
       CARRITO 
    ======================== */

.cart-item-card {
  transition: all 0.3s ease;
}

.cart-item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-summary {
  position: sticky;
  top: 100px;
}

.quantity-input {
  width: 70px;
  text-align: center;
}

.remove-item-btn {
  transition: all 0.2s;
}

.remove-item-btn:hover {
  transform: scale(1.1);
  color: #dc3545 !important;
}

.empty-cart-icon {
  font-size: 5rem;
  color: #dee2e6;
}

/* ========================
   CHECKOUT
   ======================== */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.checkout-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  z-index: 0;
}

.checkout-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.checkout-step.active .step-circle {
  background: var(--bs-primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.checkout-step.completed .step-circle {
  background: #28a745;
  color: white;
}

.checkout-step.completed .step-circle::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.checkout-section {
  display: none;
}

.checkout-section.active {
  display: block;
}

.payment-method {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover {
  border-color: var(--bs-primary);
  background: #f8f9fa;
}

.payment-method.selected {
  border-color: var(--bs-primary);
  background: #e7f3ff;
}

.payment-method input[type="radio"] {
  margin-right: 1rem;
}

.shipping-method {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shipping-method:hover {
  border-color: var(--bs-primary);
}

.shipping-method.selected {
  border-color: var(--bs-primary);
  background: #e7f3ff;
}

.order-summary-sticky {
  position: sticky;
  top: 100px;
}

.order-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  align-items: center;
  position: relative;
  transition: background-color 0.2s ease;
}

.order-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}

.order-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.order-item .btn-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.order-item .btn-link:hover {
  transform: scale(1.15);
  color: #dc3545 !important;
}

.order-item .btn-link:focus {
  outline: none;
  box-shadow: none;
}

/* ========================
   RESPONSIVE CHECKOUT
   ======================== */

/* Ajustes generales para pantallas pequeñas */
@media (max-width: 767.98px) {
  .checkout-steps {
    flex-direction: column;
  }

  .checkout-step {
    margin-bottom: 1.5rem;
  }

  .order-summary-sticky {
    top: 80px;
  }
}

/* ========================
   IMPROVED STYLES FOR CHECKOUT
   ======================== */

/* Mejorar la legibilidad y el diseño en el checkout */
.checkout-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.checkout-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.checkout-section h2::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.7) 0%,
    rgba(0, 157, 214, 0.7) 100%
  );
}

.payment-method,
.shipping-method {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.payment-method:hover,
.shipping-method:hover {
  border-color: var(--bs-primary);
  background: #f8f9fa;
}

.payment-method.selected,
.shipping-method.selected {
  border-color: var(--bs-primary);
  background: #e7f3ff;
}

.payment-method input[type="radio"],
.shipping-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.payment-method .checkmark,
.shipping-method .checkmark {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.payment-method:hover .checkmark,
.shipping-method:hover .checkmark {
  border-color: var(--bs-primary);
}

.payment-method.selected .checkmark,
.shipping-method.selected .checkmark {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.checkmark::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: #ffffff;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.payment-method.selected .checkmark::after,
.shipping-method.selected .checkmark::after {
  transform: scale(1);
}

.order-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  align-items: center;
  position: relative;
  transition: background-color 0.2s ease;
}

.order-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}

.order-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.order-item .btn-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.order-item .btn-link:hover {
  transform: scale(1.15);
  color: #dc3545 !important;
}

.order-item .btn-link:focus {
  outline: none;
  box-shadow: none;
}

/* ========================
   FINALIZAR COMPRA - Estilos adicionales
   ======================== */

/* Botón de finalizar compra */
.btn-finalizar-compra {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-finalizar-compra:hover {
  background: linear-gradient(135deg, #0099cc, #00d4ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

/* Icono de check en el botón de finalizar compra */
.btn-finalizar-compra .icon-check {
  font-size: 1.25rem;
  color: #28a745;
  transition: transform 0.3s ease;
}

.btn-finalizar-compra:hover .icon-check {
  transform: scale(1.1);
}

/* Mensaje de éxito después de finalizar compra */
.mensaje-exito {
  background: #28a745;
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.mensaje-exito.hide {
  opacity: 0;
  pointer-events: none;
}

.mensaje-exito .icon {
  font-size: 2rem;
  flex-shrink: 0;
}

/* ========================
   ANIMACIONES EN SECCIONES
   ======================== */

/* Animación de entrada para secciones */
.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-animate.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   BOTONES ESTILIZADOS
   ======================== */

/* Botones principales */
.btn-estilizado {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-estilizado:hover {
  background: linear-gradient(135deg, #0099cc, #00d4ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

/* Iconos en los botones */
.btn-estilizado .icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-estilizado:hover .icon {
  transform: scale(1.1);
}

/* ========================
   ESTILOS PARA TABLAS
   ======================== */

/* Tablas básicas */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table th {
  background: #f8f9fa;
  font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(0, 0, 0, 0.02);
}

/* ========================
   ESTILOS PARA LISTAS
   ======================== */

/* Listas de elementos */
.lista-elementos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-elementos li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lista-elementos li:last-child {
  border-bottom: none;
}

/* ========================
   ESTILOS PARA AVATARES
   ======================== */

/* Avatares circulares */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.avatar img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================
   ESTILOS PARA PÁGINAS
   ======================== */

/* Página completa */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Contenido principal */
.page-content {
  flex: 1;
  padding: 2rem;
  background: #f8f9fa;
}

/* ========================
   ESTILOS PARA MODALES
   ======================== */

/* Modales básicos */
.modal-content {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background: #007bff;
  color: #ffffff;
  padding: 1rem;
  border-bottom: none;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  border-top: none;
}

/* Botones en modales */
.modal-footer .btn {
  margin-left: 0.5rem;
}

/* ========================
   ESTILOS PARA NOTIFICACIONES
   ======================== */

/* Notificaciones básicas */
.alert {
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.alert-info {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

/* ========================
   ESTILOS PARA TÍTULOS
   ======================== */

/* Títulos principales */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

/* ========================
   ESTILOS PARA CITAS
   ======================== */

/* Citas destacadas */
blockquote {
  border-left: 4px solid var(--bs-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #333;
  font-style: italic;
}

/* ========================
   ESTILOS PARA CÓDIGOS
   ======================== */

/* Bloques de código */
pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

code {
  background: rgba(0, 123, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* ========================
   ESTILOS PARA ENLACES
   ======================== */

/* Enlaces destacados */
a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--bs-primary-dark);
}

/* ========================
   ESTILOS PARA IMÁGENES
   ======================== */

/* Imágenes responsivas */
img {
  max-width: 100%;
  display: block;
}

/* ========================
   ESTILOS PARA ÍCONOS
   ======================== */

/* Íconos de Font Awesome */
.fa {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 0.5rem;
}

/* ========================
   ESTILOS PARA CARGANDO
   ======================== */

/* Pantalla de carga */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-screen .spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid rgba(0, 123, 255, 0.3);
  border-top: 4px solid rgba(0, 123, 255, 1);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Animación de giro */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================
   ESTILOS PARA OCULTAR ELEMENTOS
   ======================== */

/* Ocultar elementos con clase .d-none */
.d-none {
  display: none !important;
}

/* ========================
   ESTILOS PARA MOSTRAR ELEMENTOS
   ======================== */

/* Mostrar elementos ocultos por defecto */
.show {
  display: block !important;
}

/* ========================
   ESTILOS PARA TRANSICIONES
   ======================== */

/* Transiciones suaves para todos los elementos */
* {
  transition: all 0.3s ease;
}

/* ========================
   ESTILOS PARA SOMBRAS
   ======================== */

/* Sombras personalizadas */
.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow-md {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.shadow-xl {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25) !important;
}

/* ========================
   ESTILOS PARA FILTROS
   ======================== */

/* Filtros de desenfoque */
.blur-sm {
  filter: blur(2px) !important;
}

.blur-md {
  filter: blur(4px) !important;
}

.blur-lg {
  filter: blur(8px) !important;
}

/* ========================
   ESTILOS PARA GRADIENTES
   ======================== */

/* Gradientes de fondo */
.bg-gradient {
  background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
}

/* ========================
   ESTILOS PARA ANIMACIONES
   ======================== */

/* Animaciones de entrada */
.fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

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

/* Animaciones de salida */
.fadeOut {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ========================
   ESTILOS PARA PANTALLAS TÁCTILES
   ======================== */

/* Pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }

  .card {
    padding: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .dropdown-menu {
    padding: 0.5rem 0;
  }

  .table {
    font-size: 0.9rem;
  }

  .alert {
    padding: 0.75rem;
  }

  .badge {
    padding: 0.4rem 0.6rem;
  }
}

/* ========================
   ESTILOS PARA ACCESIBILIDAD
   ======================== */

/* Mejora de la accesibilidad en enlaces y botones - Sin bordes al hacer clic */
a,
button {
  outline: none;
  transition: color 0.3s ease;
}

a:focus,
button:focus {
  outline: none;
  box-shadow: none;
}

/* Eliminar todos los bordes de focus en elementos interactivos */
*:focus,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ========================
   ESTILOS PARA IMPRESIÓN
   ======================== */

/* Ocultar elementos no deseados en impresión */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ========================
   ESTILOS PARA ANIMACIONES DE CARGA
   ======================== */

/* Pantalla de carga */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-screen .spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid rgba(0, 123, 255, 0.3);
  border-top: 4px solid rgba(0, 123, 255, 1);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Animación de giro */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================
   FIN DE LOS ESTILOS
   ======================== */
