/* ----------------------------------------------------------------
	LOADER
-----------------------------------------------------------------*/
/* Contenedor principal con fondo Rojo Corporativo */
.loader-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: #d32f2f !important; /* Rojo DELTA (puedes ajustar el código hexadecimal exacto si tienes otro) */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Barra de progreso superior integrada (Ahora blanca para contrastar) */
.progress-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}
.progress-line {
    height: 100%;
    width: 0%;
    background-color: #ffffff; /* Blanca para resaltar sobre el fondo rojo */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}
.progress-loading {
    animation: fakeProgress 3s ease-out forwards;
}

@keyframes fakeProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 90%; }
}

/* Contenido centralizado */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Contenedor del Logo */
.logo-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La magia del giro + Filtro de color Blanco */
.spinning-logo {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1); /* Truco CSS: Vuelve el logo completamente blanco */
    animation: smoothRotation 2s infinite linear;
}

@keyframes smoothRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Texto inferior del Loader (Ahora en blanco) */
.loader-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: #ffffff; /* Blanco para máxima legibilidad */
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Clase de JS para desvanecer el loader */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Configuración General del Catálogo */
.catalogo-contenedor {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f7f9;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.encabezado-catalogo {
  text-align: center;
  margin-bottom: 50px;
}

.encabezado-catalogo h2 {
  color: #11222d;
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
}

.encabezado-catalogo p {
  color: #627d98;
  font-size: 16px;
  margin: 0;
}

/* Rejilla de Tarjetas (Responsiva) */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Estilo de la Tarjeta Individual */
.tarjeta-producto {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e4e7eb;
}

.tarjeta-producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Etiquetas superiores (Badges) */
.badge-status {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-status.certificado { background-color: #005ea6; color: #ffffff; }
.badge-status.destacado { background-color: #26d0b5; color: #050b24; }

/* Contenedor de Imagen */
.imagen-contenedor {
  background-color: #ffffff;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid #f0f2f5;
}

.producto-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Cuerpo de la Tarjeta */
.contenido-tarjeta {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.categoria-tag {
  font-size: 11px;
  font-weight: 700;
  color: #cc0000; /* Rojo Delta / Acento comercial */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.producto-titulo {
  font-size: 20px;
  color: #11222d;
  margin: 0 0 12px 0;
  font-weight: 600;
  line-height: 1.3;
}

.producto-descripcion {
  font-size: 14px;
  color: #486581;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1; /* Empuja las especificaciones y el botón hacia abajo de forma simétrica */
}

/* Tabla interna de datos técnicos rápidos */
.especificaciones-rapidas {
  background-color: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #486581;
  margin-bottom: 20px;
  border: 1px solid #e4e7eb;
}

/* Área de Botones */
.accion-tarjeta {
  margin-top: auto;
}

.btn-tarjeta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-tarjeta.primario {
  background-color: #d32f2f;
  color: #ffffff;
}

.btn-tarjeta.primario:hover {
  background-color: #1b3547;
}

.btn-tarjeta.destacado-btn {
  background-color: #26d0b5;
  color: #050b24;
}

.btn-tarjeta.destacado-btn:hover {
  background-color: #1ec2a7;
}

/* Ajustes pantallas pequeñas */
@media (max-width: 480px) {
  .grid-productos {
    grid-template-columns: 1fr;
  }
}




/* 1. ASADORES Estructura General y Contenedores */
.catalogo-asadores {
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
  background-color: #f8fafc;
  padding: 60px 20px;
  max-width: 1340px;
  margin: 0 auto;
  box-sizing: border-box;
}

.encabezado-asadores {
  text-align: center;
  margin-bottom: 45px;
}

.tag-rojo {
  background-color: #cc0000;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.encabezado-asadores h2 {
  color: #11222d;
  font-size: 34px;
  margin: 0 0 6px 0;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.subtitulo-ficha {
  color: #64748b;
  font-size: 14px;
  margin-top: 0;
}

.caracteristicas-generales {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-size: 13px;
  color: #334155;
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* 2. Rejilla y Estructura de Tarjetas */
.grid-asadores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 30px;
}

.tarjeta-asador {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarjeta-asador:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* 3. Contenedores de Imagen */
.imagen-asador-box {
  background-color: #FFFFFF;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.img-asador {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  
}

.compatibilidad-tag {
  position: absolute;
  bottom: 10px;
  font-size: 10px;
  color: #cc0000;
  font-weight: bold;
  background-color: rgba(204, 0, 0, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* 4. Textos Técnicos */
.info-asador {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.meta-modelo {
  margin-bottom: 15px;
  border-bottom: 2px solid #cc0000;
  padding-bottom: 6px;
}

.sku-modelo {
  font-size: 19px;
  font-weight: bold;
  color: #0f172a;
}

.datos-tecnicos {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
}

.datos-tecnicos li {
  margin-bottom: 8px;
}


/* 6. Botones de Acción */
.btn-cotizar {
  background-color: #1e293b;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  padding: 12px;
  font-size: 13.5px;
  font-weight: bold;
  border-radius: 6px;
  margin-top: auto;
  transition: background-color 0.2s ease;
}

.btn-cotizar:hover {
  background-color: #0f172a;
}

/* 7. Responsividad en Celulares */
@media (max-width: 600px) {
  .grid-asadores { grid-template-columns: 1fr; }
  .caracteristicas-generales { flex-direction: column; gap: 12px; text-align: center; }
  .encabezado-asadores h2 { font-size: 26px; }
}
/* Estilos del Fondo Oscuro del Modal */
.modal-fondo {
  display: none; /* Se mantiene oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6); /* Fondo traslúcido oscuro */
  backdrop-filter: blur(4px); /* Efecto difuminado premium */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Caja del Formulario */
.modal-contenido {
  background-color: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: deslizarEntrada 0.3s ease-out;
}

@keyframes deslizarEntrada {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Botón de Cerrar (X) */
.btn-cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
}
.btn-cerrar-modal:hover { color: #0f172a; }

/* Textos del Modal */
.modal-encabezado h3 {
  font-size: 22px;
  color: #0f172a;
  margin: 0 0 6px 0;
  font-weight: 700;
}
.modal-encabezado p {
  font-size: 13.5px;
  color: #475569;
  margin: 0 0 25px 0;
}
.resaltado-modelo {
  color: #cc0000;
  font-weight: bold;
}

/* Campos de Captura */
.grupo-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  text-align: left;
}
.grupo-campo label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
}
.grupo-campo input, .grupo-campo select, .grupo-campo textarea {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.grupo-campo input:focus, .grupo-campo select:focus, .grupo-campo textarea:focus {
  border-color: #1e293b;
}

/* Botón de Enviar */
.btn-enviar-formulario {
  width: 100%;
  background-color: #cc0000; /* Rojo Delta corporativo */
  color: white;
  border: none;
  padding: 13px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}
.btn-enviar-formulario:hover { background-color: #a30000; }

/* Nuevo contenedor para agrupar los 3 botones al fondo de la tarjeta */
.contenedor-acciones-triple {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto; /* Empuja todo el bloque de botones al final para mantener simetría */
}

/* Base general de diseño para los tres botones */
.btn-accion {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  font-family: inherit;
  display: inline-block;
}

.btn-accion:active {
  transform: scale(0.98);
}

/* 1. Estilo para el botón de WhatsApp */
.btn-whats {
  background-color: #25d366; /* Verde oficial WhatsApp */
  color: #ffffff;
}
.btn-whats:hover {
  background-color: #1ebd59;
}

/* 2. Estilo para el botón del Formulario Flotante */
.btn-formulario {
  background-color: #cc0000; /* Rojo Corporativo Delta */
  color: #ffffff;
}
.btn-formulario:hover {
  background-color: #a30000;
}

/* 3. Estilo para el botón de la Ficha Técnica */
.btn-ficha {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.btn-ficha:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}


/* --- Recuadro Estático (Estilo de la imagen) --- */
.contenedor-materiales-estatico {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.texto-materiales {
  font-size: 14px;
  color: #3b597b;
  font-family: inherit;
  display: flex;
  justify-content: space-between; /* Separa el texto del enlace de ayuda */
  align-items: center;
}
.texto-materiales strong {
  color: #3b597b;
  font-weight: 700;
}

/* Enlace interactivo "¿Qué es esto?" */
.enlace-info-pop {
  font-size: 11.5px;
  color: #cc0000; /* Color de acento de tu marca */
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.enlace-info-pop:hover {
  color: #a30000;
}

/* --- Ventana Emergente (Pop-up) --- */
.popup-fondo {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  z-index: 1100;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.popup-contenido {
  background-color: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: popEntrada 0.2s ease-out;
}
@keyframes popEntrada {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.btn-cerrar-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
}
.btn-cerrar-popup:hover { color: #334155; }

.popup-encabezado h3 {
  font-size: 18px;
  color: #0f172a;
  margin: 0 0 4px 0;
  font-weight: 700;
}
.popup-subtitulo {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 20px 0;
}
.lista-materiales-detalle {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.item-material-box {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  text-align: left;
}
.item-material-box p { margin: 8px 0 0 0; }
.box-top { background-color: #fff1f2; border-color: #fecdd3; }
.box-mix { background-color: #fef2f2; border-color: #fee2e2; }

.badge-material {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.badge-top { background-color: #fbcfe8; color: #9d174d; }
.badge-mix { background-color: #fca5a5; color: #991b1b; }

/* Oculta de forma absoluta el campo de validación para que el usuario no lo vea, pero los robots sí */
.campo-trampa {
  display: none !important;
  visibility: hidden !important;
  opacity: 0;
  position: absolute;
  top: -9999px;
  left: -9999px;
}
/* Estilos para el botón cuando está procesando el envío */
.btn-enviar-formulario:disabled {
  background-color: #a3a3a3 !important; /* Cambia a gris para denotar que está bloqueado */
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Separa el spinner del texto 'Enviando...' */
}

/* El círculo giratorio (Spinner) construido en CSS puro */
.spinner-carga {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3); /* Círculo de fondo translúcido */
  border-radius: 50%;
  border-top-color: #ffffff; /* La sección blanca brillante que gira */
  animation: girarSpinner 0.8s linear infinite; /* Animación continua e infinita */
  display: inline-block;
}

/* Animación de rotación de 0 a 360 grados */
@keyframes girarSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* --- Contenedor General de la Sección Horizontal --- */
.seccion-accesorios-horizontal {
  margin-top: 50px;
  font-family: 'Segoe UI', Roboto, sans-serif;
  padding: 0 20px;
}

/* NUEVA CLASE: Centra el bloque y limita su ancho máximo en computadoras */
.bloque-horizontal-centrado {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px auto 0 auto; /* Centrado absoluto horizontal */
  max-width: 850px;         /* Evita que abarque todo el ancho de la pantalla */
  width: 100%;
}

/* --- Estructura de la Tarjeta Horizontal --- */
.tarjeta-horizontal-cdo {
  display: flex;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  align-items: center;
  padding: 15px;
}

.tarjeta-horizontal-cdo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- Bloque Izquierdo: Imagen --- */
.imagen-horizontal-box {
  flex: 0 0 160px;
  position: relative;
  text-align: center;
  padding: 10px;
}

.img-horizontal {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.compatibilidad-tag-mini {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #cc0000;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* --- Bloque Central: Datos --- */
.info-horizontal-centro {
  flex: 1;
  padding: 0 20px;
}

.subtitulo-horizontal {
  font-size: 16px;
  color: #1e293b;
  margin: 5px 0 10px 0;
  font-weight: 700;
}

.datos-tecnicos-horizontal {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.datos-tecnicos-horizontal li {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 4px;
}

/* --- Bloque Derecho: Botón --- */
.accion-horizontal-derecha {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  padding-left: 15px;
  border-left: 1px solid #f1f5f9;
}

.btn-horizontal-whats {
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 15px;
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.btn-horizontal-whats:hover {
  background-color: #1ebd59;
}

/* --- Adaptación Responsiva para Celulares --- */
@media (max-width: 768px) {
  .tarjeta-horizontal-cdo {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  
  .imagen-horizontal-box {
    flex: auto;
    margin-bottom: 15px;
  }
  
  .info-horizontal-centro {
    padding: 0;
    margin-bottom: 20px;
  }
  
  .accion-horizontal-derecha {
    flex: auto;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
  }
}
