/*---------------------------------------------*/
/* Bloque 1 */
/*---------------------------------------------*/
.bloque-1 {
    position: relative;
    display: flex;
    flex-direction: column;
}

.bloque-1 .top-section {
    background: #000; /* Fondo negro */
    height: 300px; /* Altura fija para el bloque amarillo */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bloque-1 .side-image-left,
.bloque-1 .side-image-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px; /* Duplicamos el tamaño */
    height: auto;
    object-fit: contain;
}

.bloque-1 .side-image-left {
    left: 0; /* Pegado al borde izquierdo */
}

.bloque-1 .side-image-right {
    right: 0; /* Pegado al borde derecho */
}

.bloque-1 .content-center {
    text-align: center;
    z-index: 1;
    max-width: 500px; /* Limita el ancho del texto */
    margin: 0 auto; /* Centra el texto horizontalmente */
    word-wrap: break-word; /* Permite dividir texto largo en varias líneas */
} 

.bloque-1 .content-center h1 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Area Black';
}

.bloque-1 .content-center h2 {
    font-size: 20px;
    color: #fff;
    font-family: 'Area';
}

.bloque-1 .bottom-section {
    width: 100%;
}

.bloque-1 .bottom-section img {
    width: 100%;
    height: 300px; /* Altura igual al bloque amarillo */
    object-fit: cover;
    display: block;
}

/*----------------------------------------------*/
/*  BLOQUE 2 – “Personalizado o de nuestro stock” */
/*----------------------------------------------*/

.bloque-2{
    background:#000;            /* fondo negro */
    color:#fff;                 /* texto blanco */
    padding:60px 0 80px;       /* aire antes del título y después del bloque 1 */
}

/* 80 % del ancho total y centrado */
.bloque-2 .container{
    width:80%;
    margin:0 auto;
}

/* Título centrado */
.bloque-2 .titulo-bloque{
    text-align:center;
    color:#fff;
    font-size: 35px;
    font-family: "Area";
    padding-bottom: 20px;
}

/*------------------------------------------------*/
/*  Columnas lado a lado (lista ↔ imagen)          */
/*------------------------------------------------*/
.bloque-2 .columnas{
    display:flex;
    flex-wrap:nowrap;           /* evita que la imagen salte debajo en desktop */
    justify-content:center;     /* centra horizontalmente */
    align-items:center;         /* centra verticalmente lista ↔ imagen */
    gap:40px;                   /* espacio entre columnas */
}

.bloque-2 .columna.izquierda{
    flex:1 1 50%;
}

.bloque-2 .columna.derecha{
    flex:1 1 50%;
    display:flex;
    justify-content:center;
}

/*------------------------------------------------*/
/*  Lista de bullets                               */
/*------------------------------------------------*/
.bloque-2 .bullets{
    list-style:none;
    padding:0;
    margin:0;
}

.bloque-2 .bullets li{
    position:relative;
    padding-left:30px;          /* deja espacio para la banderita */
    margin-bottom:18px;
    line-height:1.4;
    transition:color .3s;
}

/* 0. Por defecto: SIN banderita */
.bloque-2 .bullets li::before{
    display:none;
}

/* 1. Bullets 2 y 4 → triángulo naranja visible    */
.bloque-2 .bullets li:nth-child(2)::before,
.bloque-2 .bullets li:nth-child(4)::before{
    display:inline-block;
    content:'';
    position:absolute;
    left:0;
    top:8px;
    width:16px;                /* tamaño visible */
    height:10px;
    background:#EC9706;        /* naranja corporativo */
    clip-path:polygon(0 0,100% 50%,0 100%); /* forma triangular */
}

/* Hover: texto naranja */
.bloque-2 .bullets li:hover{
    color:#EC9706;
}

/*------------------------------------------------*/
/*  Imagen                                         */
/*------------------------------------------------*/
.bloque-2 .columna.derecha img{
    width:100%;
    max-width:500px;            /* tamaño máximo sugerido */
    height:auto;
    object-fit:cover;
    border-radius:12px;
}




/* ========================================
   BLOQUE 3: “Stock: Nuestras categorías más compradas”
   ======================================== */

/* 1 y 5 · Fondo negro + 20 px aire arriba / abajo */
.bloque-3{
  background:#000;
  padding:20px 0;                /* 20 px arriba y abajo */
}

/* 2 · Contenedor global: grid 4 × 2 centrado al 80 % */
.bloque-3 .fichas-container{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:repeat(2,auto);
  gap:20px;
  width:80%;                     /* mismo margen izq./der. */
  margin:0 auto;                 /* centra horizontalmente */
}

/* Título */
.bloque-3 h2{
  font-family:'Area';
  text-align:center;
  color:#fff;
  margin-bottom:32px;
}

/* Sub-grid para las 6 fichas (2 × 3) */
.bloque-3 .grid-fichas{
  grid-column:1 / span 3;        /* columnas 1-3 */
  grid-row:1 / span 2;           /* 2 filas     */
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(2,auto);
  gap:20px;
}

/* ========================================
   Fichas estándar
   ======================================== */
.bloque-3 .ficha{
  display:flex;
  justify-content:space-between; /* texto izq., imagen der. */
  align-items:center;
  gap:20px;
  background:#7F7F7F;            /* 4 · gris claro */
  border-radius:10px;
  padding:20px;
  color:#000;                    /* texto negro p/ contraste */
  font-family:'Area';
}

/* Contenedor del texto y botón */
.bloque-3 .ficha-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  font-family:'Area';
}

.bloque-3 .ficha-content h3{
  font-size:18px;
  margin:0;
  color:#000;                    /* asegura contraste */
}

/* Botón de precio */
.bloque-3 .btn-precio{
  display:inline-block;
  background:transparent;
  border:1px solid #fff;
  color:#fff;
  border-radius:20px;
  padding:0 10px;
  font-size:13px;
  font-family:'Area';
  margin-top:8px;
  white-space:nowrap;
  transition:background-color .3s,color .3s;
}
.bloque-3 .btn-precio:hover{
  background:#fff;
  color:#000;
}

/* Contenedor de la imagen */
.bloque-3 .ficha-image{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.bloque-3 .ficha-image img{
  max-width: 100%;
  height:auto;
  display:block;
}

/* ========================================
   Ficha destacada (col 4 · 2 filas)
   ======================================== */
.bloque-3 .ficha-destacada{
  grid-column:4;
  grid-row:1 / span 2;
  background:#7F7F7F;            /* mismo gris claro */
  border-radius:10px;
  padding:20px;
  color:#000;
  position:relative;             /* para posicionar la imagen */
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:20px;
}

/* Botón CTA dentro de la destacada */
.bloque-3 .cta-btn{
  display:inline-block;
  padding:8px 32px;
  background:#fff;
  color:#000;
  border:none;
  border-radius:24px;
  font-weight:600;
  cursor:pointer;
  font-family:'Area';
  transition:background-color .3s,color .3s;
}
.bloque-3 .cta-btn:hover{
  background:#000;
  color:#fff;
}

/* Imagen “cabinet” pegada abajo-derecha */
/*.bloque-3 .ficha-destacada img{*/
/*  position:absolute;*/
/*  right:12px;*/
/*  bottom:0;*/
/*  width:40%;*/
/*  height:auto;*/
/*  object-fit:contain;*/
/*}*/

/*============================================================*/
/*  BLOQUE 4 – Galería con hotspots + columna de texto         */
/*============================================================*/

/*----- Sección completa -----*/
.bloque-4{
  background:#000;
  padding:60px 0;
  color:#fff;
  font-family:'Area', sans-serif;
}

/*============================================================*/
/*  CONTENEDOR 2 COLUMNAS                                     */
/*============================================================*/
.bloque-4 > .container-b4{         /* ⬅︎ más específico */
  width:80%;
  margin:0 auto;
  display:flex !important;        /* fuerza flex sin importar reglas previas */
  flex-direction:row;             /* imagen izq. / texto der. */
  flex-wrap:nowrap;
  align-items:flex-start;
  gap:40px;
}

/*============================================================*/
/*  COLUMNA IZQUIERDA · GALERÍA                               */
/*============================================================*/
.gallery-col{
  flex:0 0 50%;                   /* fija 50 % y evita estirar */
  max-width:50%;
  position:relative;
  order:1;
}

/* Marco cuadrado de la galería */
.gallery-wrapper{
  position:relative;
  overflow:visible;               /* deja que el tooltip sobresalga */
  border-radius:12px;
  aspect-ratio:1 / 1;             /* cuadrado */
  width:100%;
  height:auto;
  min-height:0;                   /* anula min-height heredado */
}

/* Slides */
.gallery-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .5s ease;
  pointer-events:none;
}
.gallery-slide.active{
  opacity:1;
  z-index:2;
  pointer-events:auto;
}

.gallery-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Hotspots */
.hotspot{
  position:absolute;
  left:var(--x);
  top:var(--y);
  transform:translate(-50%,-50%);
  width:20px;
  height:20px;
  border-radius:50%;
  background:#EC9706;
  border:2px solid #fff;
  cursor:pointer;
  z-index:3;
}
.hotspot .tooltip{
  position:absolute;
  left:50%;
  top:-10px;
  transform:translate(-50%,-110%) scale(.9);
  background:#fff;
  color:#000;
  padding:6px 10px;
  border-radius:6px;
  font-size:12px;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s, transform .25s, visibility .25s;
}
.hotspot:hover .tooltip{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,-120%) scale(1);
}

/* Flechas */
.gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.6);
  color:#fff;
  font-size:20px;
  line-height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.gallery-nav.prev{left:-18px;}
.gallery-nav.next{right:-18px;}
.gallery-nav:hover{background:rgba(0,0,0,.8);}

/*============================================================*/
/*  COLUMNA DERECHA · TEXTO & CTA                              */
/*============================================================*/
.info-col{
  flex:0 0 50%;
  max-width:50%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:24px;
  order:2;
}

.info-col h2{
  font-size:32px;
  margin:0;
  line-height:1.2;
}

.list-check{
  list-style:none;
  padding:0;
  margin:0;
}
.list-check li{
  position:relative;
  padding-left:32px;
  margin-bottom:16px;
  font-size:16px;
  line-height:1.5;
}
.list-check li::before{
  content:"\2713";
  position:absolute;
  left:0;
  top:0;
  width:24px;
  height:24px;
  background:#EC9706;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:bold;
}

.btn-compra{
  align-self:flex-start;
  background:#fff;
  color:#000;
  padding:12px 32px;
  border-radius:24px;
  font-weight:600;
  text-decoration:none;
  transition:background .3s,color .3s;
}
.btn-compra:hover{
  background:#EC9706;
  color:#fff;
}

.info-col .titular-b4{
  font-size:42px;        /* más grande que el h2 anterior */
  line-height:1.15;
  font-weight:700;
  margin:0 0 24px 0;
  color:#fff;            /* blanco puro sobre fondo negro */
  font-family:'Area Black', sans-serif;
}

/*---------------------------------------------*/
/* Bloque 5 */
/*---------------------------------------------*/
.bloque-5 {
    background: #000;
    padding: 40px 40px;
    text-align: center;
    position: relative; /* Asegura que el título se mantenga al principio */
}

.bloque-5 h2 {
    margin-bottom: 80px; /* Separa el título de las fichas */
    font-size: 28px;
    font-family: 'Area';
    position: relative;
    z-index: 5; /* Asegura que el título siempre esté por encima de las fichas */
    color: #fff;
}

.bloque-5 .columnas {
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: flex-start;
    margin-top: 20px; /* Añade espacio debajo del título */
    z-index: 2; /* Las fichas están en una capa inferior al título */
}

.bloque-5 .tarjeta {
    position: relative;
    width: 22%;
    padding: 20px;
    background: transparent;
    border-radius: 10px;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    transform: translateY(var(--offset, 0)); /* Escalera ascendente */
    z-index: calc(10 - var(--indice, 0)); /* Asegura que las fichas superiores estén por encima visualmente */
}

.bloque-5 .tarjeta:nth-child(1) {
    --offset: 0px;
}

.bloque-5 .tarjeta:nth-child(2) {
    --offset: -20px;
}

.bloque-5 .tarjeta:nth-child(3) {
    --offset: -40px;
}

.bloque-5 .tarjeta:nth-child(4) {
    --offset: -60px;
}

.bloque-5 .contenido-tarjeta {
    text-align: left;
}

.bloque-5 .contenido-tarjeta h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Area Black';
    font-weight: 'bold';
}

.bloque-5 .contenido-tarjeta h4 {
    font-size: 18px;
    font-family: 'Area';
    margin-bottom: 5px;
    color: #666;
}

.bloque-5 .contenido-tarjeta p {
    font-size: 14px;
    font-family: 'Area';
    line-height: 1.5;
    color: #fff;
}

/* Botón de popup dentro de la tarjeta */
.bloque-5 .boton-popup {
    position: absolute;
    top: 10px;
    right: 80px; /* Mueve el botón a la esquina superior derecha */
    background: #666;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    z-index: 2;
    /*opacity: 0.6;*/
}

/* Popup */
.bloque-5 .popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* Fondo con transparencia */
    border-radius: 10px;
    display: none;
    z-index: 999;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.bloque-5 .popup.mostrar {
    display: block;
    transform: scale(1);
    opacity: 1;
}

.bloque-5 .popup-content {
    padding: 10px;
    font-size: 12px;
    line-height: 1; /* Menor espaciado entre renglones */
    text-align: left;
}

.bloque-5 .popup-content p {
    padding: 5px;
    font-size: 14px;
    line-height: 1; /* Menor espaciado entre renglones */
    text-align: left;
}

.bloque-5 .popup .cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: red;
    cursor: pointer;
}

/* =============================
   Bloque 6: Galería de muebles por categoría
   ============================= */
/* Bloque 6 (fondo negro, texto blanco, etc.) */
.bloque-6 {
  background-color: #000;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

/* Títulos */
.titulo-galeria {
  font-size: 32px;
  margin-bottom: 10px;
  font-family: 'Area Black';
}
.subtitulo-galeria {
  color: #bbb;
  font-size: 16px;
  margin-bottom: 30px;
  font-family: 'Area';
}

/* Botones de categoría (píldoras) */
.categoria-botones {
  margin-bottom: 30px;
  display: inline-flex;
  flex-wrap: wrap;
  font-family: 'Area';
  gap: 10px;
}
.categoria-btn {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Area';
}
.categoria-btn:hover {
  background-color: #fff;
  color: #000; 
}
.categoria-btn.active {
  background-color: #fff;
  color: #000;
}

/* Galería */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  grid-gap: 20px;
}
.galeria-item {
  background-color: #111;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.galeria-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/*---------------------------------------------*/
/* Bloque 7 */
/*---------------------------------------------*/
.bloque-7 {
  /* Ajusta el fondo y el color de texto a tu diseño */
  background: #000;
  color: #fff;
  padding: 40px;
  text-align: center;
  position: relative;
}

.bloque-7 h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.bloque-7 h3 {
  margin-bottom: 30px;
  font-weight: normal;
  color: #666;
  font-size: 18px;
}

/* Contenedor general del carrusel */
.bloque-7 .testimonial-carousel {
  position: relative;
  max-width: 1000px; /* Ajusta según tu diseño */
  margin: 0 auto;
  overflow: hidden;  /* Para "cortar" las fichas laterales */
}

/* Flechas de navegación */
.bloque-7 .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #333;
  background: rgba(255, 255, 255, 0.6);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3; /* Por encima de las tarjetas */
  transition: background 0.3s;
}

.bloque-7 .arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.bloque-7 .arrow-left {
  left: 10px;
}

.bloque-7 .arrow-right {
  right: 10px;
}

/* Galería que contiene las tarjetas */
.bloque-7 .galeria {
  display: flex;            /* Pone las fichas en fila */
  transition: transform 0.5s ease;  /* Suaviza el movimiento al cambiar */
}

.bloque-7 .testimonial-card {
  display: flex;
  flex-direction: column;
  /* Mantén el resto de estilos que ya tienes */
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 20px;
  margin: 0 5px; /* Asegúrate de usar márgenes positivos */
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  min-height: 300px;
}

.bloque-7 .testimonial-card .client-bottom-row {
  margin-top: auto; /* Esto empuja este bloque al fondo */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bloque-7 .testimonial-card.active {
  transform: scale(1);
  z-index: 2;
}



/* Tarjeta adyacente (inmediata a la activa) se muestra intermedia */
.bloque-7 .testimonial-card.adjacent {
  transform: scale(0.9);
}


/* Estilo para el símbolo de apertura de comillas */
.bloque-7 .testimonial-card .quote-symbol {
  font-size: 28px;
  margin-bottom: 5px;
  text-align: left;
}

/* Texto de testimonio en letra más pequeña */
.bloque-7 .testimonial-card .testimonial-text {
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  margin-bottom: 15px;
}

/* Fila inferior con foto, nombre y botón */
.bloque-7 .testimonial-card .client-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Contenedor de foto y nombre */
.bloque-7 .testimonial-card .client-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Foto del cliente: pequeña y circular */
.bloque-7 .testimonial-card .client-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Nombre del cliente */
.bloque-7 .testimonial-card .client-name {
  font-size: 14px;
  font-weight: bold;
}

/* Botón en forma de flecha (cabeza de flecha) */
.bloque-7 .testimonial-card .arrow-button {
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}

.bloque-7 .testimonial-card .arrow-button:hover {
  color: #cccccc;
}


/* La tarjeta central (activa) se ve por encima y sin corte */
.bloque-7 .testimonial-card.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

