/* =====================================================
   INDEX DE GAMAS · ESTILO EDITORIAL (TIPO CUBRO)
   USO: Shortcode de gamas (vista índice)
===================================================== */

/* CONTENEDOR GENERAL */
.rf-gamas {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* GRID PRINCIPAL */
.rf-gamas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 40px;
}

/* TARJETA COMPLETA (ENLACE) */
.rf-gama-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* CONTENEDOR DE IMAGEN */
.rf-gama-image {
    width: 100%;
    aspect-ratio: 3 / 4;           /* Vertical elegante */
    overflow: hidden;
    background: #f2f2f2;
}

/* IMAGEN */
.rf-gama-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* HOVER SUAVE */
.rf-gama-card:hover .rf-gama-image img {
    transform: scale(1.04);
}

/* TÍTULO */
.rf-gama-title {
    margin-top: 14px;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* TABLET */
@media (max-width: 1024px) {
    .rf-gamas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* MÓVIL */
@media (max-width: 640px) {
    .rf-gamas {
        padding: 24px 16px;
    }

    .rf-gamas-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rf-gama-title {
        font-size: 15px;
    }
}


/* ======================================================
   GAMA · VISTA DETALLE
====================================================== */

.rf-gama-detalle {
    max-width: 2140px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* HERO */
.rf-gama-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.rf-gama-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.rf-gama-texto h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
}

.rf-gama-texto p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 520px;
}

/* SUBGAMAS */
.rf-subgamas {
    display: flex;
    gap: 32px;
    margin-bottom: 60px;
    font-weight: 500;
}

.rf-subgamas span {
    cursor: pointer;
    opacity: 0.7;
}

.rf-subgamas span:hover {
    opacity: 1;
}

/* ITEMS */
.rf-gama-items h3 {
    font-size: 24px;
    margin-bottom: 30px;
}



.rf-item {
    text-align: center;
}

.rf-item img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    
}

.rf-item span {
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .rf-gama-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rf-gama-texto h1 {
        font-size: 32px;
    }
}

/* ======================================================
   🎨 COLOR / TEXTURA · HOVER AMBIENTE
====================================================== */

.rf-color-swatch {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0px;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* Capa textura */
.rf-color-texture,
.rf-color-ambient {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .35s ease, transform .45s ease;
}

/* Estado inicial */
.rf-color-texture {
    opacity: 1;
    z-index: 1;
}

.rf-color-ambient {
    opacity: 0;
    z-index: 2;
    transform: scale(1.05);
}

/* Hover escritorio */
@media (hover: hover) and (pointer: fine) {

    .rf-color-card:hover .rf-color-ambient {
        opacity: 1;
        transform: scale(1);
    }

    .rf-color-card:hover .rf-color-texture {
        opacity: 0;
    }
}

/* Suavidad extra */
.rf-color-card {
    transition: transform .25s ease;
}

.rf-color-card:hover {
    transform: translateY(-2px);
}


/* ======================================================
   📱 MÓVIL
====================================================== */

@media (max-width: 768px) {

    .rf-color-label {
        font-size: 0.85rem;
    }

    .rf-color-swatch {
        
    }
}


/* ======================================================
   GAMA HERO — BACKGROUND MODE
   ====================================================== */

.rf-gama-hero {
    position: relative;
    height: 50vh;                 /* 🔑 lo que tú pedías */
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: flex-end;        /* texto abajo */
    
}

/* Overlay suave para legibilidad */
.rf-gama-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.1)
    );
    z-index: 1;
}

/* Contenido */
.rf-gama-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
    max-width: 720px;
}

.rf-gama-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rf-gama-hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.95;
}


/* ======================================================
   FILTRO DE ITEMS POR SUBGAMA
   ====================================================== */

.rf-items-grid .rf-item {
    transition: 
        opacity .25s ease,
        transform .25s ease;
}

.rf-items-grid .rf-item.is-hidden {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    display: none;
}

/* COLOR CARD */
.rf-color-card {
    cursor: pointer;
}

.rf-color-swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    
    border: 1px solid #ddd;
}

.rf-color-label {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* TABS */
.rf-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.rf-tab {
    padding: 0.75rem 0;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.rf-tab.active {
    border-bottom-color: #000;
    color: #000;
}

/* MOBILE */
@media (max-width: 768px) {
    .rf-tab {
        font-size: 0.95rem;
    }
}

/* ======================================================
   🖼️ RENDERFRONT LIGHTBOX
====================================================== */

.rf-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 999999; /* por encima de Elementor, header, todo */
    display: none;
}

.rf-lightbox.active {
    display: block;
}

.rf-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.rf-lightbox-slider img {
    max-height: 90vh;
    max-width: 90vw;
    display: none;
}

.rf-lightbox-slider img.active {
    display: block;
}

/* Controles */
.rf-lightbox-close,
.rf-lightbox-prev,
.rf-lightbox-next {
    position: absolute;
    color: #fff;
    font-size: 4rem;
    cursor: pointer;
    user-select: none;
}

.rf-lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
}

.rf-lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.rf-lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* ======================================================
   🔍 LIGHTBOX ZOOM
====================================================== */

.rf-lightbox-slider {
    overflow: hidden;
}

.rf-lightbox-slider img {
    transition: transform 0.15s ease-out;
    cursor: zoom-in;
    will-change: transform;
}

/* Zoom activo */
.rf-lightbox-slider img.is-zoomed {
    cursor: zoom-out;
}



/* ======================================================
   GAMA · DESCRIPCIÓN EDITORIAL
====================================================== */

.rf-gama-descripcion {
    padding-top: 2rem;
}

.rf-gama-descripcion-inner {
    
    line-height: 1.8;
    color: #111;
}

/* Párrafos */
.rf-gama-descripcion-inner p {
    margin-bottom: 1.2rem;
}

/* Negritas suaves */
.rf-gama-descripcion-inner strong {
    font-weight: 600;
}

/* Enlaces */
.rf-gama-descripcion-inner a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* MOBILE */
@media (max-width: 768px) {
    .rf-gama-descripcion-inner {
         
        line-height: 1.7;
    }
}


.rf-gama-principal-item {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
    text-decoration: none;
}

.rf-gama-principal-item:hover {
    color: #000;
}

.rf-gama-principal-item.active {
    color: #000;
    border-bottom-color: #000;
}


/* CONTENEDOR DE CADA BLOQUE */
.rf-gama-descripcion-inner details {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  margin: 0;
}

/* ÚLTIMO ELEMENTO */
.rf-gama-descripcion-inner details:last-of-type {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* SUMMARY */
.rf-gama-descripcion-inner summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
   
  letter-spacing: 0.02em;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s ease;
  
}

/* QUITAR TRIÁNGULO NATIVO */
.rf-gama-descripcion-inner summary::-webkit-details-marker {
  display: none;
}

/* ICONO + / − */
.rf-gama-descripcion-inner summary::after {
  content: "+";
  
  line-height: 1;
  color: #1a1a1a;
  transition: opacity 0.25s ease;
}

/* ESTADO ABIERTO */
.rf-gama-descripcion-inner details[open] summary {
  color: #000;
}

.rf-gama-descripcion-inner details[open] summary::after {
  content: "–";
}

/* CONTENIDO INTERIOR */
.rf-gama-descripcion-inner details > *:not(summary) {
  margin-top: 14px;
 
  line-height: 1.6;
  color: #4a4a4a;
  padding:20px;
}

/* LISTAS */
.rf-gama-descripcion-inner ul {
  padding-left: 18px;
  margin: 10px 0;
}

.rf-gama-descripcion-inner li {
  margin-bottom: 6px;
}

/* MICRO FONDO AL ABRIR */
.rf-gama-descripcion-inner details {
  transition: background-color 0.3s ease;
}

.rf-gama-descripcion-inner details[open] {
 
}


.rf-cta-muestras {
    margin-top: 80px;
    padding: 60px 40px;
    background: #f6f4f1;
    border-radius: 12px;
    display: flex;
    justify-content: center;
}

.rf-cta-muestras-content {
    max-width: 640px;
    text-align: center;
}

.rf-cta-muestras h3 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 16px;
}

.rf-cta-muestras p {
   
    line-height: 1.6;
    color: #555;
    margin-bottom: 32px;
}

.rf-cta-muestras-btn {
    display: inline-block;
    padding: 14px 32px;
    backgro
