/* ============================================
   ROOT & PALETA DE COLORES MILITAR
   ============================================ */
:root {
  /* Colores principales - Paleta militar elegante */
  --military-green: #2d4a22;
  --military-green-dark: #1e3316;
  --military-green-light: #4a7c38;
  --olive: #5a6b3c;
  --khaki: #8b7d5b;
  --coyote: #7c6e4a;
  --accent: #d4a017;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;

  /* Neutrales */
  --dark: #1a1a2e;
  --gray-dark: #2c3e50;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --light: #f5f3ef;
  --white: #ffffff;
  --black: #000000;

  /* Sombras y efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 15px 35px rgba(45, 74, 34, 0.2);

  /* Bordes */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Gradientes militares */
  --gradient-military: linear-gradient(
    135deg,
    var(--military-green),
    var(--military-green-dark)
  );
  --gradient-olive: linear-gradient(135deg, var(--olive), var(--khaki));
  --gradient-hero: linear-gradient(
    135deg,
    #1e3316 0%,
    #2d4a22 50%,
    #3d5a2e 100%
  );
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  background: white;
}

/* ============================================
   NAVBAR MILITAR
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 0.5rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  background: var(--gradient-military);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--military-green);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.75rem;
  color: var(--gray-dark) !important;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--military-green) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--military-green);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 80%;
}

/* ============================================
   BOTONES MILITARES
   ============================================ */
.btn {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-military);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--military-green-dark);
}

.btn-outline-military {
  border: 2px solid var(--military-green);
  color: var(--military-green);
  background: transparent;
}

.btn-outline-military:hover {
  background: var(--military-green);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION MILITAR
   ============================================ */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.floating-elements .element {
  position: absolute;
  opacity: 0.08;
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--success),
    var(--military-green-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.btn-details {
  flex: 1;
  background: transparent;
  border: 1px solid var(--military-green);
  color: var(--military-green);
  padding: 0.5rem 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.7rem;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-details:hover {
  background: var(--military-green);
  color: white;
}

.btn-whatsapp {
  flex: 1;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 0.5rem 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.7rem;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  color: white;
}

/* ============================================
   SECCIÓN DE SERVICIOS MILITARES
   ============================================ */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(45, 74, 34, 0.1);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--military-green);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(45, 74, 34, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--military-green);
}

/* ============================================
   MISIÓN Y VISIÓN
   ============================================ */
.mission-vision {
  padding: 5rem 0;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(45, 74, 34, 0.1);
  color: var(--military-green);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--military-green-dark);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.mission-card,
.vision-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(45, 74, 34, 0.1);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--military-green);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.mission-icon {
  background: var(--gradient-military);
  color: white;
}

.vision-icon {
  background: var(--gradient-olive);
  color: white;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--military-green-dark);
  margin-bottom: 0.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CALCULADORA
   ============================================ */
.calculator {
  padding: 5rem 0;
  background: var(--gradient-military);
  color: white;
}

.calculator-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-floating {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
  }
}

@media (max-width: 576px) {
  .whatsapp-floating {
    bottom: 15px;
    left: 15px;
  }
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ============================================
   FOOTER MILITAR
   ============================================ */
footer {
  background: var(--military-green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

footer ul li a:hover {
  color: var(--success);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--success);
  transform: translateY(-3px);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar personalizado militar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--military-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--military-green-dark);
}

/* ============================================
               NOTIFICACIÓN FULL WIDTH - ESTILO MILITAR
               ============================================ */

/* Contenedor principal - ocupa todo el ancho */
.access-notification {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--military-green) 0%,
    var(--military-green-dark) 50%,
    var(--military-green-light) 100%
  );
  border-top: 3px solid #ffb700;
  border-bottom: 1px solid rgba(212, 160, 23, 0.3);
  position: relative;
  overflow: hidden;
}

/* Efecto de fondo tipo camuflaje sutil */
.access-notification::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' opacity='0.03'%3E%3Cpath fill='%23ffffff' d='M20,20 L30,15 L35,25 L25,30 Z M60,10 L70,8 L72,18 L62,20 Z M40,60 L50,55 L55,65 L45,70 Z M75,50 L85,48 L87,58 L77,60 Z M10,70 L20,68 L22,78 L12,80 Z'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 40px;
  pointer-events: none;
}

.notification-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* Icono con animación */
.notification-icon {
  position: relative;
  flex-shrink: 0;
}

.notification-icon i {
  font-size: 2.5rem;
  color: #ffb700;
  filter: drop-shadow(0 2px 8px rgba(212, 160, 23, 0.4));
  position: relative;
  z-index: 2;
}

.icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: rgba(212, 160, 23, 0.2);
  border-radius: 50%;
  animation: ripple 2s infinite;
  z-index: 1;
}

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.6;
  }
  100% {
    width: 180%;
    height: 180%;
    opacity: 0;
  }
}

/* Contenido de texto */
.notification-content {
  flex: 1;
  min-width: 200px;
}

.notification-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffb700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.notification-message {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
}

.notification-message strong {
  color: white;
  font-weight: 600;
}

.notification-message .highlight {
  color: #ffb700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botones de acción */
.notification-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-access {
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-login {
  background: #d4a017;
  color: #1e3316;
}

.btn-login:hover {
  background: #ffbf00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
  color: var(--military-green);
}

.btn-register {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-register:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: white;
}

/* Botón cerrar */
.notification-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: rotate(90deg);
}

/* ============================================
               RESPONSIVE
               ============================================ */
@media (max-width: 768px) {
  .notification-container {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .notification-icon i {
    font-size: 1.8rem;
  }

  .notification-title {
    font-size: 0.85rem;
  }

  .notification-message {
    font-size: 0.75rem;
  }

  .btn-access {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
  }

  .notification-close {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .notification-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .notification-content {
    flex: 1;
    min-width: 100%;
    order: 2;
  }

  .notification-icon {
    order: 1;
  }

  .notification-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }

  .notification-close {
    order: 4;
  }
}

@media (max-width: 480px) {
  .notification-actions {
    width: 100%;
    justify-content: stretch;
  }

  .btn-access {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================
   PRODUCT CARDS MODERNAS - MILITAR STYLE
   ============================================ */

/* Contenedor de imagen - tamaño fijo pero imagen completa */
.product-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f5f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Imagen completa sin cortar */
  object-position: center;
  transition: transform 0.4s ease;
  padding: 8px;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

/* Badge de estado */
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-new {
  background: linear-gradient(135deg, #2d4a22, #1e3316);
  color: white;
}

.badge-excellent {
  background: linear-gradient(135deg, #2c3e50, #1a2a3a);
  color: white;
}

.badge-good {
  background: linear-gradient(135deg, #5a6b3c, #4a5a2e);
  color: white;
}

.badge-regular {
  background: linear-gradient(135deg, #8b7d5b, #7c6e4a);
  color: white;
}

.badge-used {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
}

/* Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 51, 22, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.quick-actions {
  display: flex;
  gap: 12px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.product-card:hover .quick-actions {
  transform: translateY(0);
}

.quick-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  color: #2d4a22;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-btn:hover {
  background: #d4a017;
  color: #1e3316;
  transform: scale(1.1);
}

/* Card body - interlineados reducidos */
.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-category {
  font-size: 0.65rem;
  color: var(--military-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-marca {
  font-size: 0.7rem;
  color: #6c757d;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-marca i {
  font-size: 0.65rem;
  color: #d4a017;
}

.price-section {
  margin: 4px 0;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #2d4a22;
}

.current-price.locked {
  color: #6c757d;
  font-size: 1rem;
}

.current-price.locked i {
  color: #d4a017;
}

.original-price {
  font-size: 0.7rem;
  color: #adb5bd;
  text-decoration: line-through;
  margin-left: 6px;
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #6c757d;
  margin: 2px 0;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
}

.stock-dot.low {
  background: #f39c12;
  animation: pulse 1.5s infinite;
}

.stock-dot.out {
  background: #dc3545;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Botones de acción */
.action-buttons {
  display: flex;
  gap: 6px;
  margin-top: 1px;
}

.btn-details,
.btn-cart,
.btn-whatsapp {
  padding: 6px 0;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-details {
  flex: 1.5;
  background: transparent;
  border: 1px solid #2d4a22;
  color: #2d4a22;
}

.btn-details:hover {
  background: #2d4a22;
  color: white;
}

.btn-cart {
  flex: 1.5;
  background: #d4a017;
  color: #1e3316;
  border: none;
}

.btn-cart:hover {
  background: #e6b422;
  transform: translateY(-2px);
}

.btn-whatsapp {
  flex: 1;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Grid responsive */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-image-container {
    height: 160px;
  }

  .card-body {
    padding: 8px;
    gap: 4px;
  }

  .product-title {
    font-size: 0.8rem;
  }

  .current-price {
    font-size: 1rem;
  }

  .btn-details,
  .btn-cart,
  .btn-whatsapp {
    font-size: 0.65rem;
    padding: 5px 0;
  }

  .btn-details i,
  .btn-cart i,
  .btn-whatsapp i {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    gap: 8px;
  }

  .product-image-container {
    height: 140px;
  }

  .action-buttons {
    gap: 4px;
  }

  .btn-details span,
  .btn-cart span {
    display: none;
  }

  .btn-details,
  .btn-cart,
  .btn-whatsapp {
    flex: 1;
    padding: 6px;
  }

  .btn-details i,
  .btn-cart i,
  .btn-whatsapp i {
    margin: 0;
    font-size: 0.8rem;
  }
}

/* Efecto hover de la card */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(45, 74, 34, 0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(45, 74, 34, 0.2);
}

/* ============================================
   MODAL DE PRODUCTO - ESTILO MILITAR
   ============================================ */

/* Modal principal */
.modal-dialog {
    max-width: 1100px;
    margin: 1.75rem auto;
}

.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

.modal-header {
    background: linear-gradient(135deg, #1e3316, #2d4a22);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #d4a017;
}

/* Contenedor principal del producto */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
}

/* ============================================
   GALERÍA DE IMÁGENES - IMAGEN COMPLETA
   ============================================ */
.product-gallery {
    background: #f5f3ef;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contenedor de imagen principal - adaptativo */
.main-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.main-image {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Thumbnails */
.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumbnail-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-wrapper.active {
    border-color: #d4a017;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   INFORMACIÓN DEL PRODUCTO
   ============================================ */
.product-info {
    padding: 1.5rem;
    background: white;
    border-left: 1px solid #e9ecef;
    overflow-y: auto;
    max-height: 550px;
}

/* Scroll personalizado */
.product-info::-webkit-scrollbar {
    width: 5px;
}

.product-info::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.product-info::-webkit-scrollbar-thumb {
    background: #2d4a22;
    border-radius: 3px;
}


.product-category i {
    margin-right: 0.5rem;
}


/* Sección de precio */
.product-price-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #d4a017;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d4a22;
}

.price-savings {
    background: #d4a017;
    color: #1e3316;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Login requerido */
.login-required {
    background: rgba(45, 74, 34, 0.1);
    text-align: center;
}

.price-placeholder {
    color: #2d4a22;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.price-placeholder i {
    font-size: 1.2rem;
    color: #d4a017;
}

/* Especificaciones */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.spec-item {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(45, 74, 34, 0.1);
}

.spec-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d4a22;
}

/* Estado de stock */
.status-info {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-available {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-low {
    background: rgba(243, 156, 18, 0.15);
    color: #e67e22;
}

.status-out {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Descripción */
.description-section {
    margin: 1rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d4a22;
}

.section-title i {
    margin-right: 0.5rem;
    color: #d4a017;
}

.product-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #495057;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(45, 74, 34, 0.1);
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-modal-whatsapp {
    flex: 2;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-modal-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-modal-close {
    flex: 1;
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}
.btn-modal-carrito {
    flex: 1;
    background: #d4a017;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}
.btn-modal-close:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        border-left: none;
        border-top: 1px solid #e9ecef;
        max-height: 450px;
    }
    
    .product-gallery {
        min-height: 400px;
    }
    
    .main-image-container {
        min-height: 300px;
    }
    
    .main-image {
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .product-gallery {
        padding: 1rem;
        min-height: 350px;
    }
    
    .main-image-container {
        min-height: 250px;
    }
    
    .main-image {
        max-height: 230px;
    }
    
    .thumbnail-wrapper {
        width: 55px;
        height: 55px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .current-price {
        font-size: 1.4rem;
    }
    
    .specs-grid {
        gap: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-modal-whatsapp,
    .btn-modal-close {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-gallery {
        padding: 0.75rem;
        min-height: 280px;
    }
    
    .main-image-container {
        min-height: 200px;
    }
    
    .main-image {
        max-height: 180px;
    }
    
    .thumbnail-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .gallery-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.6rem;
    }
    
    .status-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .status-item {
        justify-content: center;
    }
}

/* Animación de entrada */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.show .modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* ============================================
   SECCIÓN DE FINANCIAMIENTO - ESTILO MILITAR
   ============================================ */

.financing-section {
    background: linear-gradient(135deg, #f5f3ef 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.financing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a017, #2d4a22, #d4a017);
}

/* Contenedor de imagen */
.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.image-container:hover .main-image {
    transform: scale(1.02);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(45, 74, 34, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 3px solid #d4a017;
}

.image-badge i {
    color: #d4a017;
}

/* Elementos flotantes */
.floating-badge {
    position: absolute;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.8rem;
    animation: float 3s ease-in-out infinite;
}

.floating-badge i {
    font-size: 1rem;
}

.badge-1 {
    top: 20px;
    right: 20px;
    color: #2d4a22;
    border-right: 3px solid #d4a017;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 80px;
    left: -10px;
    color: #2d4a22;
    border-left: 3px solid #2d4a22;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Contenido */
.content-wrapper {
    padding: 0 0 0 20px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45, 74, 34, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d4a22;
}

.section-tag i {
    color: #d4a017;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}

.section-title .highlight {
    color: #2d4a22;
    position: relative;
    display: inline-block;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(212, 160, 23, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.section-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Grid de características modernas */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 74, 34, 0.1);
}

.feature-card:hover {
    transform: translateX(5px);
    border-color: rgba(45, 74, 34, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(45, 74, 34, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #d4a017;
}

.feature-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d4a22;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Caja de requisitos */
.requirements-box {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(45, 74, 34, 0.1);
}

.requirements-header {
    background: #2d4a22;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.requirements-header i {
    color: #d4a017;
}

.requirements-list {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #495057;
}

.requirement-item i {
    width: 24px;
    color: #d4a017;
    font-size: 0.9rem;
}

/* Botones CTA */
.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-financing {
    background: linear-gradient(135deg, #2d4a22, #1e3316);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-financing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 74, 34, 0.3);
    color: white;
}

.btn-outline-financing {
    background: transparent;
    color: #2d4a22;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid #2d4a22;
    cursor: pointer;
}

.btn-outline-financing:hover {
    background: #2d4a22;
    color: white;
    transform: translateY(-2px);
}

/* Trust signals */
.trust-signals {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(45, 74, 34, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #6c757d;
}

.trust-item i {
    color: #28a745;
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .requirements-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-wrapper {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .financing-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .badge-2 {
        display: none;
    }
    
    .image-badge {
        bottom: 10px;
        left: 10px;
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .floating-badge {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .badge-1 {
        top: 10px;
        right: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-financing,
    .btn-outline-financing {
        justify-content: center;
    }
    
    .trust-signals {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 10px;
    }
    
    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .feature-content h6 {
        font-size: 0.8rem;
    }
    
    .feature-content p {
        font-size: 0.7rem;
    }
}

/* ============================================
   FOOTER MILITAR - ESTILO MODERNO
   ============================================ */

.footer-military {
    background: linear-gradient(135deg, #0f1a14 0%, #1a2a1a 50%, #0f1a14 100%);
    color: #e8e8e8;
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 3px solid #d4a017;
}

/* Efecto de textura militar */
.footer-military::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' opacity='0.03'%3E%3Cpath fill='%23ffffff' d='M10,10 L20,8 L22,18 L12,20 Z M50,5 L60,3 L62,13 L52,15 Z M30,50 L40,48 L42,58 L32,60 Z M70,40 L80,38 L82,48 L72,50 Z M85,70 L95,68 L97,78 L87,80 Z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 40px;
    pointer-events: none;
}

/* ============================================
   LOGO MILITAR - RESALTA BIEN
   ============================================ */
.footer-brand {
    position: relative;
    z-index: 2;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    background: rgba(212, 160, 23, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    border-color: #d4a017;
    background: rgba(212, 160, 23, 0.15);
    transform: translateY(-2px);
}

.footer-logo {
    max-height: 80px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.logo-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #d4a017;
    border-radius: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}

.logo-wrapper:hover .logo-border {
    opacity: 0.5;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #c0c0c0;
    margin-top: 1rem;
    max-width: 90%;
}

/* ============================================
   REDES SOCIALES MILITARES
   ============================================ */
.social-military {
    margin-top: 1rem;
}

.social-title {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #d4a017;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: #d4a017;
}

.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icon.tiktok:hover {
    background: #000000;
    border-color: #00f2ea;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    border-color: transparent;
}

/* ============================================
   SECCIONES DEL FOOTER
   ============================================ */
.footer-section {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #d4a017;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 160, 23, 0.3);
}

.footer-title i {
    font-size: 0.9rem;
}

/* Enlaces generales */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    color: #c0c0c0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: #d4a017;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #d4a017;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Contacto */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #c0c0c0;
}

.footer-contact li > i {
    width: 20px;
    color: #d4a017;
    font-size: 0.9rem;
    margin-top: 1px;
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    font-size: 0.7rem;
    color: #d4a017;
    letter-spacing: 1px;
    margin-bottom: 1px;
}

.contact-info span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ============================================
   DIVISOR MILITAR
   ============================================ */
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 2rem 0 1.5rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.5), transparent);
}

.divider-icon {
    width: 35px;
    height: 35px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a017;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 160, 23, 0.3);
}

/* ============================================
   COPYRIGHT
   ============================================ */
.copyright-section {
    padding-top: 1rem;
    font-size: 0.75rem;
    color: #8a8a8a;
}

.copyright-section p {
    margin: 0;
}

.copyright-section p span {
    color: #6c757d;
}

.legal-links {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.legal-links a {
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.legal-links a:hover {
    color: #d4a017;
}

.legal-links .separator {
    color: #4a5a3a;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .footer-military {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-contact li {
        flex-wrap: wrap;
    }
    
    .legal-links {
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .footer-military {
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-description {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-title {
        justify-content: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: center;
    }
    
    .footer-contact li > i {
        margin-top: 0;
    }
    
    .contact-info strong {
        text-align: center;
    }
    
    .copyright-section {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        max-height: 60px;
    }
    
    .logo-wrapper {
        padding: 8px 15px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-title {
        font-size: 0.9rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.75rem;
    }
    
    .legal-links {
        gap: 8px;
    }
}

/* Animación sutil en hover del logo */
@keyframes logoGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.2);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(212, 160, 23, 0);
    }
}

.logo-wrapper:hover {
    animation: logoGlow 1s ease-out;
}

/* ============================================
   MODAL DE WHATSAPP - ESTILO MILITAR
   ============================================ */

.military-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    animation: modalEntrance 0.3s ease-out;
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   HEADER MILITAR
   ============================================ */
.military-modal-header {
    background: linear-gradient(135deg, #1e3316, #2d4a22);
    border: none;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.military-modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #2d4a22, #d4a017);
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #25D366;
    border: 2px solid rgba(37, 211, 102, 0.3);
}

.modal-title-wrapper {
    flex: 1;
}

.modal-title-wrapper .modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.modal-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    margin-top: 2px;
}

.military-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.military-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.military-close i {
    font-size: 1rem;
}

/* ============================================
   BODY DEL MODAL
   ============================================ */
.military-modal-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Contact info destacado */
.whatsapp-contact-info {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.05));
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.contact-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #25D366;
}

.contact-number i {
    font-size: 1.3rem;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Formulario militar */
.form-group-military {
    margin-bottom: 1.25rem;
}

.form-label-military {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d4a22;
    margin-bottom: 0.5rem;
}

.form-label-military i {
    color: #d4a017;
    font-size: 0.8rem;
}

.form-control-military {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control-military:focus {
    outline: none;
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.form-select-military {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select-military:focus {
    outline: none;
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

.form-hint {
    display: block;
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Mensaje de ayuda */
.help-message {
    background: rgba(212, 160, 23, 0.08);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 1rem;
    border-left: 3px solid #d4a017;
}

.help-message i {
    color: #d4a017;
    font-size: 1rem;
}

/* ============================================
   FOOTER DEL MODAL
   ============================================ */
.military-modal-footer {
    border: none;
    padding: 1rem 1.5rem 1.5rem;
    background: white;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-military {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-military-primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-military-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-military-secondary {
    background: #e9ecef;
    color: #6c757d;
}

.btn-military-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .military-modal-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .modal-title-wrapper .modal-title {
        font-size: 1rem;
    }
    
    .modal-subtitle {
        font-size: 0.65rem;
    }
    
    .military-modal-body {
        padding: 1rem;
    }
    
    .whatsapp-contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .military-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-military {
        justify-content: center;
        width: 100%;
    }
    
    .form-control-military,
    .form-select-military {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   ANUNCIO MILITAR
   ============================================ */
.announcement-card-military {
    background: linear-gradient(135deg, #1e3316, #2d4a22);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 23, 0.3);
}

.announcement-card-military::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #25D366, #d4a017);
}

.announcement-content-military {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.announcement-icon-military {
    width: 50px;
    height: 50px;
    background: rgba(212, 160, 23, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-icon-military i {
    font-size: 1.5rem;
    color: #d4a017;
}

.announcement-text-military {
    flex: 1;
}

.badge-military {
    display: inline-block;
    background: #d4a017;
    color: #1e3316;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.announcement-description-military {
    font-size: 1rem;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 0.25rem;
}

.announcement-message {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.announcement-message .highlight-date {
    color: #d4a017;
}

.link-pdf {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.link-pdf:hover {
    text-decoration: underline;
}

.btn-pdf-military {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-pdf-military:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   CONSULTA DE DEUDA - MILITAR
   ============================================ */
.debt-consultation-modern {
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e5df 100%);
}

.consultation-card-military {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Header */
.consultation-card-header-military {
    background: linear-gradient(135deg, #1e3316, #2d4a22);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content-military {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.header-icon-military {
    width: 55px;
    height: 55px;
    background: rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-military i {
    font-size: 1.8rem;
    color: #d4a017;
}

.header-title-military {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.25rem;
}

.header-subtitle-military {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.security-badge-military {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: white;
    position: relative;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulseGreen 1.5s infinite;
}

/* Body */
.consultation-card-body-military {
    padding: 1.5rem;
}

/* Formulario */
.form-group-military-consult {
    margin-bottom: 1.25rem;
}

.form-label-military-consult {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d4a22;
    margin-bottom: 0.5rem;
}

.form-label-military-consult i {
    color: #d4a017;
}

.input-group-military-consult {
    position: relative;
}

.input-icon-military {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #d4a017;
}

.form-input-military-consult {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input-military-consult:focus {
    outline: none;
    border-color: #d4a017;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: all 0.3s ease;
}

.form-input-military-consult:focus ~ .input-focus-line {
    width: 100%;
    left: 0;
}

/* CAPTCHA */
.captcha-container-military {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.captcha-display-military {
    background: linear-gradient(135deg, #2d4a22, #1e3316);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: #d4a017;
    margin-bottom: 1rem;
}

.captcha-controls-military {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-refresh-captcha-military {
    background: #e9ecef;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d4a22;
    transition: all 0.3s ease;
}

.btn-refresh-captcha-military:hover {
    background: #d4a017;
    color: white;
}

.captcha-input-group-military {
    flex: 1;
}

.captcha-input-wrapper {
    position: relative;
}

.captcha-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4a017;
    font-size: 0.8rem;
}

.captcha-input-military {
    width: 100%;
    padding: 0.7rem 0.7rem 0.7rem 2.2rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.captcha-input-military:focus {
    outline: none;
    border-color: #d4a017;
}

/* Botón consultar */
.form-submit-section-military {
    margin-top: 1.5rem;
}

.btn-consultar-military {
    width: 100%;
    background: linear-gradient(135deg, #2d4a22, #1e3316);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-consultar-military:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 74, 34, 0.3);
}

/* Resultados */
.consultation-results-military {
    animation: fadeInUp 0.4s ease;
}

.new-consultation-section-military {
    margin-bottom: 1rem;
}

.btn-new-consultation-military {
    background: transparent;
    border: none;
    color: #d4a017;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new-consultation-military:hover {
    gap: 0.8rem;
    color: #b8860b;
}

/* Cliente Summary */
.client-summary-military {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d4a017;
}

.client-header-military {
    display: flex;
    gap: 1rem;
}

.client-avatar-military {
    position: relative;
}

.avatar-circle-military {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2d4a22, #1e3316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle-military i {
    font-size: 2rem;
    color: #d4a017;
}

.client-status-badge-military {
    position: absolute;
    bottom: -5px;
    right: -5px;
}

.status-badge-military {
    display: inline-block;
    background: #28a745;
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}

.client-name-military {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e3316;
    margin: 0 0 0.75rem;
}

.client-details-grid-military {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.client-detail-military {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.client-detail-military i {
    width: 20px;
    color: #d4a017;
}

/* Resumen Financiero */
.financial-summary-military {
    margin-bottom: 1.5rem;
}

.summary-grid-military {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card-military {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.summary-card-military:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.summary-icon-military {
    width: 45px;
    height: 45px;
    background: rgba(45, 74, 34, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon-military i {
    font-size: 1.3rem;
    color: #2d4a22;
}

.summary-content-military {
    flex: 1;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2d4a22;
}

.summary-label {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Sección de créditos */
.loans-section-military,
.payment-history-military {
    margin-bottom: 1.5rem;
}

.section-header-military {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header-military i {
    color: #d4a017;
    font-size: 1.2rem;
}

.section-header-military h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d4a22;
    margin: 0;
}

.section-badge-military {
    background: #e9ecef;
    color: #2d4a22;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

/* Accordion de créditos */
.loans-accordion-military {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.loan-item-military {
    border-bottom: 1px solid #e9ecef;
}

.loan-item-military:last-child {
    border-bottom: none;
}

.loan-header-military {
    padding: 1rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.loan-header-military:hover {
    background: #f8f9fa;
}

.loan-header-content-military {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.loan-header-content-military i {
    color: #d4a017;
    font-size: 1.2rem;
}

.loan-body-military {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Tabla de historial */
.history-table-container-military {
    overflow-x: auto;
}

.history-table-military {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.history-table-military th {
    background: #f8f9fa;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #2d4a22;
    border-bottom: 2px solid #e9ecef;
}

.history-table-military td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

/* Botones de acción */
.action-buttons-military {
    margin-top: 1.5rem;
}

.btn-action-military {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-action-military:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-action-content-military {
    flex: 1;
    text-align: left;
}

.btn-action-title {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-action-subtitle {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Empty states */
.empty-state-military,
.empty-history-military {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGreen {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    .consultation-card-header-military {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content-military {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .client-header-military {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .client-details-grid-military {
        grid-template-columns: 1fr;
    }
    
    .summary-grid-military {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .announcement-content-military {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .summary-grid-military {
        grid-template-columns: 1fr;
    }
    
    .captcha-controls-military {
        flex-direction: column;
    }
}

/* Estilos para el modal de edición */
#editarPerfilModal .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #4a5568;
}

#editarPerfilModal .form-control,
#editarPerfilModal .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#editarPerfilModal .form-control:focus,
#editarPerfilModal .form-select:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
    outline: none;
}

.readonly-field {
    background: #f1f3f5;
    border-radius: 8px;
    padding: 0.5rem;
}

.readonly-field p {
    margin: 0;
    font-size: 0.85rem;
}

.readonly-field .small {
    font-size: 0.65rem;
}

/* Contenedor */
.ver-detalle-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #000;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Texto */
.ver-detalle-cta span {
    position: relative;
}

/* Efecto brillo sutil */
.ver-detalle-cta span::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-20deg);
}

/* Animación brillo */
.ver-detalle-cta:hover span::after {
    animation: shine 0.8s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* Mano animada */
.ver-detalle-cta i {
    font-size: 18px;
    margin-top: 2px;
    animation: bounceDown 1.2s infinite;
}

/* Movimiento hacia abajo */
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Hover general */
.ver-detalle-cta:hover {
    color: #d4a017; /* dorado elegante */
    transform: scale(1.05);
}

/* ============================================
   ESTILOS MEJORADOS PARA CRÉDITOS Y TABLAS
   ============================================ */

/* Contenedor principal de créditos */
.loans-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

/* Tarjeta de crédito individual */
.loan-card-modern {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.loan-card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Header de crédito */
.loan-header-modern {
    background: linear-gradient(135deg, #2d4a22, #1e3316);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loan-header-modern:hover {
    background: linear-gradient(135deg, #3a5a2e, #2a4a1e);
}

.loan-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.loan-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loan-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 160, 23, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loan-icon i {
    font-size: 1.3rem;
    color: #d4a017;
}

.loan-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem;
}

.loan-info small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.loan-status-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge-modern {
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-modern.active {
    background: #28a745;
    color: white;
}

.status-badge-modern.pending {
    background: #ffc107;
    color: #1e3316;
}

.status-badge-modern.completed {
    background: #17a2b8;
    color: white;
}

.status-badge-modern.mora {
    background: #dc3545;
    color: white;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-detalle-modern {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-detalle-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

/* Resumen del crédito */
.loan-summary-modern {
    background: #f8f9fa;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-grid-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-item-modern {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.summary-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2d4a22;
}

.summary-value.success {
    color: #28a745;
}

.summary-value.warning {
    color: #e67e22;
}

.progress-container-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.progress-modern {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-modern {
    height: 100%;
    background: linear-gradient(90deg, #2d4a22, #4a7c38);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: #2d4a22;
    min-width: 40px;
}

/* Cuerpo del crédito (detalles) */
.loan-body-modern {
    padding: 1.25rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

/* Grid de detalles */
.details-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-card-modern {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.detail-card-modern:hover {
    transform: translateX(5px);
    border-color: #d4a017;
}

.detail-icon-modern {
    width: 40px;
    height: 40px;
    background: rgba(45, 74, 34, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon-modern i {
    font-size: 1.1rem;
    color: #d4a017;
}

.detail-info-modern {
    flex: 1;
}

.detail-label-modern {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    display: block;
}

.detail-value-modern {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d4a22;
}

.detail-value-modern.text-danger {
    color: #dc3545;
}

/* ============================================
   TABLA DE PLAN DE PAGOS MODERNA
   ============================================ */
.payment-plan-modern {
    margin-top: 1.5rem;
}

.payment-title-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4a017;
}

.payment-title-modern i {
    color: #d4a017;
    font-size: 1.1rem;
}

.payment-title-modern h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d4a22;
    margin: 0;
}

/* Tabla moderna */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
}

.table-modern thead th {
    background: #2d4a22;
    color: white;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern thead th:first-child {
    border-radius: 10px 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 10px 0 0;
}

.table-modern tbody td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(212, 160, 23, 0.05);
}

/* Badges de estado en tabla */
.table-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.table-badge.pagado {
    background: #28a745;
    color: white;
}

.table-badge.parcial {
    background: #ffc107;
    color: #1e3316;
}

.table-badge.vencido {
    background: #dc3545;
    color: white;
    animation: pulseRed 1.5s infinite;
}

.table-badge.pendiente {
    background: #17a2b8;
    color: white;
}

/* Scroll para tabla en móvil */
.table-responsive-modern {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Empty states */
.empty-state-modern {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state-modern i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-payments-modern {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .loan-header-grid {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .loan-status-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .summary-grid-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-container-modern {
        width: 100%;
    }
    
    .details-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .table-modern {
        font-size: 0.65rem;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.5rem 0.25rem;
    }
}