html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem;
}

html {
  position: relative;
  min-height: 100%;
}

/* ===== VARIABLES CSS ===== */
:root {
  /* Colores principales del Foro Mujeres Líderes */
  --primary-color: #3e59a1; /* Azul principal del logo */
  --primary-light: #50b0c4; /* Azul secundario del logo */
  --primary-dark: #2e4a8a; /* Versión más oscura del azul principal */
  --accent-color: #50b0c4; /* Azul turquesa del logo */

  /* Colores neutros */
  --white: #fefefe; /* Blanco del logo */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Estados */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #50b0c4; /* Usando el azul secundario del logo */

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Tipografía */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Espaciado */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transiciones */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

@view-transition {
  navigation: auto;
}

/* ===== RESET Y BASE ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* ===== TIPOGRAFÍA ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: var(--spacing-4);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--spacing-4);
  color: var(--gray-600);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--gray-600);
}

/* ===== LAYOUT PRINCIPAL ===== */
html {
  height: 100%;
}

main {
  flex: 1 0 auto;
  min-height: calc(100vh - 200px);
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm);
  /*   padding: var(--spacing-4) 0; */
  border-bottom: 1px solid var(--gray-200);
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  margin-right: var(--spacing-6);
}

.navbar-brand:hover {
  color: var(--primary-dark) !important;
}

.navbar-brand img {
  transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  padding: var(--spacing-2) var(--spacing-4) !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  margin: 0 var(--spacing-2);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--gray-100);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-color);
  color: var(--white) !important;
}

.navbar-collapse {
  justify-content: space-between;
  align-items: center;
}

.navbar-nav {
  align-items: center;
  gap: var(--spacing-1);
}

/* Responsive adjustments for navbar */
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 var(--spacing-3);
  }

  .navbar-nav .nav-link {
    margin: var(--spacing-1) 0;
    padding: var(--spacing-3) var(--spacing-4) !important;
  }
}

.dropdown-menu {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2);
  min-width: 200px;
}

.dropdown-item {
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--gray-600);
}

.dropdown-item:hover {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

/* ===== BOTONES ===== */
.btn {
  font-weight: 500;
  padding: var(--spacing-3) var(--spacing-6);
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
}

.btn:focus {
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.btn-primary {
  background-color: #008e67;
  color: var(--white);
}

.btn-primary:hover {
  background-color: #006b4f;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background-color: var(--gray-300);
  color: var(--gray-800);
}

.btn-outline-primary {
  background-color: transparent;
  color: #008e67;
  border: 2px solid #008e67;
}

.btn-outline-primary:hover {
  background-color: #006b4f;
  color: var(--white);
}

.btn-outline-info {
  background-color: transparent;
  color: var(--info);
  border: 2px solid var(--info);
}

.btn-outline-info:hover {
  background-color: var(--info);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-outline-accent:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
}

/* ===== TARJETAS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background-color: var(--gray-50);
  border-bottom: 3px solid #4aacc4;
  padding: var(--spacing-6);
  font-weight: 600;
  color: var(--gray-900);
}

.card-body {
  padding: var(--spacing-6);
}

.card-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-4);
}

/* ===== FORMULARIOS ===== */
.form-control {
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--spacing-2);
  display: block;
}

.form-text {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-top: var(--spacing-2);
}

.form-group {
  margin-bottom: var(--spacing-6);
}

/* ===== TABLAS ===== */
.table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead th {
  background-color: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-700);
  padding: var(--spacing-4);
}

.table tbody td {
  padding: var(--spacing-4);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

/* Badges modernos */
.badge {
  font-size: 0.75em;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 20px;
}

.table th {
  background-color: #f8fafc;
  border-top: none;
  font-weight: 600;
  font-size: 14px;
  color: #475569;
}

/* Modal moderno */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 24px 16px;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 16px 24px 24px;
}

/* Estilos para confirmación moderna */
.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
}

.confirmation-icon.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.confirmation-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.confirmation-icon.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* ===== ALERTAS ===== */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-4) var(--spacing-6);
  margin-bottom: var(--spacing-6);
  font-weight: 500;
}

.alert-success {
  background-color: #ecfdf5;
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-info {
  background-color: #eff6ff;
  color: var(--info);
  border-left: 4px solid var(--info);
}

.alert-warning {
  background-color: #fffbeb;
  color: var(--warning);
  border-left: 4px solid var(--warning);
}

.alert-danger {
  background-color: #fef2f2;
  color: var(--error);
  border-left: 4px solid var(--error);
}

/* ===== UTILIDADES ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-1);
}
.mb-2 {
  margin-bottom: var(--spacing-2);
}
.mb-3 {
  margin-bottom: var(--spacing-3);
}
.mb-4 {
  margin-bottom: var(--spacing-4);
}
.mb-5 {
  margin-bottom: var(--spacing-5);
}
.mb-6 {
  margin-bottom: var(--spacing-6);
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--spacing-1);
}
.mt-2 {
  margin-top: var(--spacing-2);
}
.mt-3 {
  margin-top: var(--spacing-3);
}
.mt-4 {
  margin-top: var(--spacing-4);
}
.mt-5 {
  margin-top: var(--spacing-5);
}
.mt-6 {
  margin-top: var(--spacing-6);
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: var(--spacing-1);
}
.p-2 {
  padding: var(--spacing-2);
}
.p-3 {
  padding: var(--spacing-3);
}
.p-4 {
  padding: var(--spacing-4);
}
.p-5 {
  padding: var(--spacing-5);
}
.p-6 {
  padding: var(--spacing-6);
}

/* ===== FOOTER MODERNO ===== */
.site-footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--gray-300);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-12);
  padding: var(--spacing-12) 0;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.logo-img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.05);
}

.footer-description {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-8);
}

.footer-column h4 {
  color: var(--white);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--spacing-4) 0;
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.footer-column li {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  padding: var(--spacing-1) 0;
  border-radius: var(--radius-sm);
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.contact-list li {
  align-items: flex-start;
  gap: var(--spacing-3);
}

.contact-list i {
  color: var(--primary-color);
  font-size: var(--font-size-base);
  width: 16px;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-list span {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-600), transparent);
  margin: 0;
}

.footer-bottom {
  padding: var(--spacing-6) 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-4);
}

.copyright {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--spacing-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62, 89, 161, 0.3);
}

.social-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 1024px) {
  .footer-main {
    gap: var(--spacing-8);
  }

  .footer-links {
    gap: var(--spacing-6);
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 var(--spacing-3);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    padding: var(--spacing-8) 0;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-description {
    max-width: none;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-list {
    justify-content: center;
    align-items: center;
  }

  .footer-column {
    margin-top: 20px;
  }

  .footer-column > ul {
    justify-content: center;
    align-items: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: var(--spacing-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 var(--spacing-2);
  }

  .footer-main {
    padding: var(--spacing-6) 0;
    gap: var(--spacing-6);
  }

  .footer-logo {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-2);
  }

  .logo-img {
    height: 48px;
  }

  .brand-text h3 {
    font-size: var(--font-size-xl);
  }

  .footer-column h4 {
    font-size: var(--font-size-base);
  }

  .footer-bottom {
    padding: var(--spacing-4) 0;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
  }

  .card-body {
    padding: var(--spacing-4);
  }

  .btn-lg {
    padding: var(--spacing-3) var(--spacing-6);
  }

  h1 {
    font-size: var(--font-size-3xl);
  }
  h2 {
    font-size: var(--font-size-2xl);
  }
  h3 {
    font-size: var(--font-size-xl);
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ===== ESTADOS DE CARGA ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 2px solid var(--gray-200);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible para mejor accesibilidad */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== ESTILOS ESPECÍFICOS PARA COMPONENTES ===== */
.hero-section {
  background: linear-gradient(135deg, #f6a633 0%, #ffd180 100%);
  color: var(--white);
  padding: var(--spacing-20) 0;
  text-align: center;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: var(--spacing-6);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-8);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-6);
  color: var(--white);
  font-size: var(--font-size-2xl);
  box-shadow: var(--shadow-md);
}

.feature-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

/* ===== ESTILOS PARA TEXTAREA ===== */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ===== ESTILOS PARA FORMULARIOS MEJORADOS ===== */
.form-control-lg {
  padding: var(--spacing-4) var(--spacing-5);
  font-size: var(--font-size-lg);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
  transform: translateY(-1px);
}

/* ===== ESTILOS PARA SELECTS ===== */
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--spacing-3) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: var(--spacing-10);
}

/* ===== ESTILOS PARA PLACEHOLDER ===== */
::placeholder {
  color: var(--gray-400);
  opacity: 1;
}

/* ===== ESTILOS PARA INPUTS CON ICONOS ===== */
.input-group-text {
  background-color: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-right: none;
  color: var(--gray-500);
}

.input-group .form-control {
  border-left: none;
}

.input-group .form-control:focus {
  border-left: 2px solid var(--primary-color);
}

/* ===== ESTILOS PARA VALIDACIÓN ===== */
.text-danger {
  color: var(--error) !important;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-1);
}

.validation-summary-errors {
  background-color: #fef2f2;
  border: 1px solid var(--error);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4);
  margin-bottom: var(--spacing-6);
  color: var(--error);
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: var(--spacing-4);
}

/* ===== ESTILOS PARA ESTADÍSTICAS ===== */
.stats-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.stats-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-2);
}

.stats-label {
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
}

/* ===== ESTILOS PARA ESTADOS DE VALIDACIÓN ===== */
.form-control.is-valid {
  border-color: var(--success);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
  border-color: var(--error);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444' stroke-width='1.5'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M4.5 4.5L7.5 7.5M7.5 4.5L4.5 7.5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ===== ESTILOS PARA NAVEGACIÓN POR TECLADO ===== */
.keyboard-navigation .btn:focus,
.keyboard-navigation .form-control:focus,
.keyboard-navigation .nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== ESTILOS PARA MEJORAS VISUALES ===== */
.bg-light {
  background-color: var(--gray-50) !important;
}

.text-muted {
  color: var(--gray-500) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Gradientes con los colores del logo */
.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  ) !important;
}

.bg-gradient-accent {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--primary-color) 100%
  ) !important;
}

/* ===== ESTILOS PARA PROYECTO CLIP ===== */

/* Hero Section CLIP */
.clip-hero-section {
  background-image: url("../img/foto2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.clip-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(47, 89, 163, 0.7) 0%,
    rgba(0, 142, 103, 0.7) 100%
  );
  z-index: 1;
}

.clip-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.3;
  z-index: 2;
}

.clip-hero-content {
  position: relative;
  z-index: 3;
}

.clip-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.clip-hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
}

.clip-logo-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* .clip-logo-card:hover {
  transform: scale(1.05);
} */

.clip-logo-card img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Main Content */
.main-content {
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  min-height: 100vh;
}

/* Intro Section */
.intro-section {
  padding: 60px 0;
}

.intro-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2f59a3;
  margin-bottom: 2rem;
}

.intro-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4b5563;
  text-align: justify;
}

.clip-logo-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.clip-logo-link:hover {
  transform: scale(1.05);
}

.intro-logo {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.intro-logo img {
  max-width: 100%;
  height: auto;
}

.clip-hover-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(47, 89, 163, 0.95);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.intro-logo:hover .clip-hover-text {
  transform: translateY(0);
}

/* Features Section */
.features-section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2f59a3;
  margin-bottom: 3rem;
  text-align: center;
}

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2f59a3, #008e67);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-title {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2f59a3;
  margin: 0;
}

.expand-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #2f59a3;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 5px;
}

.expand-btn:hover {
  transform: scale(1.1);
}

.expand-btn.expanded {
  transform: rotate(180deg);
}

.feature-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
}

.feature-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0;
}

.feature-expanded.show {
  max-height: 2000px;
  padding: 20px 0;
}

.expanded-content {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
}

.expanded-content p {
  margin-bottom: 15px;
}

/* Audience Section */
.audience-section {
  padding: 60px 0;
  background: white;
}

.audience-content {
  max-width: 900px;
  margin: 0 auto;
}

.audience-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2f59a3;
  margin-bottom: 1rem;
  text-align: center;
}

.audience-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.audience-item:hover {
  background: linear-gradient(
    135deg,
    rgba(246, 166, 51, 0.1),
    rgba(0, 142, 103, 0.1)
  );
  transform: translateX(5px);
}

.audience-item i {
  color: #008e67;
  font-size: 1.5rem;
  margin-top: 2px;
}

.audience-item strong {
  color: #2f59a3;
}

/* Implementation Section */
.implementation-section {
  padding: 60px 0;
}

.implementation-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2f59a3;
  margin-bottom: 3rem;
  text-align: center;
}

.implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.implementation-item {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.implementation-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.implementation-item i {
  font-size: 3rem;
  background: linear-gradient(135deg, #f6a633, #008e67);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.implementation-content h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2f59a3;
  margin-bottom: 10px;
}

.implementation-content p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Gallery Section */
.gallery-section {
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.close-modal {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0;
  width: 50px;
  height: 50px;
}

.close-modal:hover {
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.modal-prev {
  left: -70px;
}

.modal-next {
  right: -70px;
}

.modal-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
}

/* Responsive adjustments for CLIP */
@media (max-width: 992px) {
  .clip-hero-title {
    font-size: 2.5rem;
  }

  .clip-hero-subtitle {
    font-size: 1.25rem;
  }

  .intro-title,
  .section-title,
  .audience-title,
  .implementation-title {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .feature-card {
    padding: 25px;
  }

  .implementation-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .clip-hero-section {
    padding: 40px 0;
  }

  .clip-hero-title {
    font-size: 1.75rem;
    text-align: center;
  }

  .clip-hero-subtitle {
    font-size: 0.95rem;
    text-align: center;
    padding: 0 15px;
  }

  .intro-section,
  .features-section,
  .audience-section,
  .implementation-section,
  .gallery-section {
    padding: 40px 0;
  }

  .intro-title,
  .section-title,
  .audience-title,
  .implementation-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .intro-text {
    font-size: 1rem;
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-title {
    font-size: 1.25rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .implementation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .audience-item {
    padding: 15px;
  }

  .intro-logo {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .clip-hero-section {
    padding: 30px 15px;
  }

  .clip-hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .clip-hero-subtitle {
    font-size: 0.875rem;
  }

  .clip-logo-card {
    padding: 15px;
    margin-top: 20px;
  }

  .clip-logo-card img {
    max-width: 120px;
  }

  .intro-section,
  .features-section,
  .audience-section,
  .implementation-section,
  .gallery-section {
    padding: 30px 0;
  }

  .intro-title,
  .section-title,
  .audience-title,
  .implementation-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .intro-logo {
    padding: 20px;
  }

  .feature-card {
    padding: 15px;
  }

  .feature-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .feature-title {
    font-size: 1.125rem;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .feature-description {
    font-size: 0.9rem;
  }

  .expanded-content {
    font-size: 0.875rem;
    padding: 15px 0;
  }

  .expanded-content p {
    margin-bottom: 10px;
  }

  .implementation-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .implementation-item {
    padding: 20px;
  }

  .implementation-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .implementation-content h5 {
    font-size: 1.125rem;
  }

  .implementation-content p {
    font-size: 0.875rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .gallery-item img {
    height: 150px;
  }

  .audience-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .audience-item {
    padding: 12px;
    flex-direction: column;
    text-align: center;
  }

  .audience-item i {
    font-size: 1.25rem;
  }

  .modal-content {
    max-width: 95%;
    padding: 10px;
  }

  .modal-content img {
    max-height: 85vh;
  }

  .modal-prev {
    left: 5px;
  }

  .modal-next {
    right: 5px;
  }

  .modal-nav {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .close-modal {
    top: 5px;
    right: 5px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }

  .modal-counter {
    bottom: 10px;
    font-size: 1rem;
    padding: 8px 16px;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .clip-hero-title {
    font-size: 1.25rem;
  }

  .clip-hero-subtitle {
    font-size: 0.8rem;
  }

  .intro-title,
  .section-title,
  .audience-title,
  .implementation-title {
    font-size: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item img {
    height: 120px;
  }
}

/* ===== MEJORAS ADICIONALES ===== */

/* Scroll suave mejorado */
html {
  scroll-padding-top: 100px;
}

/* Animación de carga */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clip-hero-content,
.intro-section,
.features-section,
.audience-section,
.implementation-section,
.gallery-section {
  animation: slideUp 0.8s ease-out;
}

/* Efectos hover mejorados para tarjetas */
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.implementation-item:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mejoras de accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Efecto parallax ligero - solo desktop */
@media (min-width: 769px) {
  .clip-hero-section {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clip-hero-section {
    background-attachment: scroll;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Smooth transitions para elementos expandibles */
.feature-expanded.show {
  animation: expandDown 0.5s ease;
}

@keyframes expandDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 2000px;
    opacity: 1;
  }
}

/* Loading skeleton para imágenes */
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.gallery-item img {
  position: relative;
  z-index: 1;
}

/* Mejorar contraste para accesibilidad */
.clip-hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), -1px -1px 2px rgba(0, 0, 0, 0.1);
}

/* Estados focus mejorados */
.expand-btn:focus,
.close-modal:focus,
.modal-nav:focus {
  outline: 3px solid #2f59a3;
  outline-offset: 2px;
}

/* Mejora en barras de progreso (si agregas más adelante) */
.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, #2f59a3, #008e67);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Botón flotante de volver arriba (sugerencia) */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2f59a3, #008e67);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ===== MEJORAS DE CONTRASTE Y ACCESIBILIDAD ===== */

/* === BOTONES CON MEJOR CONTRASTE === */

/* Botón Success (Verde) - Acciones exitosas */
.btn-success {
  background-color: #059669; /* Verde más oscuro para mejor contraste */
  color: #ffffff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.btn-success:hover {
  background-color: #047857;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-success:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
  outline: none;
}

.btn-outline-success {
  color: #059669;
  border: 2px solid #059669;
  background-color: transparent;
}

.btn-outline-success:hover {
  background-color: #059669;
  color: #ffffff;
}

/* Botón Warning (Amarillo/Naranja) - Advertencias y ediciones */
.btn-warning {
  background-color: #d97706; /* Naranja más oscuro para mejor contraste */
  color: #ffffff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.btn-warning:hover {
  background-color: #b45309;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-warning:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.3);
  outline: none;
}

.btn-outline-warning {
  color: #d97706;
  border: 2px solid #d97706;
  background-color: transparent;
}

.btn-outline-warning:hover {
  background-color: #d97706;
  color: #ffffff;
}

/* Botón Danger (Rojo) - Acciones destructivas */
.btn-danger {
  background-color: #dc2626; /* Rojo más oscuro */
  color: #ffffff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.btn-danger:hover {
  background-color: #b91c1c;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
  outline: none;
}

.btn-outline-danger {
  color: #dc2626;
  border: 2px solid #dc2626;
  background-color: transparent;
}

.btn-outline-danger:hover {
  background-color: #dc2626;
  color: #ffffff;
}

/* Botón Info (Azul) - Información */
.btn-info {
  background-color: #0284c7; /* Azul más oscuro para mejor contraste */
  color: #ffffff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.btn-info:hover {
  background-color: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-info:focus {
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3);
  outline: none;
}

.btn-outline-info {
  color: #0284c7;
  border: 2px solid #0284c7;
  background-color: transparent;
}

.btn-outline-info:hover {
  background-color: #0284c7;
  color: #ffffff;
}

/* === BADGES CON MEJOR CONTRASTE === */

/* Badge Success */
.badge.bg-success {
  background-color: #059669 !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
}

/* Badge Warning - Usar fondo oscuro con texto claro */
.badge.bg-warning {
  background-color: #d97706 !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
}

/* Badge Danger */
.badge.bg-danger {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
}

/* Badge Info - Azul más oscuro */
.badge.bg-info {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
}

/* Badge Primary */
.badge.bg-primary {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
}

/* Badge Secondary */
.badge.bg-secondary {
  background-color: #475569 !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
}

/* === HEADERS DE CARDS CON MEJOR CONTRASTE === */

.card-header.bg-info {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

.card-header.bg-warning {
  background-color: #d97706 !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

.card-header.bg-success {
  background-color: #059669 !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

.card-header.bg-danger {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

.card-header.bg-primary {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
}

/* === MEJORAS ADICIONALES DE UX === */

/* Botones deshabilitados más claros */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Mejor separación entre botones en grupos */
.btn-group .btn {
  margin-right: 4px;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

/* Tamaño mínimo de área táctil para móviles */
@media (max-width: 768px) {
  .btn {
    min-height: 44px; /* Tamaño mínimo recomendado para táctiles */
    padding: 0.625rem 1rem;
  }

  .btn-sm {
    min-height: 36px;
  }
}

/* Mejor feedback visual en estados hover/focus */
.btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Mejora de contraste en estados de carga */
.btn.loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* ===== BOTONES RESPONSIVE PARA MÓVILES ===== */

/* Ocultar texto de botones en móviles */
@media (max-width: 768px) {
  /* Ocultar texto dentro de los botones en móviles */
  .btn .btn-text {
    display: none;
  }

  /* Ajustar padding de botones cuando solo muestran íconos */
  .btn-group.mobile-buttons-top .btn,
  .mobile-button-bottom {
    padding: 0.5rem;
    min-width: 44px; /* Tamaño mínimo táctil */
    justify-content: center;
  }

  /* Asegurar que los íconos estén centrados */
  .btn i {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Cambiar layout del header en móviles */
  .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem;
  }

  /* Mover botones del header debajo del título */
  .card-header .mobile-buttons-top {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  /* Botón de gestionar responsables - moverlo debajo */
  .mobile-button-bottom {
    margin-top: 0.5rem;
  }

  /* Ajustar el contenedor flex del título "Responsables" */
  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .d-flex.justify-content-between.align-items-center .mobile-button-bottom {
    align-self: flex-start;
    margin-top: 0.75rem;
  }
}

/* Asegurar que los íconos tengan margen en desktop */
@media (min-width: 769px) {
  .btn i + .btn-text {
    margin-left: 0.5rem;
  }

  .btn-text {
    display: inline;
  }
}
