/* Reseteo general */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fdfdfd;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 1. Header & Navegación */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.brand-blue { color: #003366; }
.brand-red { color: #a80000; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.search-icon {
  font-size: 16px;
  cursor: pointer;
}

/* Dropdown Navegación */
.nav-links .dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  border-top: 3px solid #d4af37;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-content a {
  color: #1a1a1a !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #8a0000;
  color: #ffffff !important;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===================================================================
   2. Hero Banner (Escritorio - Tu código base con un par de ajustes)
   =================================================================== */
.hero-banner {
  width: 100%;
  min-height: 450px;
  background: url('imagenes/rabie-banner-navidad.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;





  
}

.hero-container {
  margin-left: auto;
  margin-top: auto;
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-text-content {
  width: 50%; 
  text-align: left;
  padding-top: 0; /* Quita el padding de 300px fijo para que use el flexbox */
  padding-left: 10px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-primary {
  display: inline-block;
  background-color: #d4af37;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  padding: 14px 28px;
  border-radius: 25px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:hover {
  background-color: #f1c40f;
  transform: translateY(-2px);
}


/* ==========================================
   Ajustes Responsivos para Celulares y Tablets
   ========================================== */

/* Tablets y pantallas medianas (menos de 992px) */
@media (max-width: 992px) {
  .hero-banner {
    min-height: 350px;
    background-position: center center;
  }

  .hero-text-content {
    width: 46%;
  }
}

/* Dispositivos móviles (menos de 768px) */
@media (max-width: 768px) {
  .hero-banner {
    /* Mantiene la proporción de la imagen visible sin recortar los lados */
    background-size: contain; 
    background-position: top center;
    min-height: auto;
    /* Ajusta el alto proporcional según el aspecto de tu banner (ej. relación 16:9 o alto de la imagen) */
    aspect-ratio: 16 / 9; 
    padding: 15px;
  }

  .hero-container {
    justify-content: center; /* Centra el contenido si la imagen es estrecha */
  }

  .hero-text-content {
    width: 100%;
    text-align: center;
    padding-top: 0;
    padding-left: 0;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .btn-primary {
    font-size: 11px;
    padding: 10px 18px;
  }
}

/* Pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .hero-banner {
    aspect-ratio: 4 / 3; /* Da un poco más de alto si el texto queda muy apretado */
  }

  .btn-primary {
    font-size: 10px;
    padding: 8px 14px;
    border-radius: 15px;
  }
}

/* 3. Beneficios */
.benefits-bar {
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  flex-wrap: wrap;
  gap: 15px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #555;
}

.benefit-item .icon {
  font-size: 22px;
}

/* 4. Sección Productos */
.products-section {
  padding: 50px 20px;
  text-align: center;
}

.products-section h2 {
  color: #003366;
  font-size: 20px;
  letter-spacing: 1px;
}
.products-section h1 {
  color: #003366;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-transform: uppercase;
}


.divider {
  width: 50px;
  height: 2px;
  background-color: #d4af37;
  margin: 10px auto 30px auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas arriba y 3 abajo */
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-card {
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.product-card.card-highlight {
  border: 2px solid #2e7d32;
  background-color: #f7fbf7;
}

.product-card .image-box {
  position: relative;
  overflow: hidden;
}

.product-card .image-box img {
  width: 100%;
  height: 340px; /* Más alta para aprovechar el ancho de 3 columnas */
  object-fit: contain;
  background-color: #8b0000;
  display: block;
}

.badge-no-alcohol {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #2e7d32;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
  letter-spacing: 0.5px;
}

.product-card h3 {
  font-size: 20px; /* Agrandado de 14px */
  color: #222;
  margin: 16px 12px 6px 12px;
}

.price {
  font-size: 22px; /* Agrandado de 13px */
  font-weight: 800;
  color: #003366;
  margin: 6px 0 14px 0;
}

.price .tax {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  vertical-align: super;
}

.btn-card {
  display: inline-block;
  text-decoration: none;
  background-color: #a80000;
  color: #fff;
  border: none;
  padding: 12px 16px; /* Botón más cómodo y grande */
  font-size: 13px; /* Agrandado de 10px */
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 85%;
  margin: 0 auto;
  transition: background-color 0.2s ease;
}

.btn-card:hover {
  background-color: #800000;
}

/* Responsivo para tablet y celular */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card .image-box img {
    height: 280px;
  }
}

/* 5. Cotización y Formulario */
.quote-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pdf-box {
  flex: 1;
  background-color: #8a0000;
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.pdf-icon { font-size: 32px; margin-bottom: 10px; }
.pdf-box h3 { font-size: 18px; margin-bottom: 10px; }
.pdf-box p { font-size: 13px; margin-bottom: 20px; opacity: 0.9; }

/* Ajustes para bloques con imagen de cotización directas */
.pdf-box.custom-boxes {
  text-align: center;
  padding: 1px; /* Aprovecha el espacio interior del fondo rojo */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.custom-box-img-container {
  width: 100%;
  max-width: 100%;
  margin: 0 0 15px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.custom-box-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.pdf-box.custom-boxes .btn-download {
  width: 100%;
  max-width: 320px;
  margin-top: 5px;
}


.btn-email-custom {
  display: block;
  width: 100%;
  margin-top: 15px;
  background-color: #8a0000;
  color: #ffffff !important;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-email-custom:hover {
  background-color: #003366;
  transform: translateY(-2px);
}

.btn-download {
  display: inline-block;
  background-color: #d4af37;
  color: #1a1a1a;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 11px;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

.btn-download:hover {
  background-color: #f1c40f;
}

.form-box {
  flex: 2;
  background-color: #f7f7f7;
  padding: 40px;
}

.form-box h3 { font-size: 16px; color: #003366; }
.form-subtext { font-size: 12px; color: #777; margin-bottom: 20px; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  background-color: #fff;
  color: #333;
  width: 100%;
}

.quote-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 28px;
}

.quote-form textarea {
  grid-column: span 2;
  font-family: inherit;
  resize: vertical;
}

.quote-form select:focus,
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #003366;
}

.input-selected-product {
  grid-column: span 2;
  background-color: #eef4f8;
  border: 1px solid #b8d4e6;
  color: #003366;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
}

.btn-submit {
  grid-column: span 2;
  background-color: #8a0000;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

/* 6. Sección Marcas */
.brands-section {
  background: linear-gradient(180deg, #8a0000 0%, #5a0000 100%);
  padding: 50px 20px;
  text-align: center;
  color: #ffffff;
}

.brands-section h2 {
  font-size: 24px;
  letter-spacing: 1px;
}

.divider-gold {
  width: 60px;
  height: 2px;
  background-color: #d4af37;
  margin: 10px auto 15px auto;
}

.brands-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.brand-card img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  display: block;
}

/* 7. Presentación Logística */
.about-logistics-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.logistics-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-logistics-section h2 {
  color: #003366;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-transform: uppercase;
}

.logistics-text {
  font-size: 20px;
  color: #444444;
  line-height: 1.7;
  margin-top: 20px;
}

.logistics-text p {
  margin-bottom: 14px;
}

.highlight-text {
  background-color: #ffffff;
  border-left: 4px solid #d4af37;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  color: #222222;
}

.partner-text {
  font-size: 15px;
  font-weight: bold;
  color: #8a0000;
  margin-top: 20px;
}

/* 8. Detalles de Producto */
.product-detail-section {
  padding: 50px 20px;
  background-color: #fff;
}

.detail-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.detail-image-box {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.detail-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-info-box {
  flex: 1.2;
}

.back-link {
  display: inline-block;
  color: #003366;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.detail-info-box h1 {
  color: #8a0000;
  font-size: 32px;
  margin-bottom: 10px;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: #003366;
  margin-bottom: 15px;
}

.detail-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.5;
}

.detail-info-box h3 {
  font-size: 16px;
  color: #222;
  margin-bottom: 12px;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 5px;
}

.product-list {
  list-style: none;
  padding: 0;
}

.product-list li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #444;
}

.product-list li::before {
  content: "✔ ";
  color: #2e7d32;
  font-weight: bold;
}

.product-list li.gift-item {
  background-color: #fff8e1;
  border: 1px dashed #d4af37;
  color: #8a0000;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 6px;
  margin: 6px 0;
}

.product-list li.gift-item::before {
  content: "🎁 ";
}

/* 9. Footer & Elementos Flotantes */
.main-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding-top: 40px;
  font-size: 13px;
  border-top: 3px solid #d4af37;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-brand p {
  line-height: 1.5;
  opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
  color: #d4af37;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-guarantees {
  display: flex;
  justify-content: space-around;
  padding: 25px 40px;
  background-color: #fff;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom {
  background-color: #111111;
  padding: 15px 20px;
  border-top: 1px solid #2a2a2a;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.7;
}

.site-version {
  font-weight: bold;
  background-color: #2b2b2b;
  padding: 2px 8px;
  border-radius: 4px;
  color: #d4af37;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00b943;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
}

/* UI Extra / Utilidades */
.countdown-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.gold-glow {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   MEDIA QUERIES (ADAPTACIÓN COMPLETA PARA SMARTPHONES Y TABLETS)
   ========================================================================== */

@media (max-width: 992px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  /* Header y Menú */
  .navbar {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .logo-img {
    height: 35px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* Hero Banner */
  .hero-banner {
    min-height: 300px;
    padding: 30px 15px;
  }

  .hero-container {
    justify-content: center;
  }
/*
  .hero-text-content {
    width: 100%;
    text-align: center;
    padding-top: 0;
    padding-left: 0;
  }

  .hero-subtitle {
    font-size: 16px;
  }
*/
  /* Beneficios & Garantías */
  .benefits-bar,
  .footer-guarantees {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  /* Grilla de productos (2 columnas en móviles medianos) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Cotizador & Formulario */
  .quote-container {
    flex-direction: column;
    margin: 20px 10px;
  }

  .pdf-box, .form-box {
    padding: 25px 20px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-form textarea,
  .btn-submit,
  .input-selected-product {
    grid-column: span 1;
  }

  /* Detalle del producto */
  .detail-container {
    flex-direction: column;
    gap: 20px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  /* Grilla de productos en móviles pequeños (1 columna) */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .brand-card {
    height: 60px;
    border-radius: 12px;
  }

  .about-logistics-section {
    padding: 35px 15px;
  }

  .about-logistics-section h2 {
    font-size: 17px;
  }

  .logistics-text {
    font-size: 13px;
  }
}

/* Estilos del Modal */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.6); 
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto; 
  padding: 25px;
  border-radius: 8px;
  max-width: 550px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


/* Fondo oscuro translúcido */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 15px;
  box-sizing: border-box;
}

/* Contenedor del Modal */
.modal-container {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: modalFadeIn 0.3s ease-out;
}

/* Imagen dentro del Modal */
.modal-imagen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Botón de cierre (✕) */
.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  color: #333333;
  border: 2px solid #d4af37; /* Detalle dorado */
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.1);
}

/* Animación de entrada */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ------------------------------------------- */
        /* Banner de Cookies Flotante al ingresar      */
        /* ------------------------------------------- */
        .cookie-banner {
            position: fixed; /* Fijo en la pantalla */
            bottom: 20px;     /* Distancia desde abajo */
            right: 20px;      /* Ubicado a la derecha como botón de WhatsApp */
            width: calc(100% - 40px);
            max-width: 420px; /* Tamaño tipo tarjeta/widget */
            background-color: #1c1c1c;
            color: #ffffff;
            padding: 1.25rem 1.5rem;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            z-index: 999999;  /* Por encima de todo el sitio */
            font-size: 0.95rem;
            line-height: 1.5;
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .cookie-banner p {
            margin: 0;
        }

        .cookie-banner a {
            color: #ffc107;
            text-decoration: underline;
        }

        .cookie-banner button {
            background-color: #b71c1c;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.95rem;
            width: 100%;
            transition: background-color 0.2s ease;
/*
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.95rem;
            flex: 1; // Distribuye el espacio equitativamente 
            transition: background-color 0.2s ease;
*/
        }

        .cookie-banner button:hover {
            background-color: #d32f2f;
        }

        /* Ocultar banner cuando se acepta */
        .cookie-banner.hidden {
            display: none !important;
        }
        .cookie-banner .cookie-buttons {
            display: flex;
            gap: 0.5rem;
            width: 100%;
        }

      

        /* Botón Aceptar */
        .cookie-banner .btn-accept {
            background-color: #b71c1c;
            color: white;
        }

        .cookie-banner .btn-accept:hover {
            background-color: #d32f2f;
        }

        /* Botón Rechazar */
        .cookie-banner .btn-reject {
            background-color: #444444;
            color: #ffffff;
        }

        .cookie-banner .btn-reject:hover {
            background-color: #555555;
        }

        /* Ajustes para pantallas pequeñas */
        @media (max-width: 480px) {
            .cookie-banner {
                bottom: 15px;
                right: 15px;
                left: 15px;
                width: auto;
            }
        }



/**?* Estilos para el grupo de checkboxes en el formulario */
.form-checkbox-group {
  grid-column: 1 / -1; /* <-- ESTA ES LA CLAVE: hace que ocupe de pared a pared */
  width: 100%;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #444;
  cursor: pointer;
  width: 100%; /* Fuerza a las etiquetas a usar todo el ancho */
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label a {
  color: #0056b3;
  text-decoration: underline;
}

.req-tag {
  color: #d9534f;
  font-size: 12px;
}

.opt-tag {
  color: #777;
  font-size: 12px;
}

/* ==========================================================================
   ESTILOS DE VALIDACIÓN PARA INPUT DE RUT
   ========================================================================== */
.quote-form input[name="rut"].valido {
  border-color: #2e7d32 !important;
  background-color: #f1f8e9 !important;
}

.quote-form input[name="rut"].invalido {
  border-color: #c62828 !important;
  background-color: #ffebee !important;
}