:root {
  --primary-color: #7c1034;
  --primary-dark: #5a0c26;
  --primary-light: #a61e4d;
  --secondary-color: #f8f9fa;
  --accent-color: #d4af37;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #7c1034 0%, #a61e4d 100%);
  --border-color: #dee2e6;
  --success-color: #198754;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Navegación Moderna */
.navbar-quivent {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Botones Principales */
.btn-quivent {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-quivent:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-quivent {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-quivent:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(124, 16, 52, 0.9), rgba(124, 16, 52, 0.7)), url('../img/fondo.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(124, 16, 52, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

  .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
  }

  /* Botones específicos para el Hero Section - Colores menos iluminosos */
  .hero-section .btn-quivent {
    background: #d4af37 !important;
    border: 2px solid #d4af37 !important;
    color: #2c0611 !important;
    font-weight: 800;
    text-shadow: none;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  }

  .hero-section .btn-quivent:hover {
    background: #b8960f !important;
    border-color: #b8960f !important;
    color: #2c0611 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(184, 150, 15, 0.4);
  }

  .hero-section .btn-outline-quivent {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #ffffff !important;
    color: var(--primary-color) !important;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  }

  .hero-section .btn-outline-quivent:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
  }

  /* Características del Hero Section */
  .hero-section .text-white {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-section .text-white .bi-check-circle-fill,
  .hero-section .text-white .bi-shield-check,
  .hero-section .text-white .bi-phone {
    color: #d4af37 !important;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.7));
  }

  .hero-section .text-white span {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .hero-stats {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-lg);
}

/* Cards y Secciones */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card-quivent {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card-quivent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--bg-gradient);
  transform: scaleY(0);
  transition: var(--transition);
}

.card-quivent:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card-quivent:hover::before {
  transform: scaleY(1);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  background: var(--bg-gradient);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-light);
  box-shadow: var(--shadow-md);
  position: relative;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--bg-gradient);
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.3;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Estadísticas */
.stats-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stats-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Precios */
.pricing-section {
  background: linear-gradient(135deg, #2c0611, #7c1034);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 6, 17, 0.9), rgba(124, 16, 52, 0.8));
  z-index: 1;
}

.pricing-section .container {
  position: relative;
  z-index: 2;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.pricing-card.featured {
  background: linear-gradient(135deg, #ffd700, #f0c040);
  border: 2px solid #ffd700;
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  z-index: 2;
}

/* Banda "PRÓXIMAMENTE" estilo River Plate */
.coming-soon-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
  padding: 0.5rem 2rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  z-index: 3;
  border: 2px solid white;
}

.coming-soon-badge::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #dc3545, #c82333);
  z-index: -1;
  border-radius: 2px;
}

/* Carta con "próximamente" */
.pricing-card.coming-soon {
  position: relative;
  overflow: hidden;
  opacity: 0.85;
}

.pricing-card.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(220, 53, 69, 0.05) 10px,
    rgba(220, 53, 69, 0.05) 20px
  );
  z-index: 1;
  pointer-events: none;
}

.pricing-card.coming-soon .text-center {
  position: relative;
  z-index: 2;
}

.pricing-card.coming-soon .btn[disabled] {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.pricing-card.featured .pricing-price {
  color: #2c0611 !important;
  font-weight: 900;
}

.pricing-card.featured .pricing-period {
  color: #5a0c26 !important;
}

.pricing-card.featured .pricing-features li {
  color: #2c0611 !important;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-primary);
}

.pricing-features li i {
  color: var(--success-color);
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Section Titles en secciones con fondo oscuro */
.pricing-section .section-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stats numbers - Mejorado contraste */
.stats-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stats-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero stats - Mejorado contraste */
.hero-stats .stats-number {
  color: var(--primary-color);
  font-weight: 900;
  text-shadow: none;
}

.hero-stats .stats-label {
  color: var(--text-primary);
}

/* Botones con mejor contraste */
.btn-quivent {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(124, 16, 52, 0.3);
}

.btn-quivent:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(124, 16, 52, 0.4);
}

.btn-outline-quivent {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  font-weight: 700;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn-outline-quivent:hover {
  background: var(--primary-color);
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Cards con mejor contraste */
.card-quivent {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-quivent:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Contact cards - Mejorado contraste */
.contact-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.email-icon {
  background: linear-gradient(135deg, #4285f4, #1a73e8);
}

.location-icon {
  background: linear-gradient(135deg, #ea4335, #d33b2c);
}

/* Footer */
.footer-quivent {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-quivent h5 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-quivent a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-quivent a:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

/* FAQ Accordion */
.accordion-item {
  border: 1px solid rgba(124, 16, 52, 0.1);
  border-radius: var(--border-radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: white;
  color: var(--text-primary);
  font-weight: 600;
  padding: 1.5rem;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(124, 16, 52, 0.25);
  border-color: var(--primary-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

.accordion-body {
  padding: 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid rgba(124, 16, 52, 0.1);
}

.accordion-body ul {
  margin-bottom: 1rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.accordion-body strong {
  color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--bg-gradient);
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mejoras adicionales */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--bg-gradient);
  border-radius: 2px;
}

/* Mejora de badges */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
}

/* Mejora de botones warning para la card featured */
.btn-warning {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-primary);
  font-weight: 700;
}

.btn-warning:hover {
  background: #b8860b;
  border-color: #b8860b;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ==========================================
   ESTILOS INTERACTIVOS AVANZADOS
   ========================================== */

/* Efectos de partículas en Hero */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Mini-Juego Interactivo de Mesas */
.interactive-demo-container {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.demo-salon {
  position: relative;
  width: 100%;
  height: 350px;
  background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
              linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
              linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: var(--border-radius);
  border: 3px solid var(--primary-color);
  margin-bottom: 2rem;
  user-select: none;
}

/* Mesa Principal (Novios) */
.main-table {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.main-table-top {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-icons {
  display: flex;
  gap: 10px;
  font-size: 1.5rem;
}

.bride, .groom {
  animation: float 3s ease-in-out infinite alternate;
}

.groom {
  animation-delay: 0.5s;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.main-table-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--primary-color);
}

/* Mesas de Invitados */
.demo-table {
  position: absolute;
  width: 80px;
  height: 80px;
  cursor: move;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  z-index: 3;
}

.demo-table:hover {
  transform: scale(1.05);
}

.demo-table.being-dragged {
  transform: scale(1.15) rotateZ(5deg);
  box-shadow: 0 15px 35px rgba(124, 16, 52, 0.4);
  z-index: 10;
  cursor: grabbing;
}

.guest-table-top {
  width: 60px;
  height: 60px;
  background: var(--bg-gradient);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: var(--shadow-md);
  border: 2px solid white;
}

/* Todas las mesas ahora son arrastrables */
.draggable-table {
  cursor: move;
}

.draggable-table:hover {
  transform: scale(1.05);
}

.table-seats {
  position: absolute;
  width: 100%;
  height: 100%;
}

.seat {
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  box-shadow: var(--shadow-sm);
  border: 1px solid white;
}

.seat:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.seat:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); }
.seat:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.seat:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); }
.seat:nth-child(5) { top: 20%; right: 20%; }
.seat:nth-child(6) { bottom: 20%; left: 20%; }

.table-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.demo-instructions {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.demo-features {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.feature-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  opacity: 0.6;
}

.feature-point.active {
  opacity: 1;
  background: rgba(124, 16, 52, 0.1);
  color: var(--primary-color);
  transform: scale(1.05);
}

.feature-point i {
  font-size: 1.5rem;
}

/* Galería de Plantillas */
.template-gallery-container {
  padding: 2rem 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-header h3 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.template-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.template-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.template-mockup {
  width: 100%;
  height: 100%;
  background: white;
  position: relative;
  transform: scale(0.8);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 20px auto;
}

.mockup-header {
  height: 40px;
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.mockup-body {
  padding: 1rem;
  height: 120px;
}

.mockup-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mockup-text {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.mockup-text.short {
  width: 60%;
}

.mockup-footer {
  height: 30px;
  width: 100%;
  border-radius: 0 0 8px 8px;
}

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(124, 16, 52, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.template-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.template-info {
  padding: 1.5rem;
}

.template-info h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.template-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.template-colors {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.template-preview-text {
  color: var(--text-muted);
  font-style: italic;
}

.gallery-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.customization-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  background: rgba(124, 16, 52, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
}

/* Efectos de Typing */
.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Mejoras en Cards 3D */
.card-quivent {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-quivent:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(2deg);
}

/* Navbar scrolled - Fondo bordo con elementos contrastados */
.navbar-quivent.scrolled {
  background: rgba(124, 16, 52, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(124, 16, 52, 0.4);
}

.navbar-quivent.scrolled .navbar-brand,
.navbar-quivent.scrolled .nav-link {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-quivent.scrolled .navbar-brand:hover,
.navbar-quivent.scrolled .nav-link:hover {
  color: #d4af37 !important;
}

.navbar-quivent.scrolled .btn-outline-quivent {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.navbar-quivent.scrolled .btn-outline-quivent:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.navbar-quivent.scrolled .btn-quivent {
  background: #d4af37 !important;
  border: 2px solid #d4af37 !important;
  color: #2c0611 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.navbar-quivent.scrolled .btn-quivent:hover {
  background: #b8960f !important;
  border-color: #b8960f !important;
  color: #2c0611 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 150, 15, 0.4);
}

/* Dropdown del navbar */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  color: var(--text-primary);
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(124, 16, 52, 0.1);
  color: var(--primary-color);
}

.dropdown-item i {
  margin-right: 0.5rem;
  width: 16px;
}

/* Navbar scrolled dropdown */
.navbar-quivent.scrolled .dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(124, 16, 52, 0.2);
}

.navbar-quivent.scrolled .dropdown-item {
  color: var(--primary-color);
}

.navbar-quivent.scrolled .dropdown-item:hover {
  background: rgba(124, 16, 52, 0.1);
  color: var(--primary-color);
}

/* Animaciones de entrada mejoradas */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Efectos hover mejorados para botones */
.btn-quivent,
.btn-outline-quivent {
  position: relative;
  overflow: hidden;
}

.btn-quivent::before,
.btn-outline-quivent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-quivent:hover::before,
.btn-outline-quivent:hover::before {
  left: 100%;
}

/* ==========================================
   MODAL DE PLANTILLAS
   ========================================== */

.template-modal {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.template-modal .modal-header {
  border: none;
  padding: 1.5rem 2rem;
}

.template-modal .modal-title {
  font-weight: 700;
  font-size: 1.3rem;
}

.template-preview-full {
  height: 500px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}

.invitation-card {
  width: 100%;
  max-width: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: slideInUp 0.6s ease-out;
}

.invitation-header {
  padding: 1.5rem;
  text-align: center;
}

.invitation-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.invitation-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.invitation-body {
  padding: 1.5rem;
  background: white;
}

.invitation-section {
  margin-bottom: 1.5rem;
}

.invitation-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invitation-section p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.invitation-message {
  font-style: italic;
  color: var(--text-secondary);
}

.invitation-footer {
  padding: 1rem 1.5rem;
  text-align: center;
}

.invitation-footer p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.template-info-panel {
  padding: 2rem;
  height: 500px;
  overflow-y: auto;
  background: var(--bg-light);
}

.template-info-panel h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.template-info-panel h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.color-customization {
  margin-bottom: 2rem;
}

.color-palette {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.color-option span {
  font-weight: 500;
  color: var(--text-secondary);
}

.customization-features {
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list i {
  font-size: 1rem;
}

.template-actions {
  margin-top: auto;
}

.template-actions .btn {
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
}

/* Efectos de hover para plantillas */
.template-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-card .template-overlay {
  transition: all 0.3s ease;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-overlay {
  background: rgba(124, 16, 52, 0.9);
  backdrop-filter: blur(5px);
}

.template-overlay i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive para modal */
@media (max-width: 768px) {
  .template-modal .modal-dialog {
    margin: 1rem;
    max-width: none;
  }
  
  .template-preview-full {
    height: 400px;
    padding: 1rem;
  }
  
  .invitation-card {
    max-width: 250px;
  }
  
  .template-info-panel {
    height: auto;
    padding: 1.5rem;
  }
  
  .invitation-header {
    padding: 1rem;
  }
  
  .invitation-body {
    padding: 1rem;
  }
  
  .invitation-title {
    font-size: 1.3rem;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .card-quivent,
  .contact-card,
  .stats-card {
    margin-bottom: 2rem;
  }
  
  .btn-quivent,
  .btn-outline-quivent {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Demo interactivo para tablets */
  .interactive-demo-container {
    padding: 2rem;
  }
  
  .demo-salon {
    height: 320px;
  }
  
  .main-table {
    width: 90px;
    height: 90px;
  }
  
  .main-table-top {
    width: 70px;
    height: 70px;
  }
  
  .demo-table {
    width: 70px;
    height: 70px;
  }
  
  .guest-table-top {
    width: 50px;
    height: 50px;
  }
  
  .demo-instructions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    margin: 0;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-stats {
    padding: 1.5rem;
  }
  
  /* Responsive para mini-juego interactivo */
  .interactive-demo-container {
    padding: 1.5rem;
  }
  
  .demo-salon {
    height: 280px;
    position: relative;
    overflow: visible;
  }
  
  .main-table {
    width: 70px;
    height: 70px;
  }
  
  .main-table-top {
    width: 50px;
    height: 50px;
    top: 10px;
    left: 10px;
  }
  
  .couple-icons {
    font-size: 0.9rem;
    gap: 3px;
  }
  
  .demo-table {
    width: 50px;
    height: 50px;
  }
  
  .guest-table-top {
    width: 30px;
    height: 30px;
    top: 10px;
    left: 10px;
  }
  
  .seat {
    width: 6px;
    height: 6px;
  }
  
  .table-number {
    font-size: 0.6rem;
    bottom: -18px;
  }
  
  .main-table-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    bottom: -20px;
  }
  
  .demo-instructions {
    position: static;
    font-size: 0.75rem;
    padding: 0.75rem;
    margin: 1rem 0;
    text-align: center;
    transform: none;
    left: auto;
    bottom: auto;
    width: 100%;
    background: rgba(124, 16, 52, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    animation: none;
  }
  
  .demo-features {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .feature-point {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .feature-point i {
    font-size: 1rem;
    margin-right: 0.5rem;
    min-width: 20px;
  }
  
  .demo-controls {
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .demo-controls .btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    flex: 1;
    min-width: 100px;
  }
  
  /* Responsive para galería de plantillas */
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .template-card {
    margin-bottom: 1rem;
  }
  
  .gallery-header h3 {
    font-size: 1.5rem;
  }
  
  /* Navbar dropdown responsive */
  .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
    transition: var(--transition);
  }
  
  .dropdown-item:hover {
    background: rgba(124, 16, 52, 0.1);
    color: var(--primary-color);
  }
  
  .card-quivent {
    padding: 1.5rem;
  }
  
  .pricing-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }

  /* Mejoras adicionales para móvil */
  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(124, 16, 52, 0.1);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  .hero-content .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  .pricing-card .pricing-price {
    font-size: 2.5rem;
  }

  .popular-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
  
  .coming-soon-badge {
    top: 15px;
    right: -25px;
    padding: 0.4rem 1.5rem;
    font-size: 0.6rem;
  }

  .accordion-button {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .accordion-body {
    padding: 1rem;
  }

  .contact-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }

  .footer-quivent {
    text-align: center;
  }

  .footer-quivent .col-lg-2,
  .footer-quivent .col-lg-4 {
    margin-bottom: 2rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }
} 