    /* ======= Base ======= */
:root{
  --rojo:#c40000;
  --rojo-osc:#a00000;
  --gris:#e9e9e9;
  --negro:#111;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:'Roboto',sans-serif;
  color:#000;
  background:#fff;
  scroll-behavior:smooth;
}
h1,h2{font-family:'Rajdhani',sans-serif; margin:0 0 14px 0}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:80px 0}

/* ======= Header ======= */
header{
  position:fixed; top:0; left:0; right:0;
  background:rgb(196, 0, 0);
  backdrop-filter:saturate(140%) blur(2px);
  display:flex; align-items:center; justify-content:space-between;
  height: 70px;   /* valor fijo para todo momento */
  padding: 0 28px;
  z-index:1000;
  transition:all .3s ease;
  border-bottom:1px solid rgba(255,255,255,.1);
}
header.scrolled{ padding:6px 22px; height: 55px;   /* sigue igual */
  padding: 0 22px;  background:rgba(196, 0, 0, 0.781) }
.logo img {
  height: 60px;              /* tamaño inicial más grande */
  transition: height .3s ease, transform .3s ease;
}

header.scrolled .logo img {
  height: 45px;              /* tamaño reducido al hacer scroll */
  transform: scale(0.95);    /* efecto extra si quieres suavizar */
}
nav ul{ list-style:none; display:flex; gap:24px; margin:0; padding:0 }

nav a {
  position: relative;
  color: #fff; /* color del texto por defecto */
  text-decoration: none;
  font-size: 0.9rem;   /* 🔹 más compacto */
  font-weight: 600;
  padding: 4px 10px;   /* 🔹 menos espacio horizontal */
  letter-spacing: .3px;
  border-radius: 6px;
  background-color: transparent;
  transition: all 0.3s ease; /* animación suave para fondo y color */
}
/* En pantallas grandes se ve compacto, en móviles lo dejamos más chico */
@media (max-width: 640px) {
  nav a {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}
nav a:hover,
nav a.active {
  color: #c40000; /* color del texto al estar activo o hover */
  background-color: #fff; /* fondo blanco sólido */
  transform: scale(1.05); /* efecto sutil de “zoom” */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* sombra moderna */
  }

/* ========================= */
/* ===== Carrusel 1 =========*/
/* ========================= */
/* ======= Título del Carrusel 1 ======= */
.hero-title {
  position: absolute;
  top: 50%;                /* centrado vertical */
  left: 50%;               /* centrado horizontal */
  transform: translate(-50%, -50%);
  color: #fff;             /* texto blanco */
  font-size: 4rem;       /* tamaño grande */
  font-weight: 700;
  text-align: center;
  z-index: 10;             /* arriba de las imágenes */
  text-shadow: 2px 2px 12px rgba(0,0,0,0.7); /* contraste */
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 2px;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}
.carrusel1 {
  position: relative;
  width: 100%;
  height: 75vh;              /* ajusta la altura a tu gusto */
  overflow: hidden;
  margin-top: 70px; /* igual a la altura del header */
}

.c1-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.c1-slide.active {
  opacity: 1;
  z-index: 1;
}

.c1-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* rellena manteniendo proporción */
  object-position: 50% 50%;   /* centro inicial */
  transform: scale(1);
  transition: transform 6s ease-in-out, object-position 6s ease-in-out;
  will-change: transform, object-position;
}

/* ====== Efectos dinámicos ====== */
.c1-slide.zoom img {
  will-change: transform, object-position; /* evita regla vacía y mejora rendimiento */
}

.c1-slide.slide-left img {
  transform: translateX(-10%) scale(1.1);
}

.c1-slide.slide-right img {
  transform: translateX(10%) scale(1.1);
}

.c1-slide.slide-up img {
  transform: translateY(-10%) scale(1.1);
}

.c1-slide.slide-down img {
  transform: translateY(10%) scale(1.1);
}

/* ======= Quiénes somos ======= */
.quienes {
  position: relative;
  background: url('../img/quienes-bg.jpg') center/cover no-repeat;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 60px 20px;
}

.quienes-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  gap: 30px;
}

.quienes-texto {
  flex: 2;
  text-align: left;
}

.quienes-texto p {
  margin-bottom: 1em;
  line-height: 1.6;
}

.quienes-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.quienes-img img {
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quienes-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .quienes-box {
    flex-direction: column;
    text-align: center;
  }
  .quienes-texto {
    text-align: center;
  }
}


.quienes-extra:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}


/* ======= Carrusel 2 (manual) ======= */
/* Subir ligeramente "A tu medida" */
#amedida {
  margin-top: -80px;  /* súbelo 40px (ajusta el valor a tu gusto) */
}
.amedida{ background:#fff; text-align:center }
.amedida .sub{ color:#444; margin-bottom:18px }
.c2-frame {
  position: relative;
  margin: 0 auto;
  width: min(800px, 92vw);
  border: 2px solid var(--gris);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.c2-track {
  display: flex;
  transition: transform .5s ease;
}

.c2-slide {
  min-width: 100%;
}

.c2-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

/* Flechas Carrusel 2 */
.c2-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .3s ease, transform .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.c2-nav:hover {
  background: var(--rojo);
  transform: translateY(-50%) scale(1.1);
}

.c2-nav.prev { left: 14px; }
.c2-nav.next { right: 14px; }
/* Dots de navegación */
.c2-dots {
  margin-top: 12px;
  text-align: center;
}
.c2-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bbb;
  margin: 0 5px;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.c2-dots span.active { background: var(--rojo); }
.c2-dots span:hover { transform: scale(1.15); }


/* ======= Catálogo ======= */
.catalogo{ background:#f7f7f7 }
.catalogo h2{ text-align:center }
.filtros{ display:flex; gap:10px; justify-content:center; margin:16px 0 26px }
#searchInput, #filterSelect{
  padding:10px 12px; border:1px solid #ccc; border-radius:8px; min-width:220px; font-size:15px;
}
:root{
  --rojo:#c40000;
  --rojo-osc:#a00000;
  --gris:#e9e9e9;
}

body{margin:0;padding:0;font-family:'Roboto',sans-serif;color:#000;scroll-behavior:smooth;}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px auto;
  width: min(1100px, 95vw);
}

.card {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden; /* 🔥 esto es lo importante */
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.card .card-body{
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card h3{margin:0; font-size:1.05rem;}
.card p{margin:0; color:#444; font-size:.95rem;}

@media(max-width:980px){.grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:640px){.grid{grid-template-columns:1fr;}}

.pagination{ text-align:center; margin-top:18px }
.page-btn{
  border:1px solid var(--rojo); background:#fff; color:var(--rojo);
  padding:8px 12px; margin:0 4px; border-radius:8px; cursor:pointer; font-weight:600;
}
.page-btn.active{ background:var(--rojo); color:#fff }
.page-btn:hover{ background:var(--rojo-osc); color:#fff; border-color:var(--rojo-osc) }

/* ======= Modal ======= */
.modal{ position:fixed; inset:0; background:rgba(0,0,0,.7); display:none; align-items:center; justify-content:center; z-index:1200 }
.modal.open{ display:flex }
.modal-content{
  background:#fff; border-radius:16px; padding:16px; width:min(560px,92vw);
  box-shadow:0 10px 30px rgba(0,0,0,.35); text-align:center; position:relative;
}
.modal-close{
  position:absolute; top:8px; right:12px; border:none; background:transparent; font-size:32px; cursor:pointer; color:#333;
}
#modalImg{ width:100%; height:auto; border-radius:10px; margin-bottom:10px }
#modalTitle{ margin:6px 0 4px 0 }
#modalDesc{ color:#444 }

/* ======= Contacto ======= */
.contacto-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* izquierda info, derecha form */
  gap: 40px;
  align-items: start; /* alinea arriba */
}

.info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 2px solid #dbdbdb;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.info-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}

.info-item .ico {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: none; /* respeta el color blanco original */
}

.info-item h4 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: var(--rojo);
}

.info-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

/* ===== Formulario moderno ===== */
.form {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  border: 2px solid #dbdbdb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 10px rgba(196,0,0,0.35);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form button {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-osc));
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196,0,0,0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr; /* stack en mobile */
  }
}
/* ======= Footer ======= */
footer {
  background: #111;
  color: #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

footer .social {
  display: flex;
  gap: 18px;
}

footer .social img {
  width: 28px;
  height: 28px;
  filter: invert(16%) sepia(90%) saturate(7000%) hue-rotate(354deg) brightness(95%) contrast(100%);
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

footer .social a:hover img {
  transform: scale(1.2);
  opacity: 1;
}
/* ======= Responsive ======= */
@media (max-width: 980px){
  .grid{ grid-template-columns:repeat(2,1fr) }
  .c2-slide img{ height:260px }
}
@media (max-width: 640px){
  nav ul{ gap:14px }
  .grid{ grid-template-columns:1fr }
  .contacto-grid{ grid-template-columns:1fr }
  .carrusel1{ height:52vh; min-height:320px }
  .c2-slide img{ height:220px }
}
html {
  scroll-behavior: smooth;
}
/* ===== Lightbox (multi imagen) ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0,0,0,0.9);
  padding: 60px 20px;
  overflow: auto;

  /* Para centrar contenido cuando está abierto */
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

#lightbox-img {
  position: relative;
  z-index: 10;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.lightbox-inner {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  overflow: hidden; /* IMPORTANTE para efecto slide */
}


#lightbox-img.fade-in {
  opacity: 1;
}

@keyframes zoom {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox-close {
  position: fixed;
  top: 20px; 
  right: 28px;
  color: #fff;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: 0;
  line-height: 1;
}
.lightbox-close:hover { color: #bbb; }

/* Flechas */
.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; 
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}
.lightbox-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.05);
}
.lightbox-btn.prev { left: 16px; }
.lightbox-btn.next { right: 16px; }

@media (max-width: 640px){
  .lightbox-content { max-width: 92%; max-height: 78vh; }
  .lightbox-btn { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-close { right: 18px; font-size: 36px; }
}
/* Animación fade para el lightbox */
#lightbox-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#lightbox-img.fade-in {
  opacity: 1;
}

/* ======= Lightbox Carrusel (mejorado) ======= */
.lightbox-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  overflow: hidden; /* para que las imágenes deslicen dentro del contenedor */
}

#lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
  z-index: 10;
}

.lightbox-btn.prev,
.lightbox-btn.next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 30;
}
.lightbox-btn.prev:hover,
.lightbox-btn.next:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: 0;
  line-height: 1;
  z-index: 30;
}
.lightbox-close:hover { color: #bbb; }

/* Responsive */
@media(max-width:640px){
  .lightbox-btn { width:44px; height:44px; font-size:26px; }
  .lightbox-close { right:18px; font-size:36px; }
}

/* ======= Animaciones de secciones ======= */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section.hidden {
  opacity: 0;
  transform: translateY(40px);
}
/* ======= A tu medida en grid ======= */
.amedida-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.amedida-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.amedida-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .amedida-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Botón flotante WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(100%) contrast(100%);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* 🔹 Ocultar en pantallas menores a 768px (móvil y tablet) */
@media (max-width: 768px) {
  .whatsapp-float {
    display: none;
  }
}