/* ===============================
   RESET Y BASE
/* ===============================
   RESET Y BASE
   =============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #0c0c0c;
  -webkit-font-smoothing: antialiased;
}

/* ===============================
   VARIABLES
   =============================== */
:root {
  --gold-main: #ffd700;
  --shadow-dark: rgba(0, 0, 0, 0.85);
}

/* ===============================
   HEADER / BANNER
   =============================== */
.header {
  width: 100%;
  position: relative;
  z-index: 1000;
}

.banner {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

/* Imagen */
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   BOTÓN CERRAR
   =============================== */
.btn-cerrar {
  position: absolute;
  top: 16px;
  right: 110px; /* deja espacio al carrito */
  z-index: 1100;
}


/* ===============================
   LOGO + TEXTO
   =============================== */
.logo-container {
  position: absolute;
  top: -120px;
  left: 46%;
  transform: translateX(-50%);
  z-index: 20;
  text-align: center;
  pointer-events: none;
}

.logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden; /* 🔒 AQUÍ SE CORTA EL BRILLO */
}


.logo {
  width: 520px;
  max-width: 95%;
  height: auto;
  display: block;
}



/* BRILLO QUE PASA POR ENCIMA (REAL) */
/* BRILLO QUE PASA POR ENCIMA (REAL) */
.logo-shine {
  position: absolute;

  /* 🔪 RECORTE EN ALTURA */
  top: 10%;        /* empieza más abajo */
  height: 50%;     /* solo mitad del logo */

  left: -120%;
  width: 45%;

  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.15) 30%,
    rgba(200,235,255,0.95) 50%,
    rgba(255,255,255,0.15) 70%,
    transparent 100%
  );

  transform: skewX(-20deg);
  animation: logoShineMove 9s ease-in-out infinite;
  pointer-events: none;
}


@keyframes logoShineMove {
  0% {
    left: -120%;
    opacity: 0;
  }
  30% {
    opacity: 0.6;
  }
  55% {
    left: 120%;
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}



/* ===============================
   TEXTO ABIERTO (ÚNICO CON LUZ)
   =============================== */
.abierto-text {
  margin-top: -50px;
  margin-bottom: 100px;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--gold-main);

  text-shadow:
    0 2px 6px rgba(5, 224, 249, 0.75),
    0 0 14px rgb(9, 217, 236),
    0 0 32px rgb(8, 133, 234),
    0 0 70px rgb(4, 225, 250);

  animation: goldLightPulse 3s ease-in-out infinite;
}

/* ===============================
   OVERLAY PREMIUM
   =============================== */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 30px 20px 26px;
  text-align: center;

  background: linear-gradient(
    to top,
    rgba(255,255,255,0.65),
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.6);
}

/* H1 GRANDE + BORDADO */
.overlay h1 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-align: center;
  color: #373232;

  text-shadow:
    -2px -2px 0 #ffffff,
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff,
     0  4px 8px rgba(0,0,0,0.4);
}

/* P MÁS GRANDE (SIN BORDADO) */
.overlay p {
  font-size: 1.15rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* ===============================
   ANIMACIONES
   =============================== */
@keyframes logoPremiumSoft {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-0.3deg);
  }
}


@keyframes logoLightPass {
  0% {
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
  }
  40% { opacity: 0.9; }
  65% {
    transform: translateX(140%) skewX(-18deg);
    opacity: 1;
  }
  100% { opacity: 0; }
}

@keyframes goldLightPulse {
  0%, 100% {
    text-shadow:
      0 2px 6px rgba(0,0,0,0.75),
      0 0 14px rgba(255,215,120,1),
      0 0 32px rgba(255,190,60,1),
      0 0 70px rgba(255,160,0,1);
  }
  50% {
    text-shadow:
      0 4px 12px rgba(0,0,0,0.9),
      0 0 22px rgba(255,230,150,1),
      0 0 48px rgba(255,190,60,1),
      0 0 100px rgba(255,160,0,1);
  }
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .banner { height: 300px; }

  .logo {
    width: 300px;
  }

  .logo-container {
    top: -60px;
    left: 50%;
  }

  .overlay h1 {
    font-size: 1.6rem;
  }

  .overlay p {
    font-size: 1rem;
  }

  .abierto-text {
    font-size: 1.3rem;
    margin-bottom: 80px;
  }
}



/* Sections */
main { max-width:1200px; margin:20px auto; padding:0 16px; }
.section-title { font-size:20px; margin:12px 0; color:#0b74a8; text-align:left; padding-left:4px; }

/* Bienvenida */
.overlay {
  text-align: center; /* Centra el texto horizontalmente */
    width: 100%; /* Asegura que el contenedor ocupe el ancho completo */
    margin: 0 auto 22px auto; /* Centra el contenedor y añade margen inferior */
    padding: 20px 10px; /* Relleno superior/inferior, y algo lateral */
    background-color: #ffffff;
}
.bienvenida { text-align:center; margin-bottom:18px; }
.bienvenida h1 { color:#0b74a8; font-size:28px; margin-bottom:6px; }
.bienvenida p { color:#334; }

/* Carrusel */
.section-carrusel { margin:10px 0 26px; }
.carrusel { display:flex; gap:10px; overflow-x:auto; padding:8px 6px; scroll-snap-type:x mandatory; }
.carrusel::-webkit-scrollbar { height:8px; }
.carrusel::-webkit-scrollbar-thumb { background:#cfd8e3; border-radius:8px;}
.carrusel .item { flex:0 0 auto; width:260px; height:150px; border-radius:12px; overflow:hidden; position:relative; background:#fff; box-shadow:0 6px 18px rgba(12, 28, 59, 0.06); cursor:pointer; scroll-snap-align:center; display:flex; align-items:center; justify-content:center; }
.carrusel .item img { height:100%; width:100%; object-fit:cover; }
.carrusel .item .tag { position:absolute; left:12px; top:12px; background:#ff4d6d; color:#fff; padding:6px 8px; border-radius:8px; font-weight:600; font-size:12px; }

/* =========================
   BUSCADOR CATALOGO – 3D PREMIUM
========================= */

/* CONTENEDOR GENERAL */
.buscador-catalogo {
  display: flex;
  justify-content: center;
  margin: 18px 0 22px;
}

/* CAJA PRINCIPAL */
.search-glow {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 52px;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #feffff);
  border-radius: 40px;
  padding: 0 18px 0 44px;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.05),
    inset 0 -4px 8px rgba(0,0,0,0.6),
    0 18px 40px rgba(0,0,0,0.45);
  transform-style: preserve-3d;
  overflow: hidden;
}

/* LUZ ELÉCTRICA RECORRIENDO EL BORDE */
.search-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 15%,
    rgba(43,124,255,0.8) 25%,
    rgba(0,247,255,1) 35%,
    rgba(43,124,255,0.8) 45%,
    transparent 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: electricidadBorde 2.5s linear infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}

/* RESPLANDOR INTERIOR MUY SUTIL */
.search-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: radial-gradient(
    ellipse 150% 100% at 50% 50%,
    rgba(43,124,255,0.04) 0%,
    transparent 60%
  );
  animation: respiracionSuave 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ICONO LUPA */
.search-glow i {
  position: absolute;
  left: 18px;
  font-size: 18px;
  color: #2b7cff;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 4;
}

/* EFECTO AL PASAR EL MOUSE SOBRE EL BUSCADOR */
.search-glow:hover i {
  transform: translateX(8px) scale(1.5) rotate(5deg);
  color: #00f7ff;
  filter: drop-shadow(0 0 8px rgba(0,247,255,0.8));
}

/* INPUT */
.search-glow input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #14171e;
  font-size: 0.95rem;
  font-weight: 400;
  padding-left: 36px;
  padding-right: 12px;
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* AJUSTAR EL TEXTO CUANDO LA LUPA SE AGRANDA - TEXTO DEBAJO */
.search-glow:hover input {
  padding-left: 62px;
}

.search-glow input::placeholder {
  color: rgba(20, 24, 30, 0.779);
  transition: color 0.3s ease;
}

.search-glow:hover input::placeholder {
  color: rgba(20,23,30,0.75);
}

/* EFECTO AL PASAR EL MOUSE SOBRE EL BUSCADOR */
.search-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.08),
    0 26px 60px rgba(43,124,255,0.45),
    0 0 30px rgba(0,247,255,0.2);
}

/* ANIMACIÓN ELECTRICIDAD EN EL BORDE */
@keyframes electricidadBorde {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ANIMACIÓN RESPIRACIÓN INTERIOR SUAVE */
@keyframes respiracionSuave {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

/* TABLET */
@media (max-width: 768px) {
  .search-glow {
    max-width: 90%;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .search-glow {
    max-width: 92%;
    font-size: 0.88rem;
  }
  
  .search-glow input {
    font-size: 0.88rem;
    padding-left: 32px;
  }
  
  .search-glow:hover input {
    padding-left: 56px;
  }
}


/*detalles textoproveedores*/

.catalogo-detalles {
  position: relative; /* contenedor para icono absoluto */
  width: 100%;
  margin: 0 auto 22px auto;
  padding: 60px 20px 28px 20px; /* padding-top aumentado para espacio del icono */
  text-align: center;
  background-color: #ffffff;

  font-family: 'Open Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #03b9f5;
  white-space: pre-line;

  text-shadow:
    1px 1px 0 rgba(0,0,0,0.9),
    2px 2px 0 rgba(0,0,0,0.75),
    -1px -1px 0 rgba(255,255,255,0.25),
    0 3px 6px rgba(0,0,0,0.35);

  border-radius: 14px;
  animation: fadeIn 0.8s ease-out;
  overflow: hidden; /* evita que el icono afecte scroll */
}

/* ICONO ANIMADO - centrado arriba del texto */
.catalogo-detalles::before {
  content: "\f48b \f21c"; /* camión + motor/chispa */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.6rem;
  opacity: 0.9;

  position: absolute;
  top: 16px; /* margen superior */
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  will-change: transform;

  text-shadow: 1px 1px 0 rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.3);
  animation: iconMove 2s ease-in-out infinite;
}

/* SEPARADOR */
.catalogo-detalles::after {
  content: "";
  display: block;
  margin: 12px auto 0;
  width: 55%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.35), transparent);
}

/* ANIMACIÓN DEL ICONO */
@keyframes iconMove {
  0% { transform: translateX(-50%) translateZ(0) scale(1); opacity: 0.8; }
  25% { transform: translateX(calc(-50% + 5px)) scale(1.05) rotate(2deg); opacity: 1; }
  50% { transform: translateX(calc(-50% + 15px)) scale(1.1) rotate(-2deg); opacity: 1; }
  75% { transform: translateX(calc(-50% + 25px)) scale(1.05) rotate(2deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
}

/* FADE-IN */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   PROVEEDORES  contenedor texto
========================= */

.proveedores {
  background-color: #ffffff;
  padding: 24px 0;
}

.proveedores h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f0e0e;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* =========================
   PROVEEDORES – CARD PREMIUM
========================= */

/* ===============================
   CONTENEDOR PROVEEDORES
================================ */
.contenedor-proveedores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  padding: 8px;
  justify-items: center;
}

/* ===============================
   CARD PROVEEDOR – COMPACTA
================================ */
.card-proveedor {
  width: 200px;              /* ⬅ MÁS PEQUEÑA */
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 6px 10px;     /* ⬅ MENOS RELLENO */
  text-align: center;

  box-shadow: 0 6px 18px rgba(251, 251, 251, 0.958);
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  display: flex;
  flex-direction: column;
  align-items: center;

  cursor: pointer;
}
.card-proveedor {
  position: relative;
  overflow: hidden;
}

/* BORDE ELÉCTRICO */
.card-proveedor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #00e0ff,
    #2562d3,
    #00e0ff,
    transparent
  );
  background-size: 300% 300%;
  animation: electricBorder 3s linear infinite;
  mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0.75;
}

@keyframes electricBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}


.card-proveedor::before {
  opacity: 0;
}

.card-proveedor:hover::before {
  opacity: 0.85;
}



.card-proveedor:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(24, 137, 229, 0.3);
}

/* ===============================
   LOGO WRAPPER – DOMINA LA CARD
================================ */
.logo-wrapper {
  width: 100%;
  height: 120px;             /* ⬅ GRANDE RESPECTO A LA CARD */
  background: #ffffff;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 4px;

  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

/* ===============================
   LOGO – GRANDE DESDE INICIO
================================ */
.card-proveedor img {
  width: 100%;
  height: 100%;

  max-width: 110px;          /* ⬅ AQUÍ SE HACE GRANDE */
  max-height: 110px;

  object-fit: contain;
  background: transparent;

  mix-blend-mode: multiply;

  transition: transform 0.25s ease;
}

/* Hover SOLO sutil */
.card-proveedor:hover img {
  transform: scale(1.06);
}

/* ===============================
   TEXTO – DISCRETO
================================ */
.card-proveedor h3 {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0b1220;
  line-height: 1.2;
}


/* =========================
   CATÁLOGO
========================= */

.catalogo {
  margin: 20px 0 36px;
}

.catalogo-title {
  margin: 12px 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b1220;
}

/* =========================
   CATÁLOGO PRODUCTOS
========================= */

.contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 10px;
}

/* CARD */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 310px;

  /* sombra externa MUY suave */
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* CONTENEDOR IMAGEN */
.img-wrapper {
  background: #ffffff;       /* MISMO BLANCO */
  border-radius: 14px;
  height: 160px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* IMAGEN */
.img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;

  background: #ffffff;       /* MISMO BLANCO */
  display: block;
  cursor: pointer;
}

/* HOVER IMAGEN PRODUCTO */
.img-wrapper img {
  transition: transform 0.25s ease;
}

.img-wrapper img:hover {
  transform: scale(1.05);
}

/* TEXTO */
.card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0b1220;
  line-height: 1.3;
  min-height: 40px;
}

.card p {
  font-size: 14px;
  font-weight: 700;
  color: #6f787c;
}

/* BOTÓN */
.btn-wsp {
  margin-top: auto;
  background: #2579d3;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}


.btn-wsp:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(2, 34, 39, 0.4);
}


/* =========================
   PAGINACIÓN
========================= */

.paginacion {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.paginacion button {
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: #0b99d9;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

.paginacion span {
  font-weight: 600;
  color: #0b1220;
}

/* =========================
   MODAL PRODUCTO
========================= */

.modal-producto {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}

.modal-producto.active {
  display: flex;
}

.modal-producto-content {
  background: #ffffff;
  max-width: 320px;
  width: 100%;
  border-radius: 16px;
  padding: 14px 14px 18px;
  text-align: center;
  position: relative;
  animation: modalFade 0.22s ease;
}


.modal-producto-content img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 10px;
}

.modal-producto-content p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.35;
}


.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #333;
}

@keyframes modalFade {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */
/*.footer { margin-top:30px; background:#0a97e9; color: #ffffff; padding:22px 16px; text-align:center; }
.footer a { color: #ffffff; margin:0 8px; font-size:18px; }

/* Responsive */
/*@media (max-width:900px){
  .carrusel .item { width:200px; height:120px; }
  .logo { width:86px; height:86px; top:16%; }
  .card img { height:140px; }
}



/* ============================
   SECCIÓN BLOG / MENSAJE INSPIRADOR
   ============================ */

.blog {
  padding: 40px 20px;
  background: #ffffff;
}

.blog-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Tarjeta de contenido */
.blog-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 5px solid #0b21e8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
}

.blog-card ul {
  padding-left: 20px;
  color: #444;
  font-size: 1rem;
}

/* MENSAJE BÍBLICO DIARIO */
.mensaje-diario {
    background: linear-gradient(135deg, #ffffff, #e89c2391);
    padding: 15px;
    margin: 12px 0 18px 0;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: fadeInMsg 1s ease-out;
}

.mensaje-diario p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.mensaje-diario span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #777;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animación suave móvil */
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Estilo base para los íconos */
footer .social-icons i {
  font-size: 2rem; /* Ajusta el tamaño del icono */
  color: #333; /* Color inicial */
  transition: color 0.3s ease, transform 0.3s ease; /* Transición suave para el color y movimiento */
  cursor: pointer; /* Cambia el cursor cuando se pasa por encima */
}

/* Efecto cuando se pasa por encima (hover) */
/* --------- FOOTER GENERAL ---------- */
footer {
  width: 100%;
  text-align: center;
  padding: 20px 10px;
  background: #ffffff;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------- ICONOS SOCIALES MODERNOS ---------- */
/* --------- ICONOS SOCIALES MODERNOS ---------- */
footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}

/* Estado normal */
footer .social-icons i {
  font-size: 2.1rem;
  color: #6a6a6a;
  transition: 
    color 0.35s ease,
    text-shadow 0.35s ease,
    transform 0.35s ease;
  cursor: pointer;
}

/* FACEBOOK */
footer .social-icons i.fa-facebook:hover {
  color: #1877F2;
  text-shadow: 0 0 12px rgba(24, 119, 242, 0.6);
  transform: translateY(-4px) scale(1.15);
}

/* INSTAGRAM */
footer .social-icons i.fa-instagram:hover {
  color: #E1306C;
  text-shadow: 0 0 12px rgba(225, 48, 108, 0.6);
  transform: translateY(-4px) scale(1.15);
}

/* WHATSAPP */
footer .social-icons i.fa-whatsapp:hover {
  color: #25D366;
  text-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
  transform: translateY(-4px) scale(1.15);
}

/* Responsivo */
@media (max-width: 768px) {
  footer .social-icons i {
    font-size: 1.8rem;
  }
}

/* --------- MENSAJE DE TEMPORADA ---------- */
/* MENSAJE DE TEMPORADA DORADO CON EFECTO BRILLO */
/* CINTA DE MENSAJE DE TEMPORADA (DISEÑO CASUAL) */
footer .mensaje-temporada {
  max-width: 85%;                 /* No ocupa todo el ancho */
  margin: 10px auto;              /* Centrada */
  padding: 4px 10px;              /* Más delgada */
  border-radius: 20px;
  font-family: "Quicksand", sans-serif;   /* Tipografía casual */
  font-weight: 600;
  font-size: 1rem;
  text-align: center;

  /* Fondo cinta degradado casual */
  background: linear-gradient(90deg,
    rgba(255, 214, 94, 0) 0%,         /* desvanecido inicio */
    rgba(94, 255, 247, 0.715) 20%,
    rgba(7, 209, 236, 0.874) 50%,
    rgba(94, 191, 255, 0.69) 80%,
    rgba(255, 214, 94, 0) 100%        /* desvanecido final */
  );

  color: #feb201;
  display: none;
  position: relative;
  overflow: hidden;


  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff,
     0  4px 8px rgba(0,0,0,0.4);
}

/* EFECTO DE BRILLO SUAVE Y ELEGANTE */
footer .mensaje-temporada::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: cintaBrilla 4.5s infinite;
}

@keyframes cintaBrilla {
  0% { left: -120%; }
  100% { left: 120%; }
}

/* Mostrar mensaje cuando esté activo */
footer .mensaje-temporada.active {
  display: block;
}

/* ========= MODAL PROFESIONAL MODERNO ========= */

.modal-auth {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity .3s ease;
}

.modal-auth.show {
  display: flex;
  opacity: 1;
}

/* ✅ NO tocar display, ni position, ni z-index de .modal-auth */

/* Caja moderna */
.modal-contenido {
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 20px;
    width: 380px;
    max-width: 92%;
    box-shadow: 0 12px 25px rgb(250, 248, 248);
    animation: modalFadeIn .25s ease;
    position: relative; /* necesario para botón cerrar */
}

/* Animación suave */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón cerrar elegante */
.cerrar {
    position: absolute;
    right: 10px;
    top: 6px;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    transition: .2s;
}

.cerrar:hover {
    color: #f9f9f9;
    transform: scale(1.1);
}

/* Título */
.modal-contenido h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 14px;
    color: #fcfcfc;
}


.modal-contenido input {
    color: #f4f4f5fb !important; /* color del texto */
}

.modal-contenido input::placeholder {
    color: rgba(11, 61, 145, 0.55); /* color del placeholder */
}

.modal-contenido input:focus {
    color: #050505 !important;
    border-color: #4b7cff;
    box-shadow: 0 0 8px rgba(75,124,255,0.35);
}


/* Inputs modernos */
.modal-contenido input,
.modal-contenido select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(26, 25, 25, 0);
    background: rgba(255, 255, 255, 0.437);
    margin-bottom: 8px;
    color: #020202; /* <-- cambia este color por el que quierasDEL SELEC GENERO */
}
 

/* Botones */
.modal-contenido .btn {
    width: 100%;
    padding: 10px;
    background: #4b7cff;
    border: none;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.modal-contenido .btn:hover {
    background: #3bc6e9;
}

/* Logo centrado */
.modal-logo {
    width: 70px;
    display: block;
    border-radius: 60%;
    object-fit: cover;
    padding: 1px;
    background: rgba(227, 220, 220, 0.741);
    box-shadow: 0 0 30px rgba(75, 123, 255, 0.679);
    margin: 0 auto 20px auto;
}



.btn-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;

    padding: 10px 18px; /* área táctil suficiente */
    background: rgba(255, 255, 255, 0.25); 
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;

    font-size: 13px;
    font-weight: 600;
    color: #ffffff;

    cursor: pointer;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    z-index: 500;

    pointer-events: all; /* asegura que todo el botón detecte el toque */
}

.btn-cerrar:hover {
    background: rgba(255, 255, 255, 0.45);
    color: #000;
    transform: translateY(-1px) scale(1.03);
}

.btn-cerrar:active {
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0.98);
}


/* estilo para mensajes de error en login */
/* Mensajes de error en formularios */
/* ============================================
   ANIMACIONES PARA MENSAJES DE ERROR
   ============================================ */

/* ============================================
   ANIMACIONES PARA MENSAJES DE ERROR
   ============================================ */

/* Caja visual del mensaje */
/* Mejora para el botón de cerrar error */
/* Caja de error - VERSIÓN ACTUALIZADA */

/* ============================================
   MENSAJES DE ERROR - VERSIÓN SIMPLIFICADA
   ============================================ */

/* Animaciones */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeOut {
  from { 
    opacity: 1; 
    transform: translateY(0); 
  }
  to { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
}

/* Hover del botón X */
.error-box button:hover {
  transform: scale(1.3) !important;
  opacity: 0.7 !important;
}

/* ============================ */
/* 🎯 CARRUSEL DE OFERTAS - VERSIÓN PROFESIONAL AJUSTADA */
/* =========================================================
   🔥 CARRUSEL DE OFERTAS - ESTILO PROFESIONAL 3D
   Cards con imagen protagonista y efecto centro sobresaliente
   ========================================================= */

.ofertas {
  width: 100%;
  padding: 18px 0;
  background: linear-gradient(180deg, #f8f9fa, #ffffff);
  text-align: center;
  perspective: 1500px;
  overflow: hidden;
}

.ofertas h2 {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px; /* MÁS CERCA DE LAS CARDS */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;

    background: linear-gradient(135deg, #9a2323, #0b0548);
    padding: 12px 26px;
    display: inline-block;
    border-radius: 10px;
    position: relative;
    overflow: hidden;

    border: 3px solid #ffffff;
    box-shadow:
        0 3px 0 #3022b289,
        0 6px 10px rgba(0, 0, 0, 0.792);
}

/* EFECTO DE BRILLO HORIZONTAL */
.ofertas h2::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* empieza fuera a la izquierda */
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg); /* efecto diagonal premium */
    animation: brillo-horizontal 2.2s infinite;
}

/* ANIMACIÓN: RECORRE DE IZQUIERDA A DERECHA */
@keyframes brillo-horizontal {
    0% {
        left: -120%;
    }
    60% {
        left: 130%;
    }
    100% {
        left: 130%;
    }
}


/* Contenedor del carrusel */
.carrusel-3d {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-left: 2px;
  padding-right: 2px;
  padding-bottom: 0px !important;   /* SCROLL PEGADO A LAS CARDS */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}




/* Ocultar scrollbar pero mantener funcionalidad */
.carrusel-3d::-webkit-scrollbar {
  height: 4px;
}

.carrusel-3d::-webkit-scrollbar-track {
  background: rgba(250, 250, 250, 0.655);
  border-radius: -5px;
}

.carrusel-3d::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0ac8e95a, #f7f7f4);
  border-radius: -5px;
}

/* Card del producto - IMAGEN PROTAGONISTA */
/* Card del producto - mini card real */
.carrusel-3d .item {
  position: relative;
  width: 80px;
  height: 100px;
  background: #ffffff00;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  scroll-snap-align: center;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(0.95);
  opacity: 0.9;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  z-index: 1;
  

  /* AÑADIDOS PARA REDUCIR LA CARD */
  transform-origin: center;
  scale: 0.65;         /* Este sí reduce la card completa */
  margin-right: -80px;   /* Acerca las cards sin romper el diseño */

}

.carrusel-3d .item:hover,
.carrusel-3d .item:focus-within {
  transform: scale(1.15) translateY(-15px) rotateY(5deg);
  box-shadow: 0 25px 60px rgba(117, 177, 223, 0.6);
  opacity: 1;
  border-color: rgba(102, 212, 249, 0.3);
  z-index: 10;

  /* AÑADIR ESTA LÍNEA */
  scale: 0.80;   /* Hover más pequeño y controlado */
}

/* Imagen interna reducida */
.carrusel-3d .item img {
  width: 100%;               /* Llenar la card */
  height: 100%;
  object-fit: contain;       /* Se ve COMPLETA sin recortes */
  padding: 8px;              /* Reduce visualmente la imagen */
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover leve en imagen */
.carrusel-3d .item:hover img {
  transform: scale(1.03);
}



/* Información del producto - MINIMALISTA */
.carrusel-3d .info-oferta {
  padding: 15px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff52, #f8f9fa7e);
  height: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.carrusel-3d .info-oferta h4 {
  font-size: 1.1rem;
  color: #1a1a2e;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  min-height: 42px;
}

.carrusel-3d .info-oferta p {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #101113, #010319);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* Badge/Cinta de oferta */
.carrusel-3d .cinta {
  position: absolute;
  top: 15px;
  left: -20px;
  background: linear-gradient(135deg, #f90e0e, #530202);
  color: #fcfcfc;
  padding: 10px 30px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
  z-index: 5;
  letter-spacing: 1px;
}

/* Efecto de brillo al pasar el mouse */
.carrusel-3d .item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.carrusel-3d .item:hover::after {
  left: 150%;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .ofertas h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .carrusel-3d {
    gap: 10px;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 2px;  /* IGUAL EN MOBILE */
  }

  .carrusel-3d .item {
    width: 220px;
    height: 320px;
    transform: scale(0.9);
  }

  .carrusel-3d .item:hover {
    transform: scale(1.05) translateY(-10px);
  }

  .carrusel-3d .item img {
    height: 60%;
  }

  .carrusel-3d .info-oferta {
    height: 40%;
    padding: 12px;
  }

  .carrusel-3d .info-oferta h4 {
    font-size: 0.95rem;
    min-height: 38px;
  }

  .carrusel-3d .info-oferta p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .carrusel-3d .item {
    width: 180px;
    height: 280px;
  }

  .carrusel-3d .info-oferta h4 {
    font-size: 0.85rem;
    min-height: 34px;
  }

  .carrusel-3d .info-oferta p {
    font-size: 1rem;
  }
}
/* ====== PROVEEDORES ====== */
.contenedor-proveedores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card-proveedor {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgb(245, 245, 245);
}

.card-proveedor:hover {
  transform: scale(1.05);
}

.card-proveedor img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.card.animar-entrada {
  animation: fadeInUp 0.6s ease forwards;
}

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

/*  Estilo base de los botones de paginación */
.paginacion button {
  background: linear-gradient(135deg, #007bff, #f8f8f3);
  color: #fff;
  border: none;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 8 px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 🖱️ Hover con leve agrandamiento */
.paginacion button:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.8);
}

/* ✨ Efecto de brillo (neón en movimiento) */
.paginacion button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  opacity: 0.7;
}

/* 🔁 Clase temporal para activar el brillo */
.paginacion button.brillo::after {
  animation: brilloBoton 0.6s ease-in-out forwards;
}

@keyframes brilloBoton {
  0% {
    left: -100%;
  }
  100% {
    left: 120%;
  }
}

/* 💡 Pequeña pulsación al hacer clic */
.paginacion button:active {
  transform: scale(0.96);
  box-shadow: 0 0 5px rgba(0, 198, 255, 0.5);
}
/* Contenedor del catálogo */
#catalogoContainer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#catalogoContainer.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* Botón "Volver a proveedores" */
/* ============================
   BOTÓN VOLVER A PROVEEDORES
============================ */
.header-catalogo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 0;
}

.btn-volver {
  background: linear-gradient(90deg, #0698f9, #02cafc);
  color: white;
  border: none;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 10px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(50, 166, 255, 0.641);
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background: linear-gradient(90deg, #05ebf7fd, #0f112728);
  box-shadow: 0 0 15px rgba(254, 254, 252, 0.655);
  transform: scale(1.05);
}

/* ============================
   EFECTO DE CAMBIO DE PÁGINA
============================ */
.efecto-pagina {
  animation: cambioPagina 0.6s ease-in-out;
}

@keyframes cambioPagina {
  0% { opacity: 0; transform: rotateY(-10deg) scale(0.98); filter: brightness(1.2); }
  50% { opacity: 0.8; transform: rotateY(5deg) scale(1.02); filter: brightness(1.3); }
  100% { opacity: 1; transform: rotateY(0) scale(1); filter: brightness(1); }
}

/* ============================
   EFECTO DE BRILLO BOTONES DE PAGINACIÓN
============================ */
.btn-paginacion {
  background: linear-gradient(90deg, #0066ff, #0099ff);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
}

.btn-paginacion:hover {
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.8);
  background: linear-gradient(90deg, #0099ff, #00ccff);
  transform: scale(1.05);
}




/* === CARRUSEL DE VIDEOS ESTILO HISTORIAS === */
/* =========================================================
   CARRUSEL DE VIDEOS ESTILO HISTORIAS PROFESIONAL
   ========================================================= */
/* =========================================================
   CARRUSEL DE VIDEOS - ADAPTABLE YOUTUBE + TIKTOK
   Soporta videos horizontales (16:9) y verticales (9:16)
   ========================================================= */

/* =========================================================
   🎬 REPRODUCTOR DE VIDEOS PROFESIONAL
   Soporta YouTube (16:9) y TikTok (9:16) sin deformación
   Con controles personalizados y contador de vistas
   ========================================================= */

/* =========================================================
   🎬 SECCIÓN 1: VIDEO PLAYER
   Busca desde: "/* === CARRUSEL DE VIDEOS ESTILO HISTORIAS === */
   /*Hasta antes de: "/* === catálogo oculto === */
   /*Y REEMPLAZA TODO ESO con esto:
   /*========================================================= */

/* =========================================================
   🎬 SECCIÓN 1: VIDEO PLAYER
   Busca desde: "/* === CARRUSEL DE VIDEOS ESTILO HISTORIAS === */
  

:root {
  --video-bg: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  --video-container-height: 400px; /* 🔑 Altura fija siempre */
}

.video-stories {
  width: 100%;
  padding: 30px 15px;
  background: var(--video-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto 30px;
  position: relative;
  
  /* 🌟 Efecto de partículas brillantes animadas */
  animation: gradientShift 8s ease infinite;
}

/* Animación de gradiente dinámico */
@keyframes gradientShift {
  0% {
    background: linear-gradient(135deg, #fbfcfd 0%, #f6f7f9 50%, #4b9ba238 100%);
  }
  33% {
    background: linear-gradient(135deg, #f4f4f5 0%, #f6f7f8 50%, #4b71a217 100%);
  }
  66% {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #f2f2f2 100%);
  }
  100% {
    background: linear-gradient(135deg, #03081c 0%, #f5f7f9 50%, #f4f6f7 100%);
  }
}

/* Efecto de brillo flotante */
.video-stories::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 243, 243, 0.971) 0%, transparent 70%);
  animation: floatingGlow 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatingGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(20%, 10%) scale(1.1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-10%, 20%) scale(0.9);
    opacity: 0.6;
  }
  75% {
    transform: translate(-20%, -10%) scale(1.05);
    opacity: 0.8;
  }
}

/* Partículas de luz decorativas */
.video-stories::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(102, 126, 234, 0.8), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(185, 192, 87, 0.8), transparent),
    radial-gradient(2px 2px at 80% 10%, white, transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(102, 126, 234, 0.8), transparent);
  background-size: 200% 200%;
  animation: sparkle 6s linear infinite;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

@keyframes sparkle {
  0% {
    background-position: 0% 0%;
    opacity: 0.4;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.8;
  }
  100% {
    background-position: 0% 0%;
    opacity: 0.4;
  }
}

/* Contenedor del reproductor */
.video-player-wrap {
  position: relative;
  width: 150%;
  max-width: 500px;
  height: var(--video-container-height); /* 🔑 Altura fija */
  background: #ffffff2a;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgb(243, 243, 246),
    0 0 80px rgba(75, 107, 162, 0.052); /* Triple sombra con brillo */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  border: 3px solid rgba(255, 255, 255, 0.1);
  z-index: 1; /* Por encima del fondo */
  
  /* Efecto de brillo pulsante */
  animation: containerGlow 4s ease-in-out infinite;
}

@keyframes containerGlow {
  0%, 100% {
    box-shadow: 
      0 20px 60px rgba(251, 250, 250, 0.6),
      0 0 40px rgba(252, 251, 251, 0.966),
      0 0 80px rgba(118, 75, 162, 0.2);
  }
  50% {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.6),
      0 0 60px rgba(5, 197, 245, 0.5),
      0 0 120px rgba(245, 247, 248, 0.4);
  }
}

/* Videos verticales - contenedor más angosto */
.video-player-wrap.vertical-video {
  max-width: 300px; /* Solo cambia ancho, altura sigue igual */
  border-radius: 25px;
  border: 4px solid #1a1a1a;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.05),
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(108, 204, 239, 0.4); /* Brillo más intenso en vertical */
}

/* Video - se adapta sin distorsionar */
#story-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* 🔑 NO distorsiona */
  display: block;
  cursor: pointer;
}

/* ============================================
   📊 CONTADOR DE VISTAS
   ============================================ */
.view-counter {
  position: absolute;
  top: 45px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 18px;
  z-index: 30;
  animation: fadeInDown 0.5s ease;
}

.view-counter i {
  color: #fff;
  font-size: 13px;
}

.view-counter span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   🎮 CONTROLES DE VIDEO
   ============================================ */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.video-player-wrap:hover .video-controls,
.video-controls.show {
  opacity: 1;
}

.time-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin-bottom: 8px;
  cursor: pointer;
}

.time-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.7);
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
}

.control-btn:hover {
  transform: scale(1.2);
  color: #667eea;
}

.control-btn.play-pause {
  font-size: 22px;
}

.time-display {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   📦 OVERLAY DE PRODUCTO - MÁS ABAJO
   ============================================ */
.product-overlay {
  position: absolute; /* 🔑 DEBE SER ABSOLUTE */
  bottom: 50px; /* 🔽 MÁS ABAJO - antes era 65px */
  left: 50%; /* Centrado horizontal */
  transform: translateX(-50%); /* Centrado perfecto */
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.049);
  backdrop-filter: blur(20px);
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  z-index: 21; /* Entre video y controles */
  box-shadow: 
    0 4px 15px rgba(246, 243, 243, 0.145),
    0 0 20px rgba(102, 126, 234, 0.3); /* Brillo sutil */
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2); /* Borde con brillo */
}

/* Efecto hover en el overlay */
.product-overlay:hover {
  background: rgba(241, 236, 236, 0.474);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(102, 126, 234, 0.5);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateX(-50%) translateY(-2px);
}

.product-overlay img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.overlay-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.overlay-title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.overlay-btn {
  display: inline-block;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
  white-space: nowrap;
}

.overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.6);
}

/* ============================================
   🎯 BARRA DE PROGRESO
   ============================================ */
.progress-track {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  z-index: 30;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00f5d4, #00a3ff, #9b5de5);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 243, 212, 0.6);
}

/* ============================================
   ⬅️➡️ BOTONES DE NAVEGACIÓN
   ============================================ */
.story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  transition: all 0.3s ease;
  opacity: 0.85;
}

.story-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.15);
  opacity: 1;
}

.story-nav.prev {
  left: 10px;
}

.story-nav.next {
  right: 10px;
}

/* ============================================
   ✨ TRANSICIÓN SUAVE
   ============================================ */
.video-player-wrap.format-changing {
  animation: containerTransition 0.5s ease;
}

@keyframes containerTransition {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(0.98);
  }
}

/* ============================================
   📱 RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --video-container-height: 350px;
  }
  
  .video-player-wrap {
    max-width: 600px;
  }
  
  .video-player-wrap.vertical-video {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  :root {
    --video-container-height: 320px;
  }
  
  .video-stories {
    padding: 20px 10px;
  }

  .video-player-wrap {
    max-width: 100%;
    border-radius: 12px;
  }

  .video-player-wrap.vertical-video {
    max-width: 240px;
    border-radius: 20px;
  }

  .view-counter {
    top: 38px;
    padding: 4px 8px;
  }

  .product-overlay {
    bottom: 7px; /* 🔽 MÁS ABAJO en móvil */
    padding: 6px 10px;
    max-width: 80%;
  }

  .product-overlay img {
    width: 40px;
    height: 40px;
  }

  .overlay-title {
    font-size: 10px;
  }

  .overlay-btn {
    padding: 4px 10px;
    font-size: 9px;
  }

  .story-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .control-btn {
    font-size: 16px;
  }

  .control-btn.play-pause {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --video-container-height: 280px;
  }

  .video-player-wrap.vertical-video {
    max-width: 200px;
  }

  .product-overlay {
    bottom: 40px; /* 🔽 Aún más abajo en móviles pequeños */
  }
}

/* Estados */
.loading .progress-bar {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

#story-video::-webkit-media-controls {
  display: none !important;
}

#story-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.video-player-wrap.paused .video-controls {
  opacity: 1;
}



/*
============================ */


/* ===  catálogo oculto === */

.oculto {
  display: none !important;
}

/* === Encabezado del catálogo === */
.header-catalogo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 25px;
  gap: 10px;
}

.header-catalogo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.header-catalogo h2 {
  flex: 1;
  margin: 0 15px;
  font-size: 1.4rem;
  color: #222;
}

#buscadorCatalogo {
  flex: 2;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

#btnVolver {
  background: #e4d20848;
  color: #fefe04;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.3s;
}
#btnVolver:hover {
  background: #ebe8e8;
}

/* === Catálogo general === */
#catalogo {
  padding: 30px;
  background: #f8f9fb;
  min-height: 100vh;
}

.contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.contenedor-productos .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 10px;
  transition: transform 0.2s ease;
}
.contenedor-productos .card:hover {
  transform: translateY(-5px);
}

/* Contenedor del banner */
/* Contenedor principal del banner del proveedor */
.catalogo-banner {
    width: 100%;
    max-width: 100%;
    height: 120px; /* Altura tipo cinta fina */
    border-radius: 10px;
    overflow: hidden;
    margin: 2px 0 5px 0;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    animation: aparecerBanner 0.6s ease-in-out;
}

/* Imagen del banner */
.catalogo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta sin deformar */
    object-position: center;
}

/* **OPCIONAL**: Texto encima del banner */
.catalogo-banner .detalles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    pointer-events: none; /* No interfiere con clicks */
}

/* Animación suave */
@keyframes aparecerBanner {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .catalogo-banner {
        height: 90px; /* Más delgado en celular */
    }
    .catalogo-banner .banner-texto {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .catalogo-banner {
        height: 70px; /* Forma de cinta muy delgada */
    }
    .catalogo-banner .banner-texto {
        font-size: 16px;
    }
}

.mensaje-bienvenida {
  font-weight: bold;
  color: #0986f4; /* azul DescoApp */
  text-transform: uppercase; /* fuerza mayúsculas */
  font-size: 1.4rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideFadeIn 1s forwards, glow 2s infinite alternate;
}

/* Animación de entrada suave */
@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de glow/intermitente */
@keyframes glow {
  from {
    text-shadow: 0 0 5px #dbac10, 0 0 10px #2407fd6d;
  }
  to {
    text-shadow: 0 0 15px #f0f4f5, 0 0 25px #e6e5ee;
  }
}
 






/* ========================================================= */
/* 💻 AJUSTES PARA PC/ESCRITORIO (>= 1200px) */
/* ========================================================= */
@media (min-width: 1200px) {




  @media (min-width: 1200px) {
    
    /* 1. ARREGLAR LA ALTURA DEL BANNER EN PC */
    .banner-img {
        height: 300px; /* Ejemplo: se ve mejor en pantallas grandes */
    }

    /* 2. ARREGLAR EL LOGO */
    .logo {
        /* Mueve el logo para que no se vea centrado en una pantalla ancha */
        left: 30%; 
        width: 150px; 
        height: 150px;
    }

    /* ... y el resto de los ajustes ... */
}

    /* Ajuste de la cabecera (Header) */
    .logo-header {
        
         height: 300px; 
    }


    /* Mejora el tamaño del título de bienvenida en pantallas grandes */
    .bienvenida h1 {
        font-size: 70px; 
        margin-top: 30px;
    }

    /* Centra y expande el buscador en PC */
    .buscador-catalogo input {
        width: 700px;
    }

}

@media (min-width: 1200px) {
    /* ... otros ajustes de PC ... */
    
    /* Aumento del tamaño del contenedor de video en PC */
    :root {
        /* Aumentamos la altura de 400px a 550px solo en PC */
        --video-container-height: 400px; 
    }
    
    /* El contenedor del video puede ser más ancho */
    .video-player-wrap {
        max-width: 800px; /* Más ancho para videos horizontales */
    }
    
    /* El contenedor de video vertical también puede ser más grande */
    .video-player-wrap.vertical-video {
        max-width: 500px; /* Más ancho para videos verticales */
    }
} 


/*mensaje registro antes (revisar  */

/* =========================================
   MODAL REGISTRO - DESCOAPP (GLASS + TECH)
========================================= */

.registro-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

/* CARD PRINCIPAL */
.registro-modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.35);
  margin: 10% auto;
  padding: 32px 26px;
  max-width: 400px;
  width: calc(100% - 40px);
  border-radius: 14px;
  text-align: center;

  /* BORDE ELÉCTRICO */
  border: 1.5px solid rgba(80, 200, 255, 0.55);

  /* SOMBRA + GLOW */
  box-shadow:
    0 0 0 rgba(80, 200, 255, 0),
    0 10px 28px rgba(0, 0, 0, 0.4);

  backdrop-filter: blur(10px);
  animation: fadeInUp 0.4s ease forwards;
  transition: all 0.35s ease;
}

.registro-modal-content:hover {
  border-color: rgba(80, 200, 255, 0.95);
  box-shadow:
    0 0 20px rgba(80, 200, 255, 0.65),
    0 12px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

/* BOTÓN CERRAR */
.registro-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* LOGO */
.registro-modal-logo {
  width: 150px;
  max-width: 60%;
  margin: 0 auto 18px auto;
  display: block;
  filter:
    drop-shadow(0 0 10px rgba(80,200,255,0.4))
    drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

/* TITULO */
.registro-modal h2 {
  margin-bottom: 15px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;

  /* EFECTO BORDADO */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 0 8px rgba(0,0,0,0.6);
}

/* TEXTO */
.registro-modal p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f2faff;
  margin-bottom: 26px;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.75);
}

/* BOTÓN ACCIÓN */
.registro-modal-btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00b4ff, #007bff);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;

  box-shadow:
    0 6px 14px rgba(0, 123, 255, 0.45);
}

.registro-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px rgba(0, 180, 255, 0.65);
}

/* ANIMACIÓN */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}



/*CARRITOCOMPARAS */


/* ============================= */
/* 🛒 CARRITO EN HEADER */
/* ============================= */

.header-top {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  z-index: 1100;
}

/* CONTENEDOR CARRITO */
#carritoHeader {
  position: relative;
}

/* ICONO */
.carrito-icono {
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}

/* BADGE */
.carrito-badge {
  background: red;
  color: #ffffffbb;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 4px;
}

/* PANEL */
.carrito-panel {
  position: fixed;
  top: 72px;          /* más respiración bajo el header */
  right: 22px;        /* alineado con padding del header */
  width: 320px;
  max-height: 70vh;
  background: #ffffffe3;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 14px;
  overflow-y: auto;
  z-index:99998;
}

.carrito-panel.oculto {
  display: none;
}

/* ITEMS */
.carrito-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.carrito-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.carrito-info {
  flex: 1;
  font-size: 13px;
}

.carrito-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

/* =========================
   CANTIDAD
   ========================= */
.carrito-cantidad {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.carrito-cantidad button {
  width: 22px;
  height: 22px;
  border: 1px solid #ccc;
  background: #f8f9fa;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.carrito-cantidad span {
  font-size: 13px;
  min-width: 18px;
  text-align: center;
}

/* ELIMINAR */
.btn-eliminar {
  background: transparent;
  border: none;
  color: red;
  cursor: pointer;
}

/* FOOTER */
.carrito-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

/* BOTONES */
.btn-seguir {
  background: #4b6fe4;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn-seguir:hover {
  background: #18ced7;
}

.btn-finalizar {
  background: #18ced7;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.btn-finalizar:hover {
  background: #4b6fe4;
}

/* ===============================
   CARRITO ARRASTRABLE (DRAG)
================================ */

/* === DRAG CARRITO === */
#carritoPanel {
  position: fixed;
  top: 70px; /* posición inicial */
  right: 20px;
  cursor: grab;
  z-index: 9999;
  transition: box-shadow 0.2s ease;
}

#carritoPanel.dragging {
  cursor: grabbing;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}




/* ===============================
   MODAL DECISIÓN DE COMPRA
================================ */

/* ===============================
   OVERLAY
================================ */

.compra-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFade 0.3s ease;
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===============================
   CARD MODAL PREMIUM
================================ */

.compra-modal {
  position: relative;
  isolation: isolate; /* CLAVE */
  width: 90%;
  max-width: 330px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  text-align: center;
  z-index: 1;

  background: linear-gradient(
    160deg,
    rgba(20,25,35,0.95),
    rgba(10,15,25,0.95)
  );

  box-shadow:
    0 25px 60px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  transform-style: preserve-3d;
  animation:
    modalEntrada 0.35s cubic-bezier(.22,.61,.36,1),
    respiracion 4.5s ease-in-out infinite;

  overflow: hidden;
}

/* ===============================
   BORDE ELÉCTRICO (CABEZA + COLA)
================================ */
/* ===============================
   BORDE ELÉCTRICO REAL (SVG)
================================ */

.compra-modal::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  pointer-events: none;
  z-index: 0;

  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='1' y='1' width='98' height='98' rx='18' ry='18' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-dasharray='16 220' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-240' dur='6s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/svg%3E");

  filter:
    drop-shadow(0 0 6px rgba(34,211,238,0.9))
    drop-shadow(0 0 14px rgba(56,189,248,0.7));
}


.compra-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 2px;
  z-index: -1;

  background:
    conic-gradient(
      from 0deg,

      transparent 0deg,
      transparent 180deg,

      /* COLA LARGA */
      rgba(56,189,248,0.12) 190deg,
      rgba(56,189,248,0.28) 215deg,
      rgba(56,189,248,0.55) 240deg,

      /* NÚCLEO ELÉCTRICO */
      #22d3ee 255deg,

      /* CABEZA */
      #ffffff 260deg,
      #22d3ee 268deg,

      /* DESVANECE */
      rgba(56,189,248,0.5) 290deg,
      rgba(56,189,248,0.25) 320deg,
      transparent 345deg,
      transparent 360deg
    );

  animation: rayoBorde 8s linear infinite;

  /* RECORTE REAL DEL BORDE */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  filter:
    drop-shadow(0 0 6px rgba(34,211,238,0.9))
    drop-shadow(0 0 14px rgba(56,189,248,0.75));

  pointer-events: none;
}

/* ===============================
   ANIMACIÓN LENTA Y CONTINUA
================================ */

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

/* ===============================
   TEXTO
================================ */

.compra-modal h3 {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.compra-modal p {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  line-height: 1.45;
}

.compra-micro {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  opacity: 0.85;
}

/* ===============================
   BOTONES
================================ */

.compra-botones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compra-botones button {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* WHATSAPP */

.btn-compra-wsp {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  color: #0b3d24;
  box-shadow: 0 2px 15px rgba(252,252,252,0.95);
}

.btn-compra-wsp::before {
  content: "🟢";
  font-size: 16px;
}

.btn-compra-wsp:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

/* CARRITO */

.btn-compra-carrito {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  color: #06283d;
  box-shadow: 0 8px 20px rgba(6,189,251,0.9);
}

.btn-compra-carrito::before {
  content: "🛒";
  font-size: 16px;
}

.btn-compra-carrito:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

/* ===============================
   CANCELAR
================================ */

.btn-compra-cancelar {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-compra-cancelar:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/*botn salida volver a proveedores confirmar salida */
.btn-confirmar-salida {
  background: linear-gradient(135deg, #ff4d4d, #b30000);
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 10px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(0);
  transition: all 0.25s ease;
}

/* Glow suave */
.btn-confirmar-salida::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

.btn-confirmar-salida:hover::after {
  opacity: 1;
}

.btn-confirmar-salida:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 8px 20px rgba(179, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-confirmar-salida:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.25);
}



