:root {
  --primary: #B0000F;
  --primary-dark: #8B000C;
  --secondary: #1A1A1A;
  --accent: #2A2A2A;
  --text: #1A1A1A;
  --text-muted: #555;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --glass: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  line-height: 1.6;
}

img { width: 100%; }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: auto; padding: 0.8rem 2rem;
}

.logo-img {
  height: 42px;
  width: auto;
  transition: var(--transition);
}

.menu a {
  margin-left: 1.8rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.menu a:hover::after, .menu a.active::after {
  width: 100%;
}

.menu a:hover, .menu a.active { color: var(--primary); }

.hamburger { display: none; cursor: pointer; }
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--secondary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ================= ENCABEZADO ================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg {
  transform: scale(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(176,0,15,0.3);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(176,0,15,0.45);
}

/* ================= GENERAL ================= */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--secondary);
  letter-spacing: -1px;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section p {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* ================= QUIENES SOMOS ================= */
.about {
  background: #fff;
  text-align: center;
}

.about .container {
  max-width: 1100px;
  margin: 0 auto;
}

.about h2 {
  color: #1A1A1A;
  margin-bottom: 2rem;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.about-text {
  text-align: justify;
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
}

.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 2px solid rgba(176,0,15,0.15);
  transition: transform 0.3s ease;
}
.about-image img:hover {
  transform: scale(1.03);
}

/* Responsivo */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image img {
    width: 80%;
    height: auto;
    margin: 1rem auto 0;
  }
}


/* ================= SOLUCIONES ================= */
.solutions {
  background: var(--bg-alt);
  text-align: center;
}

.solutions-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.solution-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.solution-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.solution-card:hover img {
  transform: scale(1.05);
}

.solution-text {
  padding: 2rem;
  text-align: left;
}

.solution-text h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.solution-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0;
}

/* ================= CASOS / PROYECTOS ================= */
#cases {
  background: var(--bg);
}

.cases .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.case {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.case:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.case img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.case h4 {
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.5rem 1.5rem 0.8rem;
}

.case p {
  color: var(--text-muted);
  padding: 0 1.5rem 2rem;
  margin-bottom: 0;
  text-align: left;
}

/* ================= PIE DE PAGINA ================= */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.6);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

.footer strong {
  color: #fff;
}

/* ================= ANIMACIONES ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }

  .menu {
    position: fixed;
    top: 60px;
    right: -100%;
    background: #1A1A1A;
    width: 70%;
    height: calc(100% - 60px);

    /* CLAVE: asegurar layout y que esté encima */
    display: flex;
    flex-direction: column;
    z-index: 1001;

    padding: 2rem;
    transition: right 0.3s ease;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* CLAVE: esto es lo que te falta */
  .menu.open {
    right: 0;
  }

  /* Tus links en móvil */
  .menu a {
    margin: 1rem 0;
    color: #fff !important; /* fuerza visible */
    display: block;
  }

  .menu a:hover,
  .menu a.active {
    color: #B0000F !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .solution-card img { height: 220px; }
}


/* ================= WHATSAPP BOTÓN FLOTANTE ================= */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366; /* verde oficial de WhatsApp */
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: all 0.3s ease;
  animation: whatsapp-pop 1s ease-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.whatsapp-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Animación de entrada */
@keyframes whatsapp-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}


/* ================= PRODUCTOS ================= */
.products {
  background: #fff;
  text-align: center;
  padding-bottom: 1rem;
}

.products .container {
  max-width: 1100px;
  margin: 0 auto;
}

.products-intro {
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.7;
  color: #555;
  font-size: 1.05rem;
}

/* ================= CARRUSEL ================= */
.carousel-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.5rem 1.5rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(176,0,15,0.15);
}

/* Image wrapper con overlay */
.carousel-card-media { position: relative; }

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.carousel-card .product-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.carousel-card:hover .product-img {
  transform: scale(1.03);
}

/* Color overlay — mix-blend-mode:multiply on white background
   Only tints the opaque pixels of the product image.
   Transparent PNG pixels are NOT affected. */
.product-color-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  background-color: transparent;
  transition: background-color 0.4s ease;
  pointer-events: none;
}

.product-color-overlay.blend-screen {
  mix-blend-mode: screen;
}

/* Card body */
.carousel-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-title {
  font-weight: 700;
  color: #1A1A1A;
  font-size: 1.1rem;
}

.product-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

.product-price {
  font-weight: 800;
  color: #B0000F;
  font-size: 1.2rem;
  margin-top: 0.4rem;
}

.product-actions {
  margin-top: 0.75rem;
}

.btn-add-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

/* Carousel arrows */
.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(26,26,26,0.85);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(176,0,15,0.9);
  transform: scale(1.08);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot.is-active {
  background: #B0000F;
  border-color: #B0000F;
  transform: scale(1.2);
}

.carousel-dot:hover {
  border-color: #B0000F;
}

/* ================= CARRITO DE COMPRAS ================= */
.cart-widget {
  position: fixed;
  bottom: 110px; /* un poco encima del WhatsApp */
  right: 25px;
  z-index: 998;
}

.cart-toggle {
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.cart-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.cart-count {
  background: #B0000F;
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Panel del carrito */
.cart-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  padding: 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-panel.open {
  display: flex;
}

.cart-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #1A1A1A;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  align-items: center;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 600;
}

.cart-item-qty {
  font-size: 0.8rem;
  color: #555;
}

.cart-item-price {
  font-weight: 600;
  color: #B0000F;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #B0000F;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-empty {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.cart-total span {
  font-weight: 700;
  color: #1A1A1A;
}

.cart-checkout {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Responsivo carrito / productos */
@media (max-width: 480px) {
  .cart-panel {
    width: 280px;
    right: -10px;
  }
}
/* ================= CONTACT PAGE ================= */

.contact-page {
  background: #F2F2F2;
  min-height: 100vh;
  padding-top: 7rem; /* espacio bajo navbar */
  text-align: center;
}

.contact-container {
  max-width: 700px;
  margin: auto;
  padding: 2rem;
}

.contact-page h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #1A1A1A;
}

.contact-intro {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}

/* FORMULARIO */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #B0000F;
  border-color: #B0000F;
}

.contact-form button {
  background: #B0000F;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: .5rem;
}

.contact-form button:hover {
  background: #8B000C;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* INFO DE CONTACTO */
.contact-info {
  background: #fff;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.contact-info h3 {
  font-size: 1.3rem;
  color: #B0000F;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #1A1A1A;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-container {
    padding: 1.5rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
  .contact-info {
    padding: 1.5rem;
  }
}

/* ================= AJUSTE DE TEXTO PARA PÁGINAS DE SERVICIO ================= */

/* Justificar todos los párrafos */
.service-content p,
.service-aside p,
.service-step p {
  text-align: justify !important;
  line-height: 1.5;
}

/* Títulos alineados a la izquierda */
.service-content h2,
.service-content h3,
.service-content h4,
.service-aside h3,
.service-steps h3 {
  text-align: left !important;
}

/* Listas alineadas a la izquierda */
.service-list,
.service-list li,
.service-aside ul,
.service-aside li {
  text-align: justify !important;
  padding-left: 2% !important; 
}

/* Breadcrumb y hero alineado a la izquierda */
.service-hero,
.service-hero-inner,
.service-breadcrumb {
  text-align: left !important;
}

/* CTA final alineado a la izquierda */
.service-cta h2,
.service-cta p {
  text-align: left !important;
}

/* ======== FOTO PRINCIPAL DE SERVICIO ======== */
.service-image {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.service-image img {
  width: 100%;
  max-width: 850px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(176, 0, 15, 0.25); /* tono corporativo */
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.logo-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-img {
  height: 50px;   /* tamaño más pequeño y elegante */
  width: auto;
}

@media (max-width: 768px) {
  .logo-img {
    height: 24px;
  }
}

/* ================= MODAL FEEDBACK GLOBAL ================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 90%;
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  position: relative;
  text-align: left;
  border-top: 4px solid #B0000F;
  animation: modal-pop 0.25s ease-out;
}

.modal-box h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  color: #1A1A1A;
}

.modal-box p {
  margin-bottom: 1.2rem;
  color: #333;
  line-height: 1.6;
}

.modal-button {
  width: 100%;
  text-align: center;
}

/* Botón cerrar (X) */
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #777;
}

.modal-close:hover {
  color: #B0000F;
}

/* Variantes éxito / error / info */
.modal-box.success {
  border-top-color: #28a745;
}

.modal-box.error {
  border-top-color: #B0000F;
}

.modal-box.info {
  border-top-color: #1A1A1A;
}

@keyframes modal-pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Contenedor general del selector de color */
.product-colors {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #1A1A1A;
}

.product-colors-label {
  font-weight: 600;
  color: #555;
}

.color-name-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

/* Contenedor de las bolitas */
.product-colors-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Bolita de color — ahora usa inline style para el background */
.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Estado activo */
.color-swatch.is-active {
  border-color: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(176,0,15,0.2);
  transform: scale(1.15);
}

.color-swatch:hover {
  transform: scale(1.15);
  border-color: #888;
}

.hamburger span {
  background: #1A1A1A;
}

/* ===== Quick View Modal ===== */
.qv-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 18px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qv-overlay.open{ display: flex; }

.qv-modal{
  width: min(980px, 96vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  animation: modal-pop 0.3s ease-out;
}

.qv-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  z-index: 5;
  transition: background 0.2s ease;
}
.qv-close:hover { background: rgba(176,0,15,0.8); }

.qv-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.qv-gallery{
  background: #ffffff;
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qv-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.qv-mainimg{
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  display: block;
}

#qvColorOverlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  background-color: transparent;
  transition: background-color 0.4s ease;
  pointer-events: none;
  border-radius: 12px;
}

#qvColorOverlay.blend-screen {
  mix-blend-mode: screen;
}

.qv-thumbs{
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.qv-thumb{
  flex: 1;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.qv-thumb:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
}

.qv-info{
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.qv-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
}
.qv-desc {
  color: #555;
  line-height: 1.6;
}
.qv-price{
  font-weight: 800;
  color: #B0000F;
  font-size: 1.3rem;
  margin: 6px 0;
}

.qv-colors {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

@media (max-width: 768px){
  .qv-grid{ grid-template-columns: 1fr; }
  .qv-mainimg{ height: 280px; }
}

/* Lupita (quickview button) */
.quickview-btn{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(26,26,26,0.75);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  z-index: 5;
}

.quickview-btn:hover{
  transform: translateY(-2px) scale(1.05);
  background: rgba(176,0,15,0.9);
  box-shadow: 0 14px 30px rgba(0,0,0,0.33);
}

.quickview-btn:active{ transform: scale(0.98); }
.quickview-btn:focus-visible{
  outline: 3px solid rgba(176,0,15,0.45);
  outline-offset: 2px;
}

.qv-icon{
  width: 20px;
  height: 20px;
}

/* ===== Carousel responsive ===== */
@media (max-width: 900px) {
  .carousel-card { flex: 0 0 280px; }
  .carousel-arrow { width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  .carousel-card { flex: 0 0 calc(100vw - 4rem); }
  .carousel-section { padding: 0 0.5rem 2rem; }
  .carousel-arrow { display: none; }
  .carousel-card .product-img { height: 240px; }
}

/* CLIENTS */
.clients .clients-intro{
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
  opacity: .9;
}

.clients-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.client-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.client-card img{
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  filter: grayscale(60%);
  opacity: .9;
  transition: filter .2s ease, opacity .2s ease;
}

.client-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.client-card:hover img{
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1100px){
  .clients-grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px){
  .clients-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ================= FORM ERROR ================= */
.form-error {
  background: #fff0f0;
  color: #B0000F;
  border: 1px solid rgba(176,0,15,0.25);
  border-left: 4px solid #B0000F;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

