/* ============================================
   XTREME PERFORMANCE - HOMEPAGE STYLES MODERNOS
   Diseño profesional y moderno para taller automotriz
   ============================================ */

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* === VARIABLES CSS MODERNAS === */
:root {
    --primary-color: #c62828;
    --primary-dark: #8e0000;
    --secondary-color: #ff5722;
    --accent-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
  --oxford-blue-3: hsl(222, 50%, 11%);
  --sonic-silver: hsl(0, 0%, 44%);
  --space-cadet: hsl(222, 44%, 18%);
  --pastel-pink: hsl(1, 53%, 75%);
  --eerie-black: hsl(0, 0%, 15%);
  --light-gray: hsl(0, 0%, 80%);
  --white: hsl(0, 0%, 100%);

  /* Dashboard colors */
  --xp-red: #c62828;
  
  /* Variables para modo claro/oscuro */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);
  
  /* Colores de acento (no cambian) */
  --primary: #0d6efd;
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #0dcaf0;
  
  --transition: all 0.3s ease;
  --xp-red-light: rgba(198, 40, 40, 0.1);
  --xp-red-hover: #b71c1c;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.2);

  /**
   * typography
   */

  --ff-chakra-petch: "Chakra Petch", sans-serif;
  --ff-mulish: "Mulish", sans-serif;

  --fs-1: 3.5rem;
  --fs-2: 3rem;
  --fs-3: 2.4rem;
  --fs-4: 1.8rem;
  --fs-5: 1.4rem;
  --fs-6: 1.2rem;

  --fw-400: 400;
  --fw-600: 600;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 60px;

  /**
   * box shadow
   */

  --shadow: 0px 0px 100px 0px hsl(216, 9%, 90%);

  /**
   * border radius
   */

  --radius-pill: 100px;
  --radius-circle: 50%;

  /**
   * transition
   */

  --transition: 0.25s ease;
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
}

/* Modo oscuro */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-card: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #6c6c6c;
  --border-color: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
}

/* Aplicar variables a elementos globales */
body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
}

.container-fluid {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.card {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 4px var(--shadow) !important;
  transition: all 0.3s ease;
}

/* Aplicar a contenedores específicos del sistema */
.content {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* Headers y títulos */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
}

/* Párrafos y texto */
p, span, div {
  color: var(--text-primary);
}

/* Elementos con clases específicas del sistema */
.admin-navbar {
  background-color: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.card:hover {
  box-shadow: 0 4px 8px var(--shadow-hover);
}

.navbar {
  background-color: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-color);
}

.table {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.table th {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.table td {
  border-color: var(--border-color);
}

.form-control {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.form-control:focus {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Toggle de tema - Mejorado */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  min-width: 100px;
  padding: 5px;
}

.theme-toggle-checkbox {
  display: none !important;
}

.theme-toggle-label {
  cursor: pointer;
  width: 90px;
  height: 35px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  display: block;
  border-radius: 50px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  user-select: none;
  -webkit-user-select: none;
}

.theme-toggle-label:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.theme-icon-sun,
.theme-icon-moon {
  font-size: 16px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  transition: all 0.3s ease;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.theme-icon-sun {
  left: 12px;
  opacity: 1;
  color: #ffff00;
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.theme-icon-moon {
  right: 12px;
  opacity: 0.8;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.theme-toggle-button {
  content: '';
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  z-index: 5;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.theme-toggle-checkbox:checked + .theme-toggle-label {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-icon-sun {
  opacity: 0.4 !important;
  color: #ffeb3b !important;
  transform: translateY(-50%) scale(0.85);
  text-shadow: 0 0 4px rgba(255, 235, 59, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-icon-moon {
  opacity: 1 !important;
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  transform: translateY(-50%) scale(1.15);
}

/* Animaciones para los iconos */
.theme-icon-sun,
.theme-icon-moon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-button {
  transform: translateX(54px);
  background: linear-gradient(135deg, #2c2c54 0%, #1a1a2e 100%);
}

/* Asegurar que el toggle funcione correctamente */
.navbar .theme-toggle {
  margin-top: 0 !important;
  z-index: 1000;
}

.nav-item .theme-toggle {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

/* Prevenir conflictos con Bootstrap */
.theme-toggle input[type="checkbox"] {
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Hacer el toggle más visible */
.theme-toggle-label {
  position: relative !important;
  z-index: 1001 !important;
  min-width: 60px !important;
  min-height: 28px !important;
}

/* Asegurar que el toggle sea completamente clickeable */
.theme-toggle {
  position: relative !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.theme-toggle-label {
  pointer-events: all !important;
}

.theme-toggle-checkbox {
  pointer-events: none !important;
}

/* Mejorar visibilidad en modo claro */
[data-theme="light"] .theme-icon-sun,
body:not([data-theme="dark"]) .theme-icon-sun {
  color: #ff6b00 !important;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .theme-icon-moon,
body:not([data-theme="dark"]) .theme-icon-moon {
  color: #e0e0e0 !important;
  text-shadow: 0 0 6px rgba(224, 224, 224, 0.6), 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Estilos específicos para modo oscuro activo */
[data-theme="dark"] body,
body[data-theme="dark"],
body.theme-dark {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

[data-theme="dark"] .container-fluid,
body[data-theme="dark"] .container-fluid,
body.theme-dark .container-fluid {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

[data-theme="dark"] .card,
body[data-theme="dark"] .card,
body.theme-dark .card {
  background-color: #252525 !important;
  color: #ffffff !important;
  border-color: #404040 !important;
}

[data-theme="dark"] .navbar,
body[data-theme="dark"] .navbar,
body.theme-dark .navbar {
  background-color: #252525 !important;
  border-bottom-color: #404040 !important;
}

[data-theme="dark"] .table,
body[data-theme="dark"] .table,
body.theme-dark .table {
  background-color: #252525 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .table th,
body[data-theme="dark"] .table th,
body.theme-dark .table th {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
  border-color: #404040 !important;
}

[data-theme="dark"] .table td,
body[data-theme="dark"] .table td,
body.theme-dark .table td {
  border-color: #404040 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-control,
body.theme-dark .form-control {
  background-color: #252525 !important;
  color: #ffffff !important;
  border-color: #404040 !important;
}

/* Elementos adicionales para modo oscuro */
.btn {
  transition: var(--transition);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.alert {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.modal-content {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.modal-header {
  border-bottom-color: var(--border-color);
}

.modal-footer {
  border-top-color: var(--border-color);
}

.dropdown-menu {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

.dropdown-item {
  color: var(--text-primary);
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.nav-link {
  color: var(--text-secondary) !important;
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.breadcrumb {
  background-color: var(--bg-secondary);
}

.breadcrumb-item a {
  color: var(--primary);
}

.pagination .page-link {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.pagination .page-link:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
button {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

html {
  font-family: var(--ff-mulish);
  font-size: 10px;
  scroll-behavior: smooth;
}

/* Asegurar que el modo oscuro funcione desde la carga */
html[data-theme="dark"] {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

body {
  background-color: var(--white);
  color: var(--sonic-silver);
  font-size: 1.6rem;
  line-height: 1.5;
}

:focus-visible {
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
  padding-inline: 16px;
}

.material-symbols-rounded {
  --fs: 1em;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 40;
  font-size: var(--fs);
  width: 1em;
  overflow: hidden;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left;
}

.section-subtitle {
  max-width: max-content;
  font-family: var(--ff-chakra-petch);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  text-transform: uppercase;
  margin-block-end: 12px;
  margin-inline: auto;
}

.section-subtitle::before {
  content: "";
  display: inline-block;
  height: 15px;
  width: 30px;
  margin-block-end: -2px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.section-subtitle.\:dark {
  color: var(--white);
}

.section-subtitle.\:dark::before {
  background-image: url("../images/text-bars-light.png");
}

.section-subtitle.\:light {
  color: var(--international-orange-engineering);
}

.section-subtitle.\:light::before {
  background-image: url("../images/text-bars-dark.png");
}

.section-title {
  text-align: center;
}

.h1,
.h2,
.h3,
.display-1 {
  font-family: var(--ff-chakra-petch);
  font-weight: var(--fw-700);
  text-transform: uppercase;
}

.display-1 {
  font-size: var(--fs-1);
}

.h1 {
  color: var(--white);
  font-size: var(--fs-2);
  line-height: 1.1;
  letter-spacing: 1px;
}

.h2,
.h3 {
  color: var(--eerie-black);
  font-weight: var(--fw-600);
  line-height: 1.2;
}

.h2 {
  font-size: var(--fs-3);
}

.h3 {
  font-size: var(--fs-4);
}

.btn {
  background-color: var(--international-orange-engineering);
  color: var(--white);
  max-width: max-content;
  font-family: var(--ff-chakra-petch);
  font-weight: var(--fw-600);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  will-change: transform;
}

.btn:is(:hover, :focus-visible) {
  transform: translateY(-5px);
  background-color: var(--oxford-blue-3);
  border-color: var(--white);
}

.move-anim {
  animation: moving 2s ease-in-out infinite alternate;
}

@keyframes moving {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

.section {
  padding-block: var(--section-padding);
}

.btn-link {
  font-family: var(--ff-chakra-petch);
  text-transform: uppercase;
  color: var(--international-orange-engineering);
  font-weight: var(--fw-700);
}

.w-100 {
  width: 100%;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-scrollbar {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
  padding-block-end: 20px;
}

.scrollbar-item {
  min-width: 100%;
  scroll-snap-align: start;
}

.has-scrollbar::-webkit-scrollbar {
  height: 16px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background-color: var(--pastel-pink);
  border-radius: 20px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--international-orange-engineering);
  border-radius: 20px;
  border: 3px solid var(--pastel-pink);
}

.has-scrollbar::-webkit-scrollbar-button {
  width: 15%;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 15px;
  z-index: 4;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  position: relative;
  padding: 0 15px;
  max-width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-toggle-btn {
  margin-left: auto;
}

/* Estilos específicos para el botón de login */
.header .btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: var(--fs-5);
  white-space: nowrap;
  min-width: max-content;
}
/* Botón flotante específico para móvil (oculto por defecto) */
.mobile-login-button {
  display: none;
}

/* Botón móvil dentro del navbar - oculto por defecto */
.mobile-login-item {
  display: none;
}

/* Botón flotante móvil - oculto por defecto */
.mobile-floating-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 50px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 0.3s ease;
}

.mobile-floating-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

/* Ajustes responsive para el botón */
@media (max-width: 991px) {
  .header {
    padding: 15px 0;
  }

  .header .container {
    padding: 0 10px;
    gap: 10px;
  }

  .nav-toggle-btn {
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 100;
  }

  .header .btn {
    display: none !important;
  }

  /* Ajustes para el logo y navegación en móvil */
  .header-left {
    width: 100%;
  }

  .navbar {
    top: 70px;
    right: 20px;
    width: calc(100% - 40px);
    margin-inline-start: auto;
    border-radius: 4px;
  }

  .logo {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
  }

  .logo img {
    max-height: 35px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  }

  /* Aseguramos que el contenedor no oculte elementos fijos */
  .header .container {
    position: relative;
    padding-top: 50px;
  }
  /* En móvil, ocultamos el botón de escritorio y mostramos el flotante */
  .login-button {
    display: none !important;
  }

  .mobile-login-button {
    display: flex !important;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 16px;
    right: 16px;
    padding: 10px 16px !important;
    background-color: var(--international-orange-engineering) !important;
    color: var(--white) !important;
    border-radius: var(--radius-pill);
    z-index: 9999 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }

  /* Botón móvil dentro del navbar */
  .mobile-login-item {
    display: block !important;
    padding: 15px 20px 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
  }

  .mobile-login-btn {
    display: flex !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: var(--fw-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
  }

  .mobile-login-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
  }

  /* Mostrar botón flotante en móvil */
  .mobile-floating-btn {
    display: flex !important;
  }
}

.nav-toggle-icon:not(:last-child) {
  margin-block-end: 7px;
}

.nav-toggle-btn.active .icon-2 {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle-btn.active .icon-1 {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle-btn.active .icon-3 {
  transform: rotate(-45deg) translate(4px, -4px);
}

.navbar {
  position: absolute;
  top: 100px;
  right: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  min-width: max-content;
  width: 30%;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s var(--cubic-out);
  z-index: 2;
}

.navbar.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-duration: 0.5s;
}

.navbar-link {
  font-family: var(--ff-chakra-petch);
  font-size: var(--fs-5);
  text-transform: uppercase;
  color: var(--dark-color);
  padding: 10px 20px;
  transition: var(--transition);
}

.navbar-link:is(:hover, :focus-visible) {
  background-color: var(--primary-color);
  color: var(--white);
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  position: relative;
  padding-block-start: calc(var(--section-padding) + 70px);
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 30px;
}

.hero .section-subtitle {
  text-transform: unset;
}

.hero .section-text {
  color: var(--white);
  margin-block: 14px 18px;
}

.hero .btn {
  margin-inline: auto;
}

.hero-banner {
  aspect-ratio: var(--width) / var(--height);
}

.hero-banner img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  z-index: -1;
}

/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service-banner {
  display: none;
}

.service {
  text-align: center;
  padding: 60px;
}

.service-list {
  gap: 0;
  margin-block-end: 40px;
}

.service-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
  margin-block-end: 24px;
}

.service-card .card-text {
  line-height: 1.2;
  margin-block: 8px;
}

.service .btn {
  margin-inline: auto;
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about {
  background-color: var(--space-cadet);
  color: var(--white);
  text-align: center;
}

.about .container {
  display: grid;
  gap: 50px;
}

.about .section-title {
  color: var(--white);
}

.about .section-text:nth-child(3) {
  margin-block: 12px 8px;
}

.about-list {
  display: grid;
  gap: 25px;
  margin-block-start: 25px;
}

.about-item {
  background-color: var(--oxford-blue-2);
  padding: 40px 20px;
  transition: var(--transition);
}

.about-item:hover {
  background-color: var(--international-orange-engineering);
  transform: translateY(-8px);
}

.about-item .strong {
  display: block;
  line-height: 1.1;
}

/*-----------------------------------*\
  #WORK
\*-----------------------------------*/

.work .container {
  padding-inline: 0;
}

.work .section-title {
  margin-block-end: 24px;
}

.work-card {
  position: relative;
}

.work-card .card-content {
  background-color: var(--white);
  max-width: 90%;
  padding: 30px 10px;
  margin-block-start: -60px;
  margin-inline: auto;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow);
}

.work-card .card-subtitle {
  font-family: var(--ff-chakra-petch);
  text-transform: uppercase;
  color: var(--international-orange-engineering);
  font-weight: var(--fw-700);
  margin-block-end: 5px;
}

.work-card .card-title {
  margin-block-end: 10px;
}

.work-card .card-btn {
  background-color: var(--international-orange-engineering);
  color: var(--white);
  font-size: 2rem;
  margin-inline: auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-circle);
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  color: var(--cadet-blue-creyola);
}

.footer .shape {
  display: none;
}

.footer-top {
  background-color: var(--space-cadet);
}

.footer-top .container {
  display: grid;
  gap: 40px;
}

.footer-text {
  margin-block: 18px 20px;
}

.social-list {
  display: flex;
  gap: 8px;
}

.social-link {
  background-color: var(--oxford-blue-3);
  padding: 14px;
  border-radius: var(--radius-circle);
  transition: var(--transition);
}

.social-link:is(:hover, :focus-visible) {
  background-color: var(--international-orange-engineering);
  transform: translateY(-5px);
}

.footer .h3 {
  color: var(--white);
  margin-block-end: 18px;
}

.footer-list .p {
  color: var(--white);
  font-weight: var(--fw-400);
  margin-block-end: 7px;
}

.footer-list li:not(:first-child) {
  margin-block-start: 16px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link:is(:hover, :focus-visible) {
  color: var(--international-orange-engineering);
}

.footer-link .material-symbols-rounded {
  flex-shrink: 0;
  font-size: 1.8rem;
  color: var(--international-orange-engineering);
}

.footer-bottom {
  background-color: var(--oxford-blue-1);
  padding-block: 20px;
}

.copyright {
  text-align: center;
  font-size: var(--fs-6);
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-2: 4rem;
    --fs-3: 2.8rem;
    --fs-4: 2rem;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  .section-subtitle {
    --fs-5: 1.6rem;
  }

  .h2 {
    font-weight: var(--fw-700);
  }

  /**
   * HERO
   */

  .hero .container {
    max-width: unset;
  }

  .hero-content {
    max-width: 520px;
    margin-inline: auto;
  }

  .hero .section-text {
    font-size: 1.8rem;
  }

  /**
   * SERVICE
   */

  .service .section-title {
    margin-block-end: 30px;
  }

  .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-block-end: 40px;
  }

  /**
   * ABOUT
   */

  .about-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .about-item {
    padding-block: 20px;
  }

  /**
   * WORK
   */

  .scrollbar-item {
    min-width: calc(50% - 15px);
  }

  /**
   * FOOTER
   */

  .footer-top {
    position: relative;
    overflow: hidden;
  }

  .footer-top .container {
    grid-template-columns: 1fr 1fr;
  }

  .footer .shape-3 {
    display: block;
    position: absolute;
    bottom: -30px;
    right: 0;
  }
}

/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 4rem;
    --fs-2: 5rem;
    --fs-3: 3.4rem;
  }

  /**
   * REUSED STYLE
   */

  .container,
  .hero-content {
    max-width: 720px;
  }

  .btn {
    padding: 16px 32px;
  }

  .section-subtitle {
    --fs-5: 1.8rem;
  }

  .section-title:not(.h1) {
    max-width: 500px;
    margin-inline: auto;
  }

  /**
   * HERO
   */

  .hero {
    --section-padding: 120px;
  }

  .hero .section-text {
    margin-block-end: 30px;
  }

  /**
   * SERVICE
   */

  .service-banner {
    display: block;
    position: relative;
  }

  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-banner img {
    position: absolute;
    top: 0;
    left: -25%;
    margin-block-start: 15%;
    width: 150%;
    transform-origin: top;
  }

  /**
   * ABOUT
   */

  .about-banner {
    max-width: max-content;
  }

  .about-banner,
  .about .section-text {
    margin-inline: auto;
  }

  .about .section-text {
    max-width: 520px;
  }

  /**
   * FOOTER
   */

  .footer-top .container {
    grid-template-columns: 1fr 0.9fr 0.9fr;
  }

  .copyright {
    --fs-6: 1.4rem;
  }
}

/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-2: 4.4rem;
    --fs-3: 3.8rem;
    --fs-4: 2.2rem;

    /**
     * spacing
     */

    --section-padding: 100px;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 960px;
  }

  .section-text,
  .card-text {
    font-size: 1.8rem;
  }

  /**
   * HEADER
   */

  .nav-toggle-btn {
    display: none;
  }

  .header .container {
    gap: 30px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .navbar,
  .navbar.active {
    all: unset;
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    background: none;
    width: auto;
  }

  .header-actions {
    display: flex !important;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
  }

  .login-button {
    display: flex !important;
    font-size: var(--fs-5);
    padding: 12px 24px !important;
    position: static; /* en escritorio que fluya con el layout */
    margin-left: 20px;
    white-space: nowrap;
  }

  .navbar-list {
    display: flex;
    gap: 24px;
  }

  .navbar-link {
    position: relative;
    font-size: unset;
  }

  .navbar-link:is(:hover, :focus-visible) {
    background: none;
    color: var(--white);
  }

  .navbar-link::after {
    content: url("../images/nav-before-img.png");
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
  }

  .navbar-link:is(:hover, :focus-visible)::after {
    opacity: 1;
  }

  .header .btn {
    padding: 12px 24px;
    font-size: var(--fs-5);
  }

  /**
   * HERO
   */

  .hero {
    text-align: left;
    padding-block-end: 80px;
  }

  .hero .container {
    max-width: 960px;
    grid-template-columns: 1fr 1fr;
  }

  .hero :is(.section-subtitle, .btn) {
    margin-inline: 0;
  }

  .hero .section-title {
    text-align: left;
  }

  .hero-banner img {
    width: 55%;
  }

  /**
   * SERVICE
   */

  .service-card .card-text {
    padding-inline: 25px;
    line-height: 1.45;
    margin-block-end: 15px;
  }

  .service-list li:nth-child(-2n + 3) {
    margin-block-start: 90px;
  }

  .service-list li:nth-child(4) {
    margin-inline-end: 60px;
  }

  .service-list li:nth-child(6) {
    margin-inline-start: 60px;
  }

  .service-banner img {
    left: -55%;
    margin-block-start: -30%;
    width: 210%;
  }

  /**
   * ABOUT
   */

  .about {
    position: relative;
    z-index: 1;
  }

  .about,
  .about .section-title {
    text-align: left;
  }

  .about .container {
    grid-template-columns: 1fr 0.75fr;
    gap: 30px;
  }

  .about .section-subtitle {
    margin-inline: 0;
  }

  .about-banner,
  .about-banner .w-100 {
    margin-inline: auto 0;
  }

  .about-banner .w-100 {
    width: 40%;
  }

  .about-item {
    text-align: center;
  }

  .about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url("../images/about-abs-banner.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    z-index: -1;
  }

  /**
   * WORK
   */

  .has-scrollbar {
    overflow-x: visible;
  }

  .scrollbar-item {
    min-width: calc(33.33% - 20px);
  }
}

/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-2: 5rem;
    --fs-3: 4.6rem;
  }

  /**
   * REUSED STYLE
   */

  .container,
  .hero .container {
    max-width: 1140px;
  }

  .btn {
    padding: 18px 36px;
  }

  .btn .material-symbols-rounded {
    --fs: 1.3em;
  }

  /**
   * HEADER
   */

  .header {
    padding-block: 25px;
  }

  .logo img {
    width: 128px;
  }

  .header .btn {
    font-size: unset;
    padding-block: 15px;
  }

  /**
   * HERO
   */

  .hero {
    padding-block: 250px 180px;
  }

  .hero .container {
    grid-template-columns: 1fr 0.9fr;
  }

  .hero .section-text {
    font-size: 2rem;
    padding-inline-end: 120px;
  }

  .hero-banner img {
    width: 70%;
  }

  /**
   * SERVICE
   */

  .service .section-title {
    max-width: 700px;
  }

  .service-list {
    margin-block-end: 70px;
  }

  .service-list li:nth-child(2) .card-text {
    padding-inline: 50px;
  }

  .service-list li:nth-child(-2n + 3) {
    margin-block-start: 110px;
  }

  .service-list li:is(:nth-child(1), :nth-child(6)) {
    margin-inline-start: 75px;
  }

  .service-list li:is(:nth-child(3), :nth-child(4)) {
    margin-inline-end: 75px;
  }

  .service-banner img {
    width: max-content;
    left: -41%;
  }

  /**
   * WORK
   */

  .work-card .card-btn {
    font-size: 2.4rem;
    width: 55px;
    height: 55px;
  }

  /**
   * FOOTER
   */

  .footer-top {
    padding-block: 150px;
  }

  .footer-top .container {
    padding-inline-start: 25%;
  }

  .footer-bottom {
    position: relative;
    padding-block: 30px;
    z-index: 1;
  }

  .footer :is(.shape-1, .shape-2) {
    display: block;
    position: absolute;
    bottom: 0;
    width: 50%;
    pointer-events: none;
    z-index: -1;
  }

  .footer .shape-1 {
    left: -100px;
  }

  .footer .shape-2 {
    left: -50px;
  }
}

/**
 * responsive for large than 1400px screen
 */

@media (min-width: 1400px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-2: 6rem;

    /**
     * spacing
     */

    --section-padding: 140px;
  }

  /**
   * REUSED STYLE
   */

  :is(.header, .hero) .container {
    max-width: 1280px;
  }

  .section-subtitle::before {
    height: 20px;
    margin-inline-end: 5px;
  }

  /**
   * HEADER
   */

  .header .btn {
    padding: 18px 36px;
  }

  /**
   * HERO
   */

  .hero {
    padding-block: 280px;
  }

  .hero .section-text {
    padding-inline-end: 90px;
  }

  .hero-banner img {
    width: 75%;
  }

  /**
   * ABOUT
   */

  .about::before {
    width: 55%;
  }

  .about-banner .w-100 {
    width: 50%;
  }

  /**
   * FOOTER
   */

  .footer-top .container {
    padding-inline-start: 20%;
  }
}

/* AÑADIDOS */

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-block-end: 60px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-info-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  background-color: var(--international-orange-engineering);
  color: var(--white);
  padding: 15px;
  border-radius: var(--radius-circle);
  flex-shrink: 0;
}

.contact-icon .material-symbols-rounded {
  font-size: 2rem;
}

.contact-details h3 {
  margin-block-end: 10px;
  color: var(--eerie-black);
}

.contact-text {
  line-height: 1.6;
}

.contact-text a {
  color: var(--international-orange-engineering);
  font-weight: var(--fw-600);
}

.contact-text small {
  color: var(--sonic-silver);
  font-size: 0.9rem;
}

.contact-section {
  background-color: var(--light-gray);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 20px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--sonic-silver);
}

.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-block-start: 40px;
}

.map-placeholder {
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 60px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content .material-symbols-rounded {
  font-size: 3rem;
  color: var(--international-orange-engineering);
  margin-block-end: 20px;
}

.directions {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.directions-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.directions-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.directions-list li:last-child {
  border-bottom: none;
}

.transport-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--light-gray);
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  background-color: var(--white);
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--light-gray);
}

.faq-question h3 {
  color: var(--eerie-black);
  margin: 0;
}

.faq-answer {
  padding: 0 30px 20px;
  color: var(--sonic-silver);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    grid-template-columns: 1fr;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }
}

/*-----------------------------------*\
  #DASHBOARD ANIMATIONS & IMPROVEMENTS
\*-----------------------------------*/

/* KPI Cards Enhanced */
.kpi-animated {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none !important;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.kpi-animated:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.kpi-animated::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(198, 40, 40, 0.6),
    transparent
  );
  transition: left 0.5s;
}

.kpi-animated:hover::before {
  left: 100%;
}

/* Animated Numbers */
.animated-number,
.animated-currency {
  transition: all 0.3s ease;
}

.animated-number:hover,
.animated-currency:hover {
  transform: scale(1.05);
}

/* Progress Bar Animations */
.progress-animated {
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(45deg, currentColor, rgba(255, 255, 255, 0.3));
  position: relative;
  overflow: hidden;
}

.progress-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Chart Cards */
.chart-card {
  border: none;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  overflow: hidden;
}

.chart-card:hover {
  box-shadow: var(--shadow-strong);
}

.chart-card .card-header {
  background: linear-gradient(135deg, var(--xp-red), var(--xp-red-hover));
  color: white;
  border: none;
}

/* Mini Metrics */
.mini-metric {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.mini-metric:hover {
  background-color: rgba(198, 40, 40, 0.02);
  padding-left: 8px;
}

.mini-metric:last-child {
  border-bottom: none;
}

/* Chart Controls */
.chart-controls .btn {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.2s ease;
}

.chart-controls .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* KPI Icons */
.kpi-icon {
  transition: all 0.3s ease;
}

.kpi-animated:hover .kpi-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .kpi-animated:hover {
    transform: none;
  }

  .chart-card {
    margin-bottom: 1rem;
  }
}

/* Loading States */
.chart-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  flex-direction: column;
  color: #666;
}

.chart-loading::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--xp-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success Animation */
@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.success-animation {
  animation: bounce 1s ease-in-out;
}

/*-----------------------------------*\
  #ENHANCED UI COMPONENTS
\*-----------------------------------*/

/* Global Transitions */
.transitions-enabled * {
  transition: all 0.2s ease-in-out;
}

/* Global Loader */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.loader-content {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
}

/* Enhanced Form Inputs */
.input-focused {
  transform: scale(1.02);
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25) !important;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--xp-red);
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25);
}

.is-valid {
  border-color: #28a745 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.53-.53L1.95 5.3a.75.75 0 0 0-1.06 1.06l1.41 1.4z'/%3e%3c/svg%3e") !important;
}

.is-invalid {
  border-color: #dc3545 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.8 5 .8-5'/%3e%3c/svg%3e") !important;
}

/* Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background-color: rgba(255, 255, 255, 0.6);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Nuevas animaciones para microinteracciones */
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes skeletonLoading {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Enhanced Buttons */
.btn {
  border: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-danger {
  background: linear-gradient(135deg, var(--xp-red), var(--xp-red-hover));
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107, #d39e00);
}

/* Enhanced Cards */
.card {
  border: none;
  box-shadow: var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-header {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Enhanced Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

/* Prevenir overflow en contenedores de tablas */
.table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.table thead th {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 1rem 0.75rem;
}

/* COMPLETAMENTE ELIMINADO - NO hover effects en tablas */
.table tbody tr {
  /* Sin transiciones que puedan causar scroll */
}

.table tbody tr:hover {
  /* Sin efectos hover que cambien dimensiones */
}

.table tbody td {
  border-color: rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

/* Loading States */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn .fa-spinner {
  margin-right: 0.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--xp-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--xp-red-hover);
}

/* Enhanced Modals */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
}

.modal-header {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px 12px 0 0;
}

.modal-footer {
  border-top: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 0 0 12px 12px;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xp-red), var(--xp-red-hover));
  color: white;
  border: none;
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .btn:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .table tbody tr:hover {
    transform: none;
  }

  .fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* ========================================
   MICROINTERACCIONES Y ANIMACIONES AVANZADAS
   ======================================== */

/* Loading Skeletons */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-secondary) 25%, 
    rgba(255,255,255,0.2) 50%, 
    var(--bg-secondary) 75%
  );
  background-size: 200px 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 60%;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-button {
  height: 38px;
  width: 100px;
}

/* Microinteracciones Avanzadas */
.microinteraction {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hover-grow:hover {
  transform: scale(1.05);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-float {
  animation: float 3s ease-in-out infinite;
}

/* Efectos de entrada animados */
.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in-left {
  animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in-right {
  animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-scale {
  animation: scaleIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efectos de pulso para notificaciones */
.pulse-notification {
  animation: pulse 2s infinite;
}

/* Loading spinners mejorados */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: rotate 1s ease-in-out infinite;
}

.loading-dots {
  display: inline-block;
}

.loading-dots:after {
  content: '⠋';
  animation: rotate 1s linear infinite;
}

/* COMPLETAMENTE DESHABILITADO - hover effects en tablas */
.table-hover tbody tr {
  /* Sin transiciones */
}

.table-hover tbody tr:hover {
  /* Sin efectos hover */
}

/* Asegurar que no haya overflow horizontal */
.table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

/* Ocultar scrollbar cuando no se necesita */
.table-responsive:not(:hover)::-webkit-scrollbar {
  display: none;
}

.table-responsive:hover::-webkit-scrollbar {
  display: block;
}

/* ELIMINAR COMPLETAMENTE scrollbar horizontal */
* {
  overflow-x: hidden !important;
}

*::-webkit-scrollbar:horizontal {
  display: none !important;
}

body, html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.container, .container-fluid {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.card, .card-body {
  overflow-x: hidden !important;
}

.table-responsive {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.table {
  width: 100% !important;
  max-width: 100% !important;
}

/* FORZAR: NO efectos hover en tablas - Evitar scroll horizontal */
.table-responsive {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

/* ELIMINAR CUALQUIER EFECTO EN FILAS DE TABLA */
.table tr, 
.table tbody tr, 
.table-hover tbody tr,
.table-striped tbody tr,
.table tr:hover,
.table tbody tr:hover,
.table-hover tbody tr:hover,
.table-striped tbody tr:hover,
.table-striped tr:hover {
  transform: none !important;
  scale: none !important;
  will-change: auto !important;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  border-left: inherit !important;
  border-right: inherit !important;
  outline: none !important;
  margin: 0 !important;
  padding-left: inherit !important;
  padding-right: inherit !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  background-color: inherit !important;
}

/* FORZAR que bootstrap NO aplique efectos */
.table-striped > tbody > tr:nth-of-type(odd):hover,
.table-striped > tbody > tr:nth-of-type(even):hover,
.table-hover > tbody > tr:hover {
  background-color: inherit !important;
  transform: none !important;
  transition: none !important;
}

/* Eliminar transforms que causen overflow */
.table tbody tr,
.table tbody tr:hover {
  transform: none !important;
  will-change: auto !important;
}

/* Solo permitir cambios de color y sombra interna */
.table-hover tbody tr:hover {
  transform: none !important;
  scale: none !important;
}

/* Efectos en formularios - SIN transform que cause overflow */
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  font-size: 0.85em;
  color: var(--primary);
}

.form-control {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Badges animados */
.badge {
  transition: all 0.2s ease;
}

.badge:hover {
  transform: scale(1.1);
}

/* Tooltips mejorados */
.tooltip {
  animation: fadeInUp 0.2s ease;
}

/* Efectos en iconos */
.icon-spin {
  animation: rotate 1s linear infinite;
}

.icon-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Separadores con animación */
.animated-hr {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border: none;
  animation: shimmer 2s infinite;
}

/* Estados de carga para botones */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Efectos de progreso */
.progress-bar {
  transition: width 0.6s ease;
  background: linear-gradient(45deg, 
    var(--primary) 25%, 
    transparent 25%, 
    transparent 50%, 
    var(--primary) 50%, 
    var(--primary) 75%, 
    transparent 75%, 
    transparent
  );
  background-size: 1rem 1rem;
  animation: shimmer 2s linear infinite;
}

/* Dark mode variables (preparación) */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
}
