.modal-body{
	 max-height:85vh; 
    overflow-y: auto;
	
	
}


.modal-body-lista_foreros_estacion {
    max-height:85vh; 
    overflow-y: auto;
}


.ultima_actualizacion{
	
	position:relative;
	float: right;
	border:0px solid #638BAF;
	margin-top: 30px;
	width:30%;

padding:0;
}

.cabecera_buscador{
border:0px solid #638BAF;
position: relative;	
width:95%;
}

.cabecera_buscador select {
 
	
	width: 100% !important;
    background-color:#AFC4E8;
    color: #203C7F;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    text-indent: 0.01px;
    text-overflow: '';
    padding: 10px 10px;
   
	font-size:20px;
}

.cabecera_buscador label::before {
	
    font-family: "Font Awesome 5 Free";
    content: "\f078";
    display: flex;
    position: absolute;
    top: 0px;
    right: 10px;
    bottom: 0;
    z-index: 1;
    justify-content: center;
    align-items: center;
    line-height: 0;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    pointer-events: none;
    width: 16px;
    font-size: 16px;
    color: #203C7F;
 
}


a.whitelink{
	
	color:#FFFFFF;	
	
}

a:hover.whitelink{
	
	color:#FFF;	
	
}


a{
	color:blue;
	text-decoration:none;	
	cursor:pointer;
}
a:hover{
	color:#FFF;
	transition: all 0.3s;
}
#hueco_cabecero{
	background:#5d7695;	
}

header{
	box-sizing: border-box;
	background:#5d7695;
}
header .container{
	padding:0px;
}
header a{
	
	display: inline-block;
	font-family: "Montserrat";
	font-weight:300;
	color: #fff;
	font-size: 45px;
	width:auto;
	padding: 30px 0px;
	text-align: left;
	text-transform: uppercase;
	padding-top: 35px;
	letter-spacing:0px;
	padding-bottom:30px;
	line-height:33px;
	margin-left: 10px;
}
header a .nombre_blog{
	font-weight:600;
}
header a .lema {
	font-family:"Open Sans", Arial, Helvetica, sans-serif;	
    display: inline-block;
    font-size: 14px;
    padding-top: 7px;
	text-transform:none;
	text-align:center;
}
header a{
	padding:20px 0px;
	padding-top:30px;	
}


main .container{
	padding-top:0px;	
	padding-left:0px;
	padding-right:0px;
	border-style:none;
	height:100%;
	
	
}


nav#submenu{
	margin-bottom:15px;
	text-align:left;
	font-size: 15px;
	background:#d84848;
}
nav#submenu .container{
	padding:0px;	
}
nav#submenu ul{
	text-align: left;
}
nav#submenu ul li a {
    padding: 10px 10px;
    text-transform: uppercase;
    font-size: 13px;
	font-weight:600;
	text-align:left;
	color:#FFFFFF;
}
nav#submenu ul li a.selected,
nav#submenu ul li:hover > a,
nav#submenu ul li a:hover{
	background:#C00D1E;
	transition: all 0.3s;
}

#franja_megabanner { 
	margin-bottom: 0;
}

#clear, .clear {
	clear: both;
}

nav#submenu input[type=text] {
 
  padding: 6px;
 
  margin-top: 0px;
  
  font-size: 15px;
 

	margin-left:5px;
	border:0px solid red;
	
	
	
}

/*ESTILOS MATERIAL 2022*/

img.imagen_marca{
	display:flex;
	width:150px;
	padding:20px;
	
}

ul.listado_marcas{
	display:flex;
	flex-flow:wrap;
	list-style: none;
	border: 0px solid #638BAF;	
	justify-content: space-around;
	margin:0;
	padding:0;
}


li.listado_marcas{
	display:flex;
	border: 1px solid #e4e4e4;	
	
	align-items: center;
	margin:5px;
	-webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
	padding:0px;
}

a.enlace_past_marca{
	display:flex;
	
	border: 1px solid #FFFFFF;	
	margin:0px;
	padding:0px;
	
}


a:hover.enlace_past_marca{
	display:flex;
	
	border: 1px solid red;	
	
}

ul.listado_colecciones{
	display:flex;
	flex-flow:wrap;
	list-style: none;
	border: 0px solid #638BAF;	
	justify-content: space-around;
	margin:0;
	padding:0;
	flex-direction:row;
	
}
li.listado_colecciones{
	display:flex;
	border: 1px solid #e4e4e4;
	width:320px;
	margin:5px;
	-webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
	padding:0px;
	
}

a.enlace_lista_colec{
	display:flex;
	color:#000000;
	border: 0px solid #FFFFFF;	
	flex-direction:column;
}


a:hover.enlace_lista_colec{
	display:flex;
	color:#000000;
	border: 0px solid red;	
}

.coleccion_lista_detalles{
	display:flex;
	border: 0px solid red;	
	
	width:318px;
	
}

img.thumb_marca_lista_col{
	
	display:flex;
	width:100px;
	border: 0px solid red;	
	margin:8px;
	
}


.titulo_lista_col_pub{
	display:flex;
	border: 0px solid red;	
	font-weight: bolder;
	font-size: 20px;
	background-color: #103d63;
	color:#FFFF;
	padding:8px;
	margin:0px;
	
}

.titulo_lista_col_priv{
	display:flex;
	border: 0px solid red;	
	font-weight: bolder;
	font-size: 20px;
	background-color: #103d63;
	color:#FFFF;
	padding:8px;
	margin:0px;
	
}



@media only screen and (max-width: 767px) {

header .ultima_actualizacion {
		display: none;
	}
}


/***CODIGO GEMMINI PARA FICHA MARCA **/

/* ==========================================================================
   PÁGINA DETALLE DE MARCA - NEVASPORT V3 (VERSIÓN BLINDADA MÓVIL)
   ========================================================================== */

/* 1. CONTENEDOR MAESTRO */
.marca-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 2. ESTRUCTURA CABECERA */
.marca-header-wrapper {
    display: flex;
    flex-direction: row;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 25px;
    align-items: stretch;
}
/* 3. BLOQUE IDENTIDAD CON FONDO */
.marca-identidad-bg {
    flex: 1;
    position: relative !important;
    padding: 30px !important;
    border-radius: 12px;
    background-size: cover !important;
    background-position: center !important;
    /* ALTURA MINIMA PARA QUE NO SE ENCOJA EN DESKTOP */
    min-height: 350px !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}
/* Capa de contraste suave */
.marca-identidad-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.marca-logo, .marca-info-central {
    position: relative;
    z-index: 2;
}

/* 4. LOGO (ARRIBA IZQUIERDA) */
.marca-logo {
    position: relative !important;
    z-index: 2 !important;
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
   margin: 20px 20px 8px 20px; 
}

.marca-logo h1 {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Aseguramos que la imagen dentro del H1 no se descontrole */
.marca-logo h1 img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.marca-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* POSICIONAMIENTO DENTRO DE LA IMAGEN */
.marca-info-central {
   position: absolute !important;
    bottom: 20px !important; /* Separación del borde inferior */
    left: 20px !important;   /* Separación del borde izquierdo */
    z-index: 10 !important;
}

.marca-info-central h1 {
    background-color: #000 !important;
    color: #fff !important;
    margin: 0 !important;
    /* Reducimos padding: antes 15px 35px */
    padding: 10px 25px !important; 
    /* Reducimos fuente: antes 2rem */
    font-size: 1.4rem !important; 
    font-family: 'Arial Black', Gadget, sans-serif !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* 6. BANNER DESKTOP */
.marca-banner-outer {
    flex: 0 0 300px;
}
.publicidad-300x250 {
    width: 300px;
    height: 250px;
    background: #f4f4f4;
    border: 1px solid #eee;
}

.marca-seccion-titulo {
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: left;
    padding: 0 5px; /* Pequeño respiro en desktop */
}

.marca-seccion-titulo h2 {
    font-size: 1.5rem; /* Tamaño contenido y elegante */
    color: #111;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
    line-height: 1.2;
    font-family: 'Arial Black', Gadget, sans-serif;
}

/* Línea negra decorativa que une con el estilo de la cabecera */
.subtitulo-linea {
    width: 45px;
    height: 5px;
    background-color: #000;
    border-radius: 1px;
}

/* CONTENEDOR GRID */
.marca-productos-grid {
   display: grid;
    /* Forzamos 4 columnas iguales en desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; /* Reducimos un poco el gap para que quepan mejor */
    padding: 20px 5px;
}

/* TARJETA DE PRODUCTO */
.producto-card {
background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px; /* Reducimos ligeramente el padding interno */
    text-align: center;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* TEXTOS */


.producto-categoria {
  display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-top: 2px;
}



/* ESQUÍS: Contenedor alto, pero imagen controlada */
.card-esqui {
 height: 150px; /* Altura reducida: suficiente para ver el esquí horizontal */
    margin: 5px 0;
}
.card-esqui img {
   max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* BOTAS: Contenedor más bajo */
.card-bota {
    height: 200px;
}
.card-bota  img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* DESCRIPCIÓN Y RATING */
.producto-descripcion {
  height: 45px; /* Limitamos a 2-3 líneas máximo */
    line-height: 1.2;
    margin-bottom: 8px;
    font-size: 0.85rem;
    overflow: hidden;
}

.leer-mas {
    color: #0073e6;
    cursor: pointer;
}

.dots {
    color: #ff0000; /* Rojo como en el pantallazo */
    font-size: 1.2rem;
}

.dot-gray {
    color: #ccc;
}

.producto-stats {
    font-size: 0.8rem;
    color: #d0021b;
    margin-top: 5px;
}
/* CONTENEDOR DE CABECERA DE SECCIÓN */
.marca-seccion-header {
   margin-top: 40px;
    margin-bottom: 5px; /* Antes estaba en 25px */
    padding: 0 5px;
}
/* METADATOS (Gamas, Esquís, etc.) */
.marca-metadatos {
   margin-top: 10px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* Eliminamos cualquier margen extra aquí para que el separador suba */
    margin-bottom: 0 !important;
}

.marca-metadatos span {
    font-size: 0.85rem; /* Letra más pequeña como pediste */
    color: #666; /* Gris elegante */
    text-transform: none;
    font-family: Arial, sans-serif;
}
.marca-metadatos span strong {
    color: #333; /* Resaltamos ligeramente la etiqueta */
    font-weight: 600;
}

.separador-categoria {
   grid-column: 1 / -1;
    text-align: left;
    /* Reducimos el margen superior de 30px a 15px */
    margin-top: 15px !important; 
    margin-bottom: 10px;
    padding: 10px 5px;
}

.separador-categoria h3 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 700;
    margin: 0 0 8px 0; /* Aseguramos que el h3 no tenga margen superior propio */
}

.linea-separador {
    width: 100%;
    height: 1px;
    background-color: #eee; /* Línea fina y sutil */
}

/* Ajustes menores para las tarjetas en desktop */
.producto-modelo {
    font-size: 0.95rem;
    font-family: 'Arial Black', sans-serif;
}

/* CONTENEDOR DEL HTML INYECTADO */
.categoria-contenido-html {
    margin: 15px 0;
    width: 100%;
}

/* Estilo para imágenes dentro del HTML */
.categoria-contenido-html img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
}

/* Estilo para párrafos dentro del HTML */
.categoria-contenido-html p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
     max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Línea de cierre del bloque */
.linea-separador {
    width: 100%;
    height: 1px;
    background-color: #eee;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ENVOLTORIO DEL ENLACE */
.producto-card-link {
    text-decoration: none !important; /* Elimina el subrayado de enlace */
    color: inherit !important;       /* Mantiene los colores que definimos */
    display: block;                  /* Hace que todo el área sea clickable */
    transition: transform 0.2s ease; /* Pequeño efecto de escala al pulsar */
}

.producto-card-link:active {
    transform: scale(0.98); /* Efecto de pulsación en móvil */
}

/* AJUSTES EN LA TARJETA AL HACER HOVER */
.producto-card {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Evita que los elementos se separen demasiado */
}

.producto-card-link:hover .producto-card {
    border-color: #000; /* El borde se oscurece al pasar el ratón */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.producto-card-link:hover .producto-modelo {
    color: #000; /* Asegura que el título no cambie a azul de enlace */
}

/* CONTENEDOR DE BOTONES */
.marca-filtros-tipos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px 0;
    padding: 0 5px;
}

/* ESTILO DE BOTÓN BASE */
.filtro-btn {
	
	display: inline-block !important;
    text-decoration: none !important; /* Quita el subrayado del enlace */
    cursor: pointer !important;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 25px; /* Estilo 'Pill' */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

/* 2. El estado hover: Aseguramos visibilidad */
.filtro-btn:hover {
    background-color: #e0e0e0 !important;
    color: #000000 !important; /* Asegura texto negro sobre fondo gris */
    border-color: #999 !important;
}

/* 3. Estados activos (mantenemos los que ya tenías) */
.filtro-btn.active, 
.filtro-btn.active-rojo {
    background-color: #d0021b !important;
    color: #ffffff !important;
    border-color: #d0021b !important;
}


.marca-selector-bar { width: 100%; background: #f4f4f4; padding: 20px; margin-bottom: 25px; border-radius: 8px; display: flex; align-items: center; gap: 15px; box-sizing: border-box; }
.select-v3-grande { flex: 1; max-width: 400px; padding: 12px 15px; font-size: 1.1rem; border: 2px solid #ddd; border-radius: 6px; }
.selector-temporada-bg {
    /* Usamos hex con transparencia (los dos últimos dígitos 99 equivalen a ~60% de opacidad) */
    /* Si prefieres RGBA, asegúrate de que no haya otro background-color debajo */
    background-color: #00000099 !important; 
     
	box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Sombra para "flotar" sobre la foto */
    color: #fff !important;
    border: 2px solid #e62117 !important; /* Borde rojo Nevasport para que destaque */
    padding: 12px 40px 12px 20px !important;
    font-size: 0.9rem !important;
    font-family: 'Arial Black', Gadget, sans-serif !important;
    text-transform: uppercase !important;
    cursor: pointer;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    text-overflow: ellipsis;
	backdrop-filter: blur(4px); 
-webkit-backdrop-filter: blur(4px);
    /* Forzamos que el elemento sea capaz de mostrar transparencia */
    opacity: 1; 
}
.selector-temporada-bg:hover {
    background-color: rgba(0, 0, 0, 0.9) !important; /* Se oscurece un poco al pasar el ratón */
    border-color: #e62117 !important; /* El borde se vuelve rojo Nevasport */
}
/* ==========================================================================
   VERSION MOVIL OPTIMIZADA - SIN DESPLAZAMIENTO LATERAL
   ========================================================================== */

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

@media (max-width: 900px) {
    /* Evitamos que el scroll lateral aparezca en el móvil */
   html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    .marca-container {
       padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    /* CABECERA: Sangre total usando márgenes negativos controlados */
  .marca-header-wrapper {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
   .marca-identidad-bg {
        display: flex !important;
        flex-direction: column !important;
        
        /* Forzamos el ancho de la pantalla completa */
        width: 100vw !important;
        min-width: 100vw !important;
        
        /* Nos movemos al borde izquierdo absoluto de la pantalla */
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* Eliminamos cualquier margen que Nevasport nos imponga */
        margin: 0 !important;
        border-radius: 0 !important;
        
        /* Ajustamos el contenido interno (Logo y Nombre) */
        padding: 30px 25px !important;
        box-sizing: border-box !important;
    }

    /* AJUSTE DEL TÍTULO (Para que no se corte por la izquierda) */
   .marca-info-central {
        bottom: 15px !important;
        left: 15px !important;
        width: calc(100% - 30px) !important; /* Casi todo el ancho en móvil */
    }

    .marca-info-central h1 {
        font-size: 0.95rem !important; 
        padding: 7px 15px 7px 25px !important; /* Más padding a la izquierda para seguridad */
    }

    /* BANNER Y PUBLICIDAD */
    .marca-banner-outer {
        width: 100% !important;
        margin: 20px 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* CONTENIDOS CON MARGEN DE LECTURA (Aquí protegemos el diseño) */
    .marca-seccion-titulo,
    .marca-productos-grid,
    .marca-seccion-header,
    .separador-categoria,
    .marca-metadatos {
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
	
	.marca-seccion-header {
        padding-left: 15px !important;  /* Reducimos de 25px o 30px a 15px */
        padding-right: 15px !important;
        margin-top: 20px !important;
    }
	
	.categoria-contenido-html {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
	
	.categoria-contenido-html p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        /* Aseguramos que el texto no tenga márgenes internos heredados */
        padding: 0 !important; 
    }
	
	.separador-categoria {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

 .marca-productos-grid {
        display: grid !important;
        /* El valor 1fr obliga a que la columna ocupe el 100% del espacio disponible */
        grid-template-columns: 1fr !important; 
        gap: 20px !important; /* Aumentamos un poco el espacio vertical entre esquís */
        padding-left: 0px !important;
        padding-right: 0px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .marca-metadatos {
        gap: 10px 15px;
    }
	
	.producto-card {
        width: 100% !important;
        margin: 0 auto !important;
    }
	
	.marca-filtros-tipos {
        padding: 0 15px; /* Alineado con tus nuevos márgenes */
        gap: 8px;
        /* Opcional: si quieres que se deslicen lateralmente sin ocupar mucho espacio vertical */
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Oculta scroll en Firefox */
    }
    .marca-filtros-tipos::-webkit-scrollbar { display: none; } /* Oculta scroll en Chrome/Safari */

    .filtro-btn {
        white-space: nowrap; /* Evita que el texto salte de línea */
        padding: 7px 15px;
        font-size: 0.85rem;
    }
	

	
	
}

/* FIN CODIGO FICHA MARCA */


/*DETALLE PRODUCTO */

/* CONTENEDOR PRINCIPAL */
.detalle-producto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

/* HERO SECTION */
.detalle-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.detalle-foto img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.marca-tag {
    text-transform: uppercase;
    color: #666;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.detalle-basicos h1 {
    font-family: 'Arial Black', sans-serif;
    font-size: 2.8rem;
    margin: 5px 0;
    text-transform: uppercase;
}

/* GRID DE ESPECIFICACIONES */
.detalle-specs-grid {
background-color: #f9f9f9 !important;
    border-radius: 12px !important;
    margin: 40px auto !important;
    padding: 25px 35px !important;
    
    /* Ancho adaptado */
    width: fit-content !important; /* La caja se ajusta al contenido */
    min-width: 300px !important;
    max-width: 900px !important;
    
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px 50px !important; /* Espacio entre filas y entre las dos columnas */
}

.spec-item {
 display: flex !important;
    justify-content: flex-start !important; /* Alineados al inicio (izquierda) */
    align-items: baseline !important; /* Alinea los textos por su base */
    border-bottom: 1px solid #eee !important;
    padding: 8px 0 !important;
}

.spec-item strong {
   font-size: 0.75rem !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-right: 10px !important; /* ESPACIO FIJO entre título y valor */
    white-space: nowrap !important;
}

.spec-item span {
    font-size: 0.95rem !important;
    color: #333 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Quitamos el borde al último para que quede limpio */
.spec-item:nth-last-child(-n+2) {
    border-bottom: none !important;
}

/* CONTENEDOR DE METADATOS SUPERIOR */
.detalle-meta-header {
   display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* NOMBRE DE LA MARCA */
.detalle-marca-name {
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* SEPARADOR SUTIL */
.detalle-separador {
color: #ddd;
    font-weight: 300;
}

/* EL ENLACE DE TEMPORADA (Ajustado) */
.temporada-link {
    color: #666;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
}

.temporada-link:hover {
    color: #000 !important;
    opacity: 1 !important;
    text-decoration: underline !important;
}

/* CONTENEDOR DE MEDIDAS BAJO EL ESQUÍ */
.detalle-cotas-visual {
   display: flex;
    align-items: flex-start;
    width: 100%;
    /* Ajustamos este max-width al ancho real de tu imagen de esquí en desktop */
    max-width: 900px; 
    margin: 15px auto;
    position: relative;
    font-family: Arial, sans-serif;
}

/* CADA INDICADOR (FLECHA + NÚMERO) */
.cota-indicador {
   display: flex;
    flex-direction: column;
    align-items: center;
    color: #444;
    /* Esto es clave: cada uno ocupa su lugar */
    flex: 1;
}

/* POSICIONAMIENTO QUIRÚRGICO */
.cota-indicador.espatula {
    align-items: flex-start; /* Alinea a la izquierda del todo */
    padding-left: 2%; /* Ajusta este % según dónde empiece la punta en tu foto */
}

.cota-indicador.patin {
    align-items: center; /* Se queda siempre en el centro exacto */
}

.cota-indicador.cola {
    align-items: flex-end; /* Alinea a la derecha del todo */
    padding-right: 2%; /* Ajusta este % según dónde termine la cola en tu foto */
}

.flecha-up {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}
.cota-valor {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 2px;
}

.detalle-sub-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
}

/* ESTILO DEL PRECIO RECOMENDADO */
.precio-recomendado {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.label-pvp {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.valor-pvp {
    font-size: 1.2rem;
    font-weight: 900;
    color: #d0021b; /* Rojo sutil para destacar el valor, o negro #000 para sobriedad */
    font-family: 'Arial Black', sans-serif;
}

.reviews-contenedor {
    margin-top: 40px;
    padding: 0 15px;
}

.reviews-titulo {
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.review-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 1 y 2: AVATAR Y NOMBRE */
.review-usuario {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Redondeado total */
    object-fit: cover;
    border: 2px solid #eee;
}

.usuario-nombre {
    font-weight: 800;
    font-size: 1rem;
    color: #333;
}

/* 3: VALORACIONES TÉCNICAS */
.review-ratings {
    display: grid;
    gap: 8px;
}

.rating-line {
    display: flex !important;
    justify-content: flex-start !important; /* Pegamos el contenido a la izquierda */
    align-items: center !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.rating-line span {
    min-width: 180px !important; /* Ancho fijo para que todos los puntos empiecen en la misma vertical */
    margin-right: 15px !important; /* Espacio exacto entre el texto y los puntos */
    font-size: 0.9rem !important;
    color: #555 !important;
	
}

.dot-red { color: #d0021b; margin-right: 2px; }
.dot-gray { color: #e0e0e0; margin-right: 2px; }

/* VALORACIÓN GLOBAL DESTACADA */
.rating-global-box {
    display: flex !important;
    justify-content: flex-start !important; /* También lo pegamos a la izquierda */
    gap: 30px !important; /* Espacio mayor para que destaque */
    margin-top: 15px !important;
    padding-top: 10px !important;
    border-top: 1px dashed #ddd !important;
    font-weight: 800 !important;
}

.stars-global {
    color: #000;
    letter-spacing: 2px;
}

.reviews-contenedor {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee; /* Una línea sutil para separar la ficha de las opiniones */
}

.review-comentario-texto {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f9f9f9; /* Fondo gris muy suave para resaltar el texto */
    border-left: 3px solid #000; /* Detalle elegante en negro para mantener el estilo de marca */
    font-style: italic; /* Estilo de "cita" o testimonio */
}

.review-comentario-texto p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.marca-link-seo {
font-weight: 900 !important;
    color: #000 !important; /* Forzamos negro */
    text-transform: uppercase !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}
.marca-link-seo:hover {
  color: #333 !important; /* En lugar de blanco, un gris oscuro para que se note el cambio */
    opacity: 1 !important;   /* Aseguramos que no se vuelva transparente */
    text-decoration: underline !important; /* Añadimos subrayado para que se note que es clicable */
}

.rating-line .dots {
    display: flex !important;
    gap: 4px !important; /* Espacio entre cada puntito */
}

.btn-valorar-skis {
    display: inline-block;
    background-color: #000; /* Negro para coherencia con la marca */
    color: #fff !important;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #000;
}

.btn-valorar-skis:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px); /* Efecto de elevación sutil */
}

.pastilla-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #ccc !important;
}

/* --- CORRECCIÓN DEFINITIVA PARA ESCRITORIO --- */
@media (min-width: 901px) {
    
    /* Limitamos el ancho de la línea para que no se expandan */
    .review-card .rating-line {
        display: flex !important;
        justify-content: flex-start !important; /* Alineación a la izquierda */
        width: 350px !important; /* ANCHO TOTAL MÁXIMO de la leyenda + puntos */
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 8px 0 !important;
        margin-bottom: 5px !important;
    }

    /* La palabra (Pista, Estabilidad...) */
    .review-card .rating-line span:first-child {
        flex: 0 0 180px !important; /* Ocupa exactamente 180px, ni más ni menos */
        margin-right: 10px !important; /* El hueco pegado que buscas */
        text-align: left !important;
        color: #333 !important;
    }

    /* Los puntos rojos */
    .review-card .rating-line .dots {
        display: flex !important;
        justify-content: flex-start !important;
        flex: 1 !important; /* Ocupa el resto del ancho de los 350px */
        margin-left: 0 !important;
        padding: 0 !important;
    }

    /* Ajuste para que la valoración global no flote lejos */
    .review-card .rating-global-box {
        width: 350px !important;
        justify-content: flex-start !important;
        gap: 20px !important;
    }
}
/* RESPONSIVE MÓVIL */
@media (max-width: 900px) {
    .detalle-basicos {
        text-align: center;
    }
.detalle-specs-grid {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        padding: 15px !important;
        margin: 20px 0 !important;
    }
	.detalle-meta-header {
        justify-content: center;
        flex-wrap: wrap; /* Por si el nombre de la marca es muy largo */
    }
    .detalle-marca-name, .temporada-link {
       color: #666;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    }
	
	.detalle-cotas-visual {
        max-width: 100%;
        padding: 0 10px;
    }
    .cota-valor {
        font-size: 0.8rem;
    }
	
	.cota-indicador.espatula { padding-left: 5%; }
    .cota-indicador.cola { padding-right: 5%; }
	
	.detalle-sub-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        align-items: center;
    }
    
    .precio-recomendado {
        align-items: center;
    }
    
    .valor-pvp {
        font-size: 1.1rem;
    }
	
	.review-card { padding: 15px; }
    .rating-line { font-size: 0.8rem; }
	
	.review-comentario-texto {
        padding: 10px;
        font-size: 0.85rem;
    }
	
	.spec-item {
        padding: 12px 0 !important; /* Un poco más de aire para pulsar con el dedo */
    }
    /* Estilo para los títulos (COTAS, RADIO...) */
    .spec-item strong {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 3px !important;
    }
	
	.rating-line {
        justify-content: space-between !important; /* En móvil sí suele quedar mejor a los extremos */
    }
  .rating-line {
        display: flex !important;
        justify-content: space-between !important; /* En móvil sí aprovechamos los bordes */
    }
	
	.btn-valorar-skis {
        display: block; /* Ocupa todo el ancho disponible en móvil */
        width: 100%;
        box-sizing: border-box;
        font-size: 0.85rem;
        padding: 18px 20px;
    }
	
	.historico-grid {
        justify-content: center; /* Centra las pastillas en móvil */
    }
    .pastilla-producto {
        width: 44% !important; /* Dos columnas en móvil para que no sean minúsculas */
    }
}


/* Contenedor del título y badges */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.producto-modelo {
    margin: 0;
    flex: 1; /* El nombre ocupa el espacio necesario */
}

.badges-inline {
    display: flex;
    gap: 5px;
}

.badge {
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
}

.badge-mujer {
    background-color: #9b59b6; /* Morado */
}

.badge-nuevo {
    background-color: #e74c3c; /* Rojo intenso */
}

.producto-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.dots {
    color: #f1c40f; /* Color dorado/amarillo para los puntos activos */
    letter-spacing: 2px;
    font-size: 14px;
}

.dot-gray {
    color: #e0e0e0; /* Gris para los puntos vacíos */
}

.nota-numero {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    background: #f5f5f5;
    padding: 1px 5px;
    border-radius: 4px;
}

.producto-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f2f2f2; /* Línea divisoria muy suave */
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dots {
    color: #f1c40f;
    font-size: 14px;
    letter-spacing: 1px;
}

.dot-gray { color: #e0e0e0; }

.nota-txt {
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 5px;
    color: #333;
}

.badges-inline {
    display: flex;
    gap: 4px;
}

.badge {
    font-size: 9px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
    color: #fff;
}

.badge-mujer { background-color: #a349a4; }
.badge-nuevo { background-color: #d9534f; }


.review-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.user-info { display: flex; align-items: center; gap: 12px; }
.avatar-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.ski-info-header { text-align: right; }
.marca-tag { color: #d0021b; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }

/* EL CUERPO EN ESCRITORIO */
.review-body { display: flex; gap: 35px; align-items: flex-start; }
.col-foto { flex: 0 0 140px; text-align: center; }
.main-ski-img { max-width: 100%; height: auto; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
.col-datos { flex: 1; }

.rating-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.rating-table td { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.dots-cell { text-align: right; color: #d0021b; letter-spacing: 3px; font-size: 1.1rem; }
.dots-empty { color: #eee; }

.review-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #ddd; margin-top: 20px; padding-top: 15px; }

/* EFECTOS HOVER (Desktop) */
.item-marca-rect:hover .logo-box { border-color: #d0021b; }
.item-marca-rect:hover img { filter: grayscale(0%) !important; }

/* --- ADAPTACIÓN PARA MÓVIL (iPhone SE y similares) --- */
@media (max-width: 768px) {
    .review-header { flex-direction: column; gap: 15px; text-align: left; }
    .ski-info-header { text-align: left; border-top: 1px solid #f9f9f9; padding-top: 10px; width: 100%; }
    
    .review-body { flex-direction: column; align-items: center; gap: 20px; }
    
    .col-foto { 
        width: 100%; 
        background: #f9f9f9; 
        padding: 20px 0; 
        border-radius: 8px;
        flex: none;
    }
    .main-ski-img { max-height: 250px; } /* Evitamos que sea infinito hacia abajo */
    
    .col-datos { width: 100%; }
    
    .rating-table td { font-size: 0.85rem; }
    
    .link-detalle-mobile { display: block !important; margin-top: 15px; font-weight: 800; color: #000; text-decoration: underline; }
    .btn-ficha-desktop { display: none; } /* Ocultamos el botón grande en el pie para no saturar */
    
    .review-footer { flex-direction: row; justify-content: space-between; }
	

	
	.item-banner-grid {
        /* Forzamos que el banner ocupe las 2 columnas en móvil */
        grid-column: span 2 !important;
        grid-row: auto !important;
        padding: 20px 0 !important;
    }
	
	/* Aseguramos que el banner no se corte si el móvil es muy estrecho */
    .slot-300-250 {
        max-width: 100% !important;
        transform: scale(0.9); /* Un pequeño ajuste para asegurar que entre en el SE */
    }

    .banner-intercalado {
        /* En móvil el banner ocupa todo el ancho de la fila (las 2 columnas) */
        grid-column: span 2 !important;
        grid-row: auto !important;
        order: 0; /* Asegura que respete el orden del contador PHP */
        padding: 15px 0;
        border: none !important;
        background: transparent !important;
    }
}

@media (min-width: 769px) {
    .link-detalle-mobile { display: none; } /* Solo visible en móvil */
	
	.banner-intercalado {
        /* En desktop hacemos que ocupe el espacio de 2x2 tarjetas para que el 300x250 quepa bien */
        grid-column: span 2;
        grid-row: span 2;
    }
	
	.item-banner-grid {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* AJUSTE PARA IPHONE SE / MÓVILES ESTRECHOS */
@media (max-width: 480px) {


    h2 {
        font-size: 1.2rem !important; /* Reducimos un poco el modelo en móvil para que no salte de línea */
        word-wrap: break-word;
    }

    .ski-display-container {
        padding: 20px 5px !important;
    }

    .ski-hero-img {
        max-height: 280px !important; /* Ajuste para que quepa bien en pantalla móvil */
    }

    .ratings-content-box {
        grid-template-columns: 1fr !important; /* Forzamos una sola columna */
        gap: 20px !important;
    }

    /* Puntos más pequeños en móvil para que no empujen el borde */
    .ratings-content-box td:last-child span {
        letter-spacing: 2px !important;
        font-size: 0.9rem !important;
    }
}

/*FIN PAGINA VALORACIONES */


/* PAGINA HOME MATERIAL */

/* Manejo de márgenes en la Home */
.home-material-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Estilo para los mensajes del foro */
.mensaje-foro-card:hover {
    background-color: #fcfcfc !important;
}

.mensaje-foro-card:hover h4 {
    color: #d0021b !important; /* El título cambia al color corporativo al pasar el raton */
    text-decoration: underline;
}

/* OCULTAR NÚMEROS SUELTOS (Contadores de la función original) */
/* Si esos números (0, 346, 7) vienen con clases como .info_entrada o similares, los ocultamos */
.wrapper-noticias-adaptadas .info_entrada,
.wrapper-noticias-adaptadas li span.contadores {
    display: none !important;
}



/* Ajuste de Grid para móvil */
@media (max-width: 900px) {
    .grid-middle {
        grid-template-columns: 1fr !important; /* El foro y el buscador se apilan */
        gap: 30px !important;
    }
    
    .home-material-container h1 { font-size: 1.5rem !important; }
    
    /* Las noticias pasan a ser 1 por fila */
    .noticias-recientes div {
        grid-template-columns: 1fr !important;
    }
}

/* Efecto hover en noticias */
.noticias-recientes a:hover img {
    transform: scale(1.05);
}

.noticias-recientes a:hover h3 {
    text-decoration: underline;
}
/* Ajuste específico para el iPhone SE */
@media (max-width: 480px) {
    .mensaje-foro-card div[style*="display: flex"] {
        gap: 10px !important;
    }
    .mensaje-foro-card h4 {
        font-size: 0.9rem !important;
    }
}

/* Estilos para el scroll de colecciones superiores */
.colecciones-scroll::-webkit-scrollbar {
    display: none; /* Ocultamos la barra para que sea más limpio en móvil */
}

.colecciones-scroll a:active {
    transform: scale(0.95);
}

/* Efecto visual de entrada */
.colecciones-header {
    animation: fadeIn 0.8s ease-in-out;
}



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

/* Ajuste para el iPhone SE */
@media (max-width: 480px) {
    .colecciones-header h2 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
   
	
	.header-hibrido {
        flex-direction: column !important; /* Apila todo verticalmente */
    }
    .buscador-marcas-top {
        flex: 0 0 auto !important;
        order: -1; /* Esto pone el buscador de marcas ENCIMA de las colecciones en móvil */
    }
	.sidebar-top {
        flex: 1 1 auto !important;
        width: 100% !important;
        order: -1; /* Mantiene marcas y publicidad arriba en móvil */
    }
    .grid-colecciones {
        grid-template-columns: repeat(2, 1fr) !important; /* En móvil, 2 columnas fijas */
    }
	
	.grid-foros-doble {
        grid-template-columns: 1fr !important; /* Una sola columna en móvil */
        gap: 30px !important;
    }
}
@media (max-width: 600px) {
    .noticias-recientes div[style*="display: grid"] {
        grid-template-columns: 1fr !important; /* Una noticia por fila en móvil */
        gap: 40px !important;
    }
}
/* Escritorio: 3 columnas (ya definido en el style inline del PHP) */

/* Tablets y Móviles (iPhone SE incluido) */
@media (max-width: 768px) {
    .grid-noticias-doble {
        grid-template-columns: repeat(2, 1fr) !important; /* Forzamos 2 columnas */
        gap: 15px !important; /* Reducimos el espacio entre noticias */
    }

    .card-noticia .img-container {
        height: 120px !important; /* Imagen más baja para móvil */
    }

    


    .noticia-meta {
        font-size: 0.6rem !important;
    }
}
/* Escritorio: 3 columnas */
.item-noticia {
    width: calc(33.33% - 14px);
}

/* Tablets y Móviles (iPhone SE incluido) */
@media (max-width: 800px) {
    .grid-noticias-se {
        gap: 15px !important;
    }

    .item-noticia {
        width: calc(50% - 8px) !important; /* Fuerza las 2 columnas */
    }

    .img-wrap {
        height: 110px !important; /* Reduce altura de imagen para que quepan dos */
    }

    .titu-noticia {
        font-size: 0.9rem !important;
        min-height: 3.6em !important;
    }

    /* En el SE es vital quitar el extracto para que no se desborde el alto */
    .extracto-noticia {
        display: none !important;
    }
}

/* Ajuste extremo para pantallas de 320px (iPhone SE antiguo) */
@media (max-width: 320px) {
    .grid-noticias-se {
        gap: 10px !important;
    }
    .item-noticia {
        width: calc(50% - 5px) !important;
    }
}
/*FIN PAGINA HOME MATERIAL*/

/* El contenedor de productos de CADA gama */
.gama-productos-container {
   display: grid;
    /* Creamos columnas de mínimo 250px. Si hay espacio, caben 4 o 5. */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 50px; /* Espacio para que no se pegue a la siguiente gama */
    align-items: stretch;
}

/* Si quieres control total en pantallas grandes: */
@media (min-width: 1200px) {
    .gama-productos-container {
        /* Fuerza exactamente 4 columnas */
        grid-template-columns: repeat(4, 1fr);
    }
}

/* El separador de gama debe ocupar el 100% */
.separador-categoria {
    width: 100%;
    margin-top: 30px;
}

.producto-card-link {
  display: block;
    text-decoration: none;
    height: 100%;
}

.producto-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    transition: transform 0.2s;
}

/* Forzar que cada bloque de gama ocupe todo el ancho */
.bloque-gama-completo {
    display: block !important;
    width: 100% !important;
}

/* La rejilla de productos: 4 columnas en desktop */
.gama-productos-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 20px;
    width: 100%;
}

/* Si la pantalla es pequeña, ajustamos */
@media (max-width: 1200px) {
    .gama-productos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .gama-productos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gama-productos-grid { grid-template-columns: 1fr; }
}

/* Contenedor principal */
.marca-header-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Escritorio: La marca ocupa el resto y el banner 300px fijo */
.marca-header-wrapper { flex: 1; min-width: 0; }
.banner-lateral-interno { width: 300px; flex-shrink: 0; }

/* Los filtros ocupan el 100% para que siempre bajen en desktop */
.marca-filtros-tipos { width: 100%; order: 3; }

/* MÓVIL: Reordenamos */
@media (max-width: 991px) {
    .marca-header-flex { flex-direction: column; }
    .marca-header-wrapper { order: 1; }
    .marca-filtros-tipos   { order: 2; width: 100%; }
    .banner-lateral-interno { 
        order: 3; 
        width: 100% !important; 
        display: flex; 
        justify-content: center; 
    }
}

.link-cat-suave {
    display: inline-block !important;
    padding: 6px 14px !important;
    margin: 4px !important;
    background-color: #f0f2f5 !important; /* Gris muy claro */
    color: #444444 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 20px !important; /* Forma de píldora */
    transition: all 0.2s ease !important;
    border: 1px solid #e0e0e0 !important;
}

/* Efecto Hover */
.link-cat-suave:hover {
    background-color: #e4e6eb !important;
    color: #000000 !important;
    border-color: #cccccc !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}



    /* Para el punto separador, si quieres que también sea suave */
    .separador-suave {
        color: #ccc;
        margin: 0 4px;
    }

.link-autor {
    color: #222; /* Un gris casi negro, muy elegante */
    transition: all 0.3s ease;
    display: inline-block;
}

.link-autor:hover {
    color: #7b1fa2; /* Un toque del morado de "Mujer" o simplemente un gris más suave #666 */
    text-decoration: none;
    transform: translateX(3px); /* Pequeño movimiento sutil al pasar el ratón */
}

.item-noticia-material { width: 33.33%; }
    @media (max-width: 768px) {
        .item-noticia-material { width: 50% !important; }
    }
    @media (max-width: 480px) {
        .item-noticia-material { width: 100% !important; }
    }


/* Esto hace que el contenedor de resultados sea una capa flotante */
.zona-buscador-home {
    position: relative;
    z-index: 9999;
}

#resultados-busqueda-ajax {
    position: absolute;
    top: 100%; /* Empieza justo donde acaba el input */
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none; /* Se muestra vía JS */
	max-height: 450px; /* Evita que el buscador llegue hasta el final de la pantalla */
    overflow-y: auto;  /* Si hay muchos, permite hacer scroll dentro */
}

#search-input {
    cursor: text;
}

#search-input:focus {
    border-color: #000;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Contenedor general en el PHP */
.home-material-container {
    padding: 10px !important; /* Menos espacio en los bordes para ganar ancho */
}

/* Estilo Google Discovery para el buscador */
@media (max-width: 768px) {
    .zona-buscador-home {
        max-width: 100% !important; /* Ocupa todo el ancho disponible */
        margin: 10px 0 30px 0 !important; /* Pegado a los lados */
        padding: 0 !important; /* Eliminamos el padding lateral */
    }

    #search-input {
        height: 60px; /* Un poco más alto para que sea fácil tocar con el dedo */
        font-size: 1.1rem !important;
        border-radius: 12px !important; /* Esquinas menos redondeadas, más estilo "card" */
        border: 1px solid #dfe1e5 !important; /* Gris suave tipo Google */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        background-color: #f8f9fa; /* Fondo ligeramente grisáceo */
    }

    #search-input:focus {
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border-color: transparent;
    }

    /* Los resultados también deben ocupar todo el ancho */
    #resultados-busqueda-ajax {
        position: fixed; /* En móvil, que flote sobre toda la pantalla */
        top: 80px;
        left: 10px;
        right: 10px;
        width: auto;
        border-radius: 12px;
        max-height: 80vh; /* Que no se pierda por debajo */
    }
}

/* Botón de categoría seleccionada (Rojo Material) */
    .filtro-btn.active-rojo {
        background-color: #e62117 !important;
        color: #ffffff !important;
        border: 1px solid #b31a12 !important;
        font-weight: bold;
    }

    /* Botón "Todos" cuando está seleccionado (Azul Nevasport) */
    .filtro-btn.active {
        background-color: #e62117 !important;
        color: #ffffff !important;
        font-weight: bold;
    }

    /* Estilo base para los botones no seleccionados */
    .filtro-btn {
        background-color: #f8f9fa;
        color: #333;
        border: 1px solid #ddd;
        padding: 6px 12px;
        border-radius: 4px;
        transition: all 0.2s;
    }

.card-material-home {
        text-decoration: none; 
        color: inherit; 
        background: #fff; 
        border: 20px solid #eee; 
        padding: 30px 20px; 
        border-radius: 12px; 
        text-align: center; 
        transition: all 0.3s ease; /* Transición suave */
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        min-height: 160px; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }

/* Forzamos que el título de la marca NO cambie a blanco en hover */
.card-material-home:hover .marca-titulo {
    color: #333 !important; /* O el color exacto que uses para tus textos oscuros */
    text-decoration: none;
}

/* Aseguramos que el estado visitado tampoco rompa el diseño */
.card-material-home, 
.card-material-home:visited {
    text-decoration: none;
    color: inherit; /* Evita el azul/lila de los enlaces */
}

    .card-material-home:hover {
        transform: translateY(-5px); /* Se eleva */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Sombra más profunda */
        border-color: #d0021b; /* Borde rojo material */
    }
    


.card-ver-todas {
        background: #fdfdfd !important; /* Un tono casi blanco, pero distinto */
        border: 1px dashed #ccc !important; /* Borde discontinuo para indicar "más" */
    }
    
    .card-ver-todas:hover {
        border-style: solid !important;
        border-color: #004a99 !important; /* Azul Nevasport para el "Ver todas" */
    }

    .icono-plus {
        font-size: 2rem;
        color: #004a99;
        margin-bottom: 10px;
    }


.seccion-selector-temporada {
        background: #f9f9f9;
        padding: 25px;
        border-radius: 15px;
        margin: 20px 15px 30px 15px;
        border: 1px solid #eee;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .seccion-selector-temporada label {
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px;
        color: #333;
        font-size: 0.9rem;
    }

    .custom-select-wrapper {
        position: relative;
        width: 100%;
        max-width: 350px;
    }

    .selector-temp {
        width: 100%;
        padding: 12px 20px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #000;
        background-color: #fff;
        border: 2px solid #d0021b; /* Rojo Nevasport */
        border-radius: 10px;
        appearance: none; /* Quita la flecha por defecto */
        cursor: pointer;
        outline: none;
        transition: all 0.2s;
    }

    .selector-temp:hover {
        box-shadow: 0 4px 12px rgba(208, 2, 27, 0.15);
    }

    /* Flecha personalizada */
    .custom-select-wrapper::after {
        content: '▼';
        font-size: 0.8rem;
        top: 15px;
        right: 20px;
        position: absolute;
        color: #d0021b;
        pointer-events: none;
    }

/* 1. Forzamos que el título no desborde y mida siempre lo mismo */
.producto-modelo {
    font-size: 0.95rem !important; /* Un pelín más pequeño ayuda a compactar */
    line-height: 1.1;
    height: 2.2em; /* Altura fija para 2 líneas máximo */
    margin: 0;
	    color: #000;
	   font-weight: 800;
}

.producto-imagen-sin-altura img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}
.producto-imagen img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* 2. Compactamos la zona de la imagen (especialmente para esquís) */
.producto-imagen {
   height: 70px !important; /* Bajamos de 100px a 70px para esquís */
    padding: 5px 0 !important;
    background: #fdfdfd; /* Un fondo sutil para que el esquí resalte sin ocupar espacio */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.producto-imagen-sin-altura {
    /*height: 70px !important; /* Bajamos de 100px a 70px para esquís */
    padding: 5px 0 !important;
    background: #fdfdfd; /* Un fondo sutil para que el esquí resalte sin ocupar espacio */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
   
}

/* 4. Descripción más pequeña y menos líneas */
.producto-descripcion {
    font-size: 0.75rem !important;
    height: 2.8em; /* Bajamos a 2 líneas de texto */
    margin: 5px 0 !important;
    line-height: 1.3;
}

/* 4. Alineamos el footer para que siempre esté al fondo */
.producto-card {
    display: flex;
    flex-direction: column;
    padding: 12px !important; /* Menos espacio interno */
    min-height: auto !important; /* Quitamos alturas mínimas forzadas */
    height: 100%; /* Que se adapten al grid */
    gap: 8px; /* Espacio controlado entre elementos */
}

.producto-header {
    margin-bottom: 5px;
}

.producto-categoria {
    font-size: 0.7rem !important;
    display: block;
    margin-top: 2px;
}

/* 5. Footer compacto */
.producto-footer-row {
    margin-top: auto; /* Empuja el footer al final, pero sin dejar huecos */
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.badges-inline-top {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 2px;
}

.badges-inline-top > div, 
.badges-inline-top > span {
    font-size: 0.55rem !important; /* Un poco más pequeño para el header */
    padding: 1px 5px !important;
    border-radius: 2px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

/* El badge de Novedad suele quedar muy bien en un rojo Nevasport o naranja */
.badge-novedad { background-color: #d0021b; color: #fff; }
/* El de mujer puede ir en un tono gris oscuro o lila suave */


/* Contenedor padre: los separa a los extremos */
.producto-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    overflow: hidden; /* Evita que cualquier desborde ensanche la card */
}

/* El rating no debe encogerse */
.rating-container {
    flex-shrink: 0; 
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Los badges deben adaptarse al espacio restante */
.badges-inline {
    display: flex;
    gap: 3px;
    flex-shrink: 1; /* Si no caben, intentarán ajustarse */
    overflow: hidden;
}

/* Estilo para que los badges no se rompan en dos líneas */
.badges-inline > span, 
.badges-inline > div {
    white-space: nowrap;
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
    text-overflow: ellipsis;
}
.badge-mujer, 
.badges-inline .mujer, 
.badges-inline span:contains("MUJER") { 
    background-color: #8e44ad !important; /* Morado Nevasport */
    color: #ffffff !important;
}

.badges-inline > * {
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d0021b; /* El rojo de Nevasport */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*ESTILOS LIMPIOS COMIENZAN AQUI

/* --- COMPONENTE: TARJETA DE OPINIÓN (REVIEW CARD) --- */
.review-card-full {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    font-family: Arial, sans-serif;
    transition: transform 0.2s ease-in-out;
}

.review-card-full:first-child {
    margin-top: 20px !important;
}


.review-card-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.review-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.author-info:hover {
    opacity: 0.7;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    border: 1px solid #eee;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
    color: #000;
}

.review-date {
    font-size: 0.8rem;
    color: #aaa;
}

.global-score-box {
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.global-score-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
}

.global-score-value {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.product-titles {
    margin-bottom: 20px;
}

.brand-name {
    display: block;
    font-size: 0.8rem;
    color: #777;
    font-weight: 800;
    text-transform: uppercase;
}

.model-name {
    margin: 5px 0;
    font-size: 1.6rem;
    font-weight: 900;
    color: #000;
}

.metrics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.metric-unit {
    min-width: 110px;
}

.metric-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dots-container {
    display: flex;
    gap: 3px;
}

.dot-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.ski-image-container {
    text-align: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.ski-image-container img {
    max-width: 100%;
    max-height: 300px;
    display: block;
    margin: 0 auto;
}

.tech-sheet-link {
    text-align: right;
    margin-bottom: 25px;
}

.btn-tech-sheet {
    color: #666;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.btn-tech-sheet:hover {
    color: #d0021b;
}

.opinion-quote {
    font-style: italic;
    line-height: 1.6;
    color: #444;
    padding: 15px;
    border-left: 3px solid #eee;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
}
/* --- SECCIÓN: MOSAICO DE MARCAS --- */
.mosaico-marcas-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 10px;
}

.mosaico-title {
    font-family: Arial, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    margin-bottom: 40px;
    font-size: 1.8rem;
    margin-left: 10px;
}



/* El banner ocupa 2 columnas y 2 filas */
.item-banner-grid {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-label {
    display: block;
    font-size: 9px;
    color: #bbb;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.slot-300-250 {
    width: 300px;
    height: 250px;
    background: #f9f9f9;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 4px;
}





.item-marca-rect:hover .logo-box {
    border-color: #d0021b;
}

.logo-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.item-marca-rect:hover img {
    filter: grayscale(0%);
}





.colecciones-title {
    font-family: Arial, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
	 font-size: 1.6rem;
}

/* Selector de temporada */
.seccion-selector-temporada {
    margin-bottom: 30px;
}

.seccion-selector-temporada label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #666;
}

.selector-temp {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #eee;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    background: #fff;
}

/* Rejilla de Colecciones */
.colecciones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/* --- SECCIÓN: FEED DE VALORACIONES --- */
.feed-valoraciones {
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 15px;
}

.feed-title {
    font-family: Arial, sans-serif; 
    font-weight: 900; 
    text-transform: uppercase; 
    border-bottom: 3px solid #000; 
    padding-bottom: 10px; 
    margin-bottom: 30px;
}

.feed-stats-bar {
    margin-bottom: 35px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.badge-count {
    background: #d0021b; 
    color: #fff; 
    padding: 2px 10px; 
    border-radius: 4px; 
    font-weight: 800; 
    font-size: 0.85rem;
}

.feed-stats-label {
    font-family: Arial, sans-serif; 
    font-size: 0.9rem; 
    color: #666; 
    font-weight: 400; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* Contenedor principal de opiniones */
#contenedor-opiniones {
    width: 100%; 
    max-width: 100%; 
    overflow: hidden; 
    display: block;
}

/* Cargador y Spinner */
#cargando-mas {
    text-align: center; 
    padding: 20px;
}

#cargando-mas p {
    color: #666; 
    font-size: 0.9rem; 
    margin-top: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d0021b;
    border-radius: 50%;
    display: inline-block;
    animation: spin-loader 1s linear infinite;
}

@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Centinela para el scroll infinito */
#centinela {
    height: 20px; 
    width: 100%;
}

/* Contenedor Principal de la Home */
.home-material-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Sección del Buscador */
.zona-buscador-home {
    width: 100%;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1; /* Mantenemos tu z-index original */
}

.buscador-wrapper-flex {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.input-relativo {
    width: 100%;
    position: relative;
}

.input-relativo input {
    width: 100%;
    padding: 15px 25px 15px 55px;
    font-size: 1.1rem;
    border: 2px solid #000;
    border-radius: 50px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #fff;
}

.icono-lupa-busqueda {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Caja de resultados AJAX */
#resultados-busqueda-ajax {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
}

/* --- LAYOUT HÍBRIDO (Colecciones + Sidebar) --- */
.header-hibrido {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.colecciones-home {
    flex: 1;
    min-width: 0;
}

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

/* Tarjetas de la Home */
.card-material-home {
    text-decoration: none;
    color: inherit;
   background-color: transparent !important;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-material-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #d0021b;
}


.card-material-home .logo-wrap-home {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-material-home img {
    max-width: 130px;
    max-height: 100%;
    object-fit: contain;
}

.card-material-home .marca-titulo {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.card-material-home .temp-label-home {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d0021b;
    line-height: 1.1;
}

/* Card especial "Ver todas" */
.card-ver-todas {
    background: #f8fbff;
    border: 1px dashed #004a99;
}

.card-ver-todas .icono-plus {
    font-size: 1.5rem;
    font-weight: 900;
    color: #004a99;
    margin-bottom: 5px;
}

/* --- COLUMNA LATERAL (SIDEBAR) --- */
.sidebar-top {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-search-box {
    background: #3659A8;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
}

.sidebar-search-box h2 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 900;
}

.sidebar-select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
}

/* Colores específicos para los textos dentro de la tarjeta "Ver todas" */
.card-ver-todas .marca-titulo {
    color: #004a99;
}

.card-ver-todas .temp-label-home {
    color: #666;
}

/* Contenedor principal del bloque de valoraciones en el sidebar */
.valoraciones-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Título con la barra lateral morada */
.valoraciones-sidebar h2 {
    margin: 0 0 20px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    border-left: 4px solid #7b1fa2;
    padding-left: 10px;
}

/* Item individual de valoración en sidebar */
.sidebar-rev-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 12px;
}

/* Enlace al producto con efecto de opacidad */
.sidebar-rev-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s ease;
}

.sidebar-rev-product-link:hover {
    opacity: 0.7;
}

.sidebar-rev-brand {
    font-size: 0.65rem;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-rev-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fila de info (Autor + Fecha + Nota) */
.sidebar-rev-meta {
    display: flex;
    
    align-items: center;
    font-size: 0.7rem;
    color: #888;
}

.sidebar-rev-author-link {
    color: #555;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

.sidebar-rev-separator {
    color: #ccc;
    margin: 0 3px;
}

/* La cajita de la nota (Score) */
.sidebar-rev-score {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    border: 1px solid rgba(123, 31, 162, 0.1);
}
/* --- SECCIÓN: NOTICIAS Y ARTÍCULOS --- */
.noticias-recientes {
    margin-bottom: 0px; 
    width: 100%; 
    clear: both;
}

/* Título principal de secciones en la Home (reutilizable) */
.section-title-home {
    font-weight: 900; 
    text-transform: uppercase; 
    border-bottom: 3px solid #000; 
    padding-bottom: 10px; 
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.noticias-grid-flex {
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -10px;
}

/* Tarjeta de noticia */
.item-noticia-material {
    width: 33.333%; /* 3 columnas por defecto */
    padding: 0 10px; 
    box-sizing: border-box; 
    margin-bottom: 20px;
}

.item-noticia-material a {
    text-decoration: none; 
    color: inherit; 
    display: block;
}

/* Contenedor de imagen 16:9 */
.noticia-img-wrap {
    width: 100%; 
    height: 0; 
    padding-bottom: 56.25%; 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px; 
    background: #eee; 
    margin-bottom: 12px;
}

.noticia-img-wrap img {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Efecto hover en la imagen */
.item-noticia-material:hover .noticia-img-wrap img {
    transform: scale(1.08);
}

.noticia-fecha {
    font-size: 0.8rem;
    color: #888;
}

.noticia-titulo {
    margin: 8px 0; 
    font-size: 1rem; 
    font-weight: 800; 
    line-height: 1.2; 
    color: #000; 
    height: 2.4em; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2 !important;         /* Propiedad estándar para el futuro */
    -webkit-box-orient: vertical;
}

.noticia-extracto {
    font-size: 0.85rem; 
    color: #555; 
    line-height: 1.4; 
    overflow: hidden;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .item-noticia-material {
        width: 100%; /* 1 columna en móvil */
    }
}


/* --- SECCIÓN: FOROS (GRID DOBLE) --- */
.grid-foros-doble {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 60px;
}

.foro-columna h2 {
    font-weight: 900; 
    text-transform: uppercase; 
    font-size: 1.1rem; 
    padding-bottom: 10px; 
    margin-bottom: 20px;
}

/* Clases para los colores de los bordes de los títulos */
.border-rojo { border-bottom: 3px solid #d0021b; }
.border-negro { border-bottom: 3px solid #000; }

.mensaje-foro-link {
    display: block;
    text-decoration: none;
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.mensaje-foro-link:hover {
    background-color: #f0f0f0 !important;
}

/* En modo claro, NO queremos que cambie a blanco en el hover */
.mensaje-foro-link:hover .mensaje-foro-titulo {
    color: #000 !important; 
}

.mensaje-foro-flex {
    display: flex; 
    gap: 12px; 
    padding: 15px 0; 
    align-items: flex-start;
}

.mensaje-foro-avatar {
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    border: 1px solid #eee;
    object-fit: cover;
}

.mensaje-foro-titulo {
    color: #1a1a1a !important; /* Texto negro siempre */
    margin: 0 0 4px 0;
}

.mensaje-foro-meta {
    color: #666 !important;
}

/* Ajuste para móviles: los foros se apilan */
@media (max-width: 768px) {
    .grid-foros-doble {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Badge de Diseño Específico de Mujer */
.badge-woman {
    display: inline-flex;
    align-items: center;
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #7b1fa2;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.badge-woman .icon-fem {
    font-size: 1rem;
    margin-right: 5px;
    line-height: 0;
}

/* --- FICHA DE PRODUCTO: CONTENEDOR Y BREADCRUMBS --- */
.ficha-producto-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.breadcrumbs-desktop {
    text-align: left;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs-desktop a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-desktop a:hover {
    color: #000;
}

.breadcrumbs-sep {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumbs-current {
    color: #888;
}

.breadcrumbs-current-bold {
    color: #888;
    font-weight: bold;
}

/* Ocultar en móviles */
@media (max-width: 768px) {
    .breadcrumbs-desktop {
        display: none !important;
    }
}
/* --- BLOQUE FOTO Y HERO --- */
.detalle-hero {
    width: 100%;
    margin-bottom: 30px;
}

.detalle-foto {
    width: 100%;
    text-align: center;
    background: #fdfdfd;
    padding: 10px 0;
}

.detalle-foto img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

/* Cotas de Esquí (debajo de la foto) */
.detalle-cotas-visual {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 2px auto 0 auto;
    border-top: 1px solid #eee;
    padding: 15px 10px 0 10px;
    box-sizing: border-box;
}

.cota-item { flex: 1; }
.cota-item.left { text-align: left; }
.cota-item.center { text-align: center; }
.cota-item.right { text-align: right; }

.cota-flecha {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 2px;
}

.cota-numero {
    font-size: 0.75rem;
    font-weight: 600;
    color: #444;
}

/* Stats de Botas (Floating Pill) */
.bota-mini-stats {
    display: inline-flex;
    justify-content: center;
    gap: 40px;
    margin-top: -20px;
    background: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stat-val {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.stat-sep { color: #eee; }

/* --- CABECERA DE PRODUCTO --- */
.detalle-basicos {
    margin-top: 10px;
    margin-bottom: 25px;
    font-family: sans-serif;
}

.detalle-marca-temp {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detalle-nombre-modelo {
    
    font-weight: 900;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- FICHA TÉCNICA (Caja Gris) --- */
.ficha-tecnica-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    max-width: 700px;
    font-family: sans-serif;
}

.ficha-tecnica-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.espec-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Quitamos el borde en la última fila para que quede limpio */
.espec-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.espec-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    display: block;
}

.espec-val {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Precio */
.pvp-container {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #fff;
    text-align: center;
}

.pvp-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pvp-monto {
    font-size: 1.4rem;
    font-weight: 700;
    color: #444;
    margin-top: 2px;
}

/* --- DESCRIPCIÓN / EXPERTO --- */
.opinion-experto {
    max-width: 700px;
    margin: 30px auto;
    text-align: left;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
    border-left: 3px solid #eee;
    padding-left: 20px;
    font-family: sans-serif;
}

.opinion-experto strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* --- SECCIÓN REVIEWS / OPINIONES --- */
.reviews-contenedor {
    margin-top: 40px;
    text-align: left;
}

.review-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.link-autor {
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    color: #222;
}

/* Tabla de puntuaciones */
.review-stats-table {
    width: auto;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.review-stats-table td {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

.label-stat { width: 140px; }

/* Sistema de círculos (dots) */
.dots-container {
    display: inline-block;
    letter-spacing: 2px;
}

.dot-active { color: #d0021b; }
.dot-inactive { color: #e0e0e0; }

/* Texto de la opinión */
.review-text-box {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f9f9f9;
    border-left: 3px solid #000;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

/* Caja de valoración global */
.rating-global-box {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px dashed #ddd;
    margin-top: 10px;
    padding-top: 15px;
    width: 100%;
}

.rating-global-label {
    font-weight: 800;
    font-size: 0.85rem;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
}

.rating-score-wrapper {
    display: inline-flex;
    align-items: baseline;
    font-family: sans-serif;
}

.score-big {
    font-size: 1.8rem;
    font-weight: 900;
    color: #222;
    line-height: 1;
}

.score-base {
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    margin-left: 2px;
}

/* --- CTA VALORACIÓN --- */
.cta-valoracion-container {
    text-align: center; 
    margin-top: 40px; 
    padding: 30px; 
    border-top: 1px solid #eee; 
    background: #fafafa; 
    border-radius: 12px;
}

.cta-valoracion-text {
    font-size: 1rem; 
    color: #666; 
    margin-bottom: 20px; 
    font-family: sans-serif;
}

.btn-valorar-skis {
    display: inline-block; 
    background: #000; 
    color: #fff; 
    padding: 12px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-valorar-skis:hover {
    background: #d0021b; /* Cambio a rojo corporativo en hover */
}

.btn-valorar-disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* --- HISTÓRICO DE TEMPORADAS --- */
.historico-modelos {
    margin-top: 50px; 
    padding-top: 30px; 
    border-top: 1px solid #eee;
}

.historico-grid {
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap;
}

.pastilla-producto {
    text-decoration: none; 
    color: inherit; 
    width: 140px; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    padding: 10px; 
    background: #fff;
    transition: all 0.2s ease;
}

.pastilla-producto:hover {
    border-color: #999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pastilla-img-wrap {
    height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 10px;
}

.pastilla-img-wrap img {
    max-height: 100%; 
    max-width: 100%; 
    object-fit: contain;
}

.pastilla-info {
    text-align: center;
}

.pastilla-temp {
    display: block; 
    font-size: 0.7rem; 
    color: #888;
}

.pastilla-nombre {
    display: block; 
    font-size: 0.8rem; 
    font-weight: 700;
}

/* --- TARJETA DE PRODUCTO (LISTADOS) --- */
.producto-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Fila inferior: Rating + Badges */
.producto-footer-row {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 5px; 
    margin-top: 10px;
}

.rating-container {
    display: flex; 
    align-items: center; 
    gap: 3px; 
    flex-shrink: 0;
}

.rating-container .nota-txt {
    font-weight: 700; 
    font-size: 0.8rem;
}

/* Estado sin votos */
.rating-empty .dots {
    opacity: 0.15; 
    filter: grayscale(100%); 
    transform: scale(0.8); 
    transform-origin: left;
}

.rating-empty .nota-txt {
    color: #bbb; 
    font-size: 0.6rem; 
    text-transform: uppercase;
}

/* Contenedor de iconos/badges */
.badges-inline {
    display: flex; 
    gap: 3px; 
    flex-shrink: 1; 
    overflow: hidden;
}

/* Estilo para los badges que vienen en el $badges_html */
.badges-inline img, .badges-inline span {
    max-height: 16px;
    width: auto;
}

/* --- BÚSQUEDA AJAX LIVE --- */
.ajax-no-results {
    padding: 15px; 
    color: #666;
}

.btn-cerrar-ajax {
    display: none; 
    background: #f0f0f0; 
    padding: 12px; 
    text-align: right; 
    font-size: 14px; 
    font-weight: bold; 
    color: #666; 
    cursor: pointer; 
    border-bottom: 1px solid #ddd;
}

/* Elemento de resultado (Fila) */
.ajax-result-item {
    display: flex; 
    align-items: center; 
    padding: 12px 15px; 
    text-decoration: none; 
    border-bottom: 1px solid #f0f0f0; 
    transition: background 0.2s ease;
    background: #fff;
}

.ajax-result-item:hover {
    background: #f9f9f9;
}

/* Miniatura */
.ajax-result-thumb {
    width: 45px; 
    height: 45px; 
    margin-right: 15px; 
    flex-shrink: 0; 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 4px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.ajax-result-thumb img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
}

/* Textos */
.ajax-result-info {
    flex-grow: 1; 
    overflow: hidden;
}

.ajax-result-title {
    font-weight: 800; 
    font-size: 0.95rem; 
    color: #000; 
    line-height: 1.2; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.ajax-result-season {
    font-size: 0.8rem; 
    color: #d0021b; 
    font-weight: 700; 
    margin-top: 2px;
}

.ajax-result-arrow {
    color: #ccc; 
    font-size: 1.2rem; 
    margin-left: 10px;
}

/* Mostrar botón de cierre solo en móviles */
@media (max-width: 768px) {
    .btn-cerrar-ajax { 
        display: block !important; 
    }
}

/* --- FILTROS DE CATEGORÍA --- */
.marca-filtros-tipos {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filtro-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filtro-btn:hover {
    border-color: #999;
    background: #f9f9f9;
}

.filtro-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.filtro-btn.active-rojo {
    background: #e62117;
    color: #fff;
    border-color: #e62117;
}

/* --- CABECERA DE SECCIÓN Y METADATOS --- */
.marca-seccion-header {
    margin: 40px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.marca-seccion-titulo h2 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.marca-metadatos {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #888;
}

.marca-metadatos strong { color: #333; }

/* --- BLOQUES DE GAMA Y GRIDS --- */
.bloque-gama-completo {
    width: 100%;
    margin-bottom: 50px;
}

.separador-categoria {
    margin-bottom: 25px;
}

.separador-categoria h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #222;
}

.categoria-contenido-html {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.gama-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Estado vacío */
.no-results-box {
    text-align: center;
    padding: 80px 20px;
}
/* Badge de Categoría Activa - Recuperando la elegancia */
.badge-filtro-rojo {
    background: #e62117; /* Rojo corporativo */
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    width: fit-content;
    margin-bottom: 5px;
    text-transform: none; /* Evita que herede mayúsculas raras */
    font-family: sans-serif;
}

.badge-filtro-rojo .label-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.badge-filtro-rojo .reset-link {
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    margin-left: 4px;
    opacity: 0.8;
    display: inline-block;
    transition: transform 0.2s;
}

.badge-filtro-rojo .reset-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* --- CONTENEDOR PUBLICIDAD (ROBAPÁGINAS) --- */
.banner-lateral-interno {
    width: 300px;
    flex-shrink: 0;
    margin-top: 20px; /* Separación en móvil si cae debajo */
}

.wrapper-banner-publicidad {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label-publi {
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.slot-300-250 {
    width: 300px;
    min-height: 250px;
    background: #fdfdfd; /* Un blanco casi puro */
    border: 1px solid #eaeaea;
    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* Sombra muy sutil */
    overflow: hidden;
}

/* Para asegurar que si el banner es más grande no rompa nada */
.slot-300-250 img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- CONTENEDOR DE MÉTRICAS --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric-unit {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- LOS PUNTOS (INDICADORES) --- */
.dots-container {
    display: flex !important; /* Fuerza la horizontalidad */
    flex-direction: row !important;
    gap: 4px; /* Espacio entre puntos */
    align-items: center;
}

.dot-indicator {
    width: 14px;  /* Ancho del punto */
    height: 6px;  /* Alto del punto (estilo barrita) */
    border-radius: 2px;
    flex-shrink: 0;
    /* El color de fondo lo seguimos pasando por PHP por tu lógica de semáforo */
}

/* --- BREADCRUMBS VERSIÓN CLARA --- */

.breadcrumbs-desktop {
    padding: 15px 0;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666666 !important; /* Gris neutro para texto base */
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

/* Enlaces en la versión clara */
.breadcrumbs-desktop a {
    color: #004488 !important; /* Azul clásico de enlace, o el azul de tu marca */
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs-desktop a:hover {
    color: #e62117 !important; /* Rojo Nevasport al pasar el ratón */
    text-decoration: underline;
}

/* El separador (>>) */
.breadcrumbs-sep {
    color: #999999 !important;
    font-size: 0.7rem;
}

/* Ubicación actual */
.breadcrumbs-current {
    color: #444444 !important;
}

.breadcrumbs-current-bold {
    font-weight: 700;
    color: #000000 !important; /* Negro para resaltar dónde estamos */
    text-transform: uppercase;
}

/* --- UNIFICACIÓN DE CABECERA DE REVIEW --- */

.review-header {
    display: flex !important;
    flex-direction: row !important; /* Asegura que vayan en línea */
    align-items: center !important; /* Centra verticalmente nombre y foto */
    justify-content: flex-start !important; /* LOS PEGA A LA IZQUIERDA */
    gap: 12px !important; /* Espacio exacto entre avatar y nombre */
    width: 100% !important;
    float: none !important; /* Por si acaso hay floats antiguos */
    margin-bottom: 15px !important;
}

.review-avatar {
    display: block !important;
    margin: 0 !important; /* Quita márgenes que puedan empujar el nombre */
}

.link-autor {
    display: inline-block !important;
    margin: 0 !important;
    text-align: left !important;
    /* En versión clara, asegúrate de que el color sea oscuro */
    color: #004488 !important; 
    font-weight: 700 !important;
}

/* Ajuste opcional para la versión clara si el nombre se ve pequeño */
body:not(.dark-mode) .link-autor {
    color: #333333 !important; /* Gris muy oscuro o negro para modo claro */
}
/* --- FIX HOVER PRODUCTOS RELACIONADOS MODALIDAD CLARA --- */

/* Aseguramos color base del nombre */
.pastilla-nombre {
    color: #333333 !important;
    text-decoration: none !important;
}

/* Evitamos que el nombre desaparezca o cambie a un color invisible al hacer hover */
.pastilla-producto:hover .pastilla-nombre {
    color: #e62117 !important; /* Cambia a rojo Nevasport para dar feedback */
    text-decoration: none !important;
}

/* Forzamos que el fondo de la info sea estable */
.pastilla-producto:hover .pastilla-info {
    background-color: #f8f9fa !important; /* Un gris casi imperceptible */
}

/* Si la pastilla entera es un <a>, evitamos que el navegador le meta opacidad */
a.pastilla-producto:hover {
    opacity: 1 !important;
    text-decoration: none !important;
}

/* --- SELECTOR TEMPORADA: VERSIÓN ANCHA --- */

.seccion-selector-temporada {
    width: 100%; /* Ocupa todo el ancho del contenedor padre */
    max-width: 1200px; /* O el ancho máximo de tu web */
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03); /* Un toque sutil de fondo */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seccion-selector-temporada label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #94a3b8; /* Gris azulado elegante */
}

.selector-temp {
    width: 100%; 
    max-width: 600px; /* Un término medio: más ancho que antes pero no infinito */
    height: 55px; /* Un poco más alto para que tenga más "presencia" */
    padding: 0 50px 0 20px;
    font-size: 1.1rem;
    border-radius: 10px;
    
    /* Mantenemos tu flecha roja */
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e62117' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 20px !important;
}

/* En Modo Oscuro / Ficha */
.dark-mode .selector-temp, 
.ficha-producto-wrapper .selector-temp {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px); /* Efecto cristal moderno */
}
/* --- CABECERA DE COLECCIÓN CON ACENTO VERTICAL --- */

.marca-seccion-header {
    padding: 10px 0 10px 25px; /* Espacio a la izquierda para el separador */
    margin: 30px 0;
    /* El separador rojo vertical: */
    border-left: 5px solid #e62117; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.marca-seccion-titulo h2 {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.1;
    color: inherit; /* Negro en modo claro, Blanco en modo oscuro */
}

.marca-metadatos {
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Color de los datos (Gamas, Productos, etc) */
.marca-metadatos strong {
    color: #e62117 !important; /* Rojo Nevasport */
    text-transform: uppercase;
    font-weight: 700;
}

/* Color de los valores (los números) */
.marca-metadatos span {
    color: inherit; /* Se adapta al modo claro/oscuro automáticamente */
    opacity: 0.9;
}
.marca-metadatos span {
    display: inline-block;
    padding: 2px 0;
}

/* --- CABECERA ALINEADA A LA IZQUIERDA --- */

.marca-seccion-header {
    display: flex;
    flex-direction: column;
    /* Forzamos que todo empiece al principio (izquierda) */
    align-items: flex-start !important; 
    text-align: left !important;
    
    padding: 15px 0 15px 25px; 
    margin: 30px 0;
    border-left: 5px solid #e62117; 
    gap: 12px;
}

.marca-seccion-titulo {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.marca-seccion-titulo h2 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: inherit;
    text-align: left !important;
}

.marca-metadatos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Asegura que los datos empiecen a la izquierda */
    gap: 20px;
    width: 100%;
}

/* Colores del semáforo para los puntos */
.dot-active.dot-rojo { color: #ff4d4d !important; }      /* Rojo */
.dot-active.dot-amarillo { color: #ffcc00 !important; }  /* Amarillo/Dorado */
.dot-active.dot-verde { color: #2ecc71 !important; }     /* Verde esmeralda */

.dot-inactive { 
    color: #e2e8f0; 
    opacity: 0.3; 
}

/* Ajuste opcional para que los puntos se vean más potentes */
.dots-container span {
    font-size: 1.2rem;
    margin-right: 2px;
}


/* Solo posicionamos si el padre es la tarjeta de review dentro de la ficha */
.es-pagina-producto .review-card {
    max-width: 700px; /* Ancho máximo ideal para lectura */
    margin-left: 0;   /* Alineada a la izquierda */
    margin-right: auto;
    position: relative !important;
    padding: 25px !important;
}

.es-pagina-producto .nvs-nota-final {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    
    /* Dimensiones para formato cuadrado */
    width: 55px !important;
    height: 55px !important;
    border-radius: 8px !important; /* Bordes ligeramente redondeados */
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    color: #ffffff !important;
    z-index: 5;
    border: 2px solid #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    line-height: 1.1 !important;
}

/* Colores de fondo */
.nvs-nota-final.bg-rojo { background-color: #e62117 !important; }
.nvs-nota-final.bg-amarillo { background-color: #f1c40f !important; color: #000 !important; }
.nvs-nota-final.bg-verde { background-color: #27ae60 !important; }

.es-pagina-producto .nvs-nota-final .badge-num {
    font-size: 1.4rem !important; /* Un poco más grande para llenar el cuadrado */
    font-weight: 900 !important;
}
.es-pagina-producto .nvs-nota-final .badge-text {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    opacity: 0.9;
}

/* Contenedor para apilar nombre y etiqueta */
.autor-info-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

/* Estilo de la etiqueta (Pill) */
.label-uso {
    font-size: 0.65rem !important;
    font-weight: 700;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Ajuste para que el nombre del autor no sea tan grande */
.link-autor {
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
}


/* Aseguramos que la tarjeta sea el marco de referencia */
.review-card-full {
    position: relative !important;
    padding-top: 45px !important; /* Espacio para la etiqueta de arriba */
}

/* Posicionamiento forzado del badge cuadrado */
.global-score-box {
    position: absolute !important;
    top: 25px !important;
    right: 20px !important;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    z-index: 10 !important; /* Por encima de todo */
}

.global-score-label {
    font-size: 0.55rem !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 1px;
}

.global-score-value {
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    line-height: 1 !important;
}

/* Estilo base (para fondo claro) */
.detalle-marca-temp {
    color: #666; /* Gris oscuro, legible en blanco */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.detalle-marca-temp a {
    color: #e62117 !important; /* El enlace lo ponemos directamente en ROJO */
    text-decoration: none !important;
    border-bottom: 1px solid rgba(230, 33, 23, 0.2);
    transition: all 0.2s ease;
}

.detalle-marca-temp a:hover {
    color: #b31a12 !important; /* Un rojo más oscuro al pasar el ratón */
    border-bottom-color: #b31a12;
}

/* --- AJUSTE PARA MODO OSCURO --- */
/* Si tu body tiene la clase dark-mode o similar */
body.dark-mode .detalle-marca-temp {
    color: #bbb; /* Gris claro en modo oscuro */
}

body.dark-mode .detalle-marca-temp a {
    color: #ff4d4d !important; /* Un rojo más brillante para que destaque en negro */
}



.btn-marca-pill:hover {
    background-color: #000000 !important;
    transform: scale(1.05);
}



.detalle-marca-temp .sep {
    color: #888;
    font-weight: 300;
}

.detalle-marca-temp-container {
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    width: 100%;
    margin: 15px 0;
}

.detalle-marca-temp {
    display: inline-flex; /* Para que el fondo no ocupe todo el ancho */
    align-items: center;
    gap: 10px;
}

/* LA PILL (Marca) */
.btn-marca-pill, 
.btn-marca-pill:link, 
.btn-marca-pill:visited {
    color: #ffffff !important;
    background-color: #e62117 !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.6rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    white-space: nowrap; /* Evita que el nombre de la marca se parta en dos líneas */
}

.btn-marca-pill:hover {
    background-color: #ccc !important;
    transform: scale(1.05);
}

.link-temporada {
    color: #888 !important; 
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.link-temporada:hover {
    color: #e62117 !important;
}
/* EL GRUPO: Mantiene los elementos juntos y alineados entre sí */
.detalle-marca-temp {
    display: flex;
    align-items: center; /* Alineación vertical perfecta entre botón y texto */
    gap: 12px;           /* Espacio exacto entre la pill, el separador y el link */
}

/* Estilo específico para el ítem de visitas */
.espec-visitas .espec-val {
    color: #aaa !important; /* Un poco más suave */
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-eye {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Estilo para el botón Comparar dentro del Grid */
.espec-comparar {
    display: flex !important;
    align-items: center !important;
   
    background: rgba(255, 255, 255, 0.05) !important; /* Un fondo sutilmente distinto */
}


/* Ajuste responsive para que el grid no se vea apretado */
@media (max-width: 480px) {
    .ficha-tecnica-grid {
        grid-template-columns: 1fr 1fr; /* Mantiene 2 columnas en móvil si cabe */
    }
}

.espec-comparar {
    /* Nos aseguramos de que si no existe, el grid se reajuste solo */
    display: flex;
}

/* Contenedor del formulario para que ocupe todo el espacio de la celda */
.form-comparador {
    width: 100%;
    height: 100%;
    display: flex;
   
}

.btn-comparar-grid {
    /* Reset de estilos de botón */
    background: none;
    border: 2px solid #6666 !important;
    color: #e62117 !important;
    
    /* Estilo visual */
    padding: 8px 15px !important;
    font-size: 0.6rem !important;
    font-family: 'Arial Black', sans-serif !important;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    width: 70%;
    transition: all 0.2s ease;
}

.btn-comparar-grid:hover {
    background-color: #e62117 !important;
    color: #fff !important;
}
.comp-tecnico-v3 { width: 100%; border-top: 3px solid #e62117; background: #fff; }
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla-comparativa { 
    width: 100%; 
    min-width: 580px; /* Reducido para evitar scroll innecesario en algunos móviles */
    border-collapse: collapse; 
    table-layout: fixed; 
}

/* Reducción máxima de la columna de etiquetas */
.label-v3 { 
    background: #f4f4f4; 
    color: #999; 
    font-size: 0.55rem; /* Muy pequeña para maximizar espacio */
    font-weight: 900; 
    text-transform: uppercase; 
    width: 55px !important; /* Estrechada al máximo */
    padding: 8px 2px; 
    border-bottom: 1px solid #ddd;
    text-align: center;
    line-height: 1;
}

/* Valores */
.val-v3 { 
    text-align: center; 
    font-size: 0.8rem; 
    font-weight: 700; 
    padding: 10px 4px; 
    border-bottom: 1px solid #eee; 
    border-left: 1px solid #f0f0f0; 
}

/* Cabeceras */
.mini-ficha { 
    padding: 8px 5px; 
    height: 140px; /* Aumentado un poco para que quepa el precio */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
}
.img-mini { max-height: 55px; margin-bottom: 5px; }
.txt-mini { 
    font-size: 0.65rem; 
    max-height: 2.2em; 
    overflow: hidden; 
    margin-bottom: 2px;
}

/* Buscador en celda */
.mini-buscador { height: 140px; } /* Misma altura que mini-ficha */
.input-ajax-v3 { width: 95%; font-size: 0.75rem; padding: 6px; border: 1px solid #e62117; border-radius: 4px; outline: none; }
.btn-borrar { position: absolute; top: 0; right: 5px; color: #e62117; font-size: 1.2rem; text-decoration: none; font-weight: bold; }

.icon-plus { color: #e62117; font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; }


/* Forzamos el ancho de las columnas de material para que ocupen lo que sobra */
.col-modelo {
    width: auto;
}

/* Estilo específico para el texto de categoría (puede ser largo) */
.cat-text {
    font-size: 0.75rem !important;
    line-height: 1.1;
    color: #e62117 !important; /* Resaltamos la categoría en rojo Nevasport */
}

/* Contenedor con scroll lateral solo si es necesario */
.comp-v4-container { 
    width: 100%; 
    background: #fff; 
    border-top: 3px solid #e62117; 
}
.v4-tabla-wrapper { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    width: 100%;
}
.v4-tabla { 
    width: 100%; 
    border-collapse: collapse; 
    table-layout: fixed; /* Mantiene proporciones */
    min-width: 550px; /* Ancho mínimo para que en móvil no se aplaste */
}
/* 1. COLUMNA DE DATOS: ULTRA ESTRECHA */
.v4-col-label, .v4-label {
    width: 70px !important; /* El mínimo absoluto */
    max-width: 70px;
    background: #eee;
    color: #666;
    font-size: 0.5rem; /* Texto muy pequeño y vertical o abreviado */
    font-weight: 900;
    text-align: center;
    padding: 5px 2px;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

/* 2. SOLUCIÓN AL DESBORDE DE IMAGEN */
.v4-img-box {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.v4-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 3. BLOQUE DE INFO COMPACTO */
.v4-info-box { text-align: center; padding: 5px 2px; }
.v4-name { display: block; font-size: 0.8rem; font-family: 'Arial Black', sans-serif; line-height: 1; height: 2.2em; overflow: hidden; }
.v4-price { display: inline-block; background: #e62117; color: #fff; font-size: 0.8rem; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-top: 3px; }

/* Celdas de valores */
.v4-val {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    border-left: 1px solid #f0f0f0;
    word-wrap: break-word; /* Evita desbordes de texto largo */
}

/* Buscador integrado */
.v4-empty-slot { padding: 10px 5px; }
.v4-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.v4-card {
    position: relative; /* Crítico para posicionar la X */
}

.v4-del {
    position: absolute;
    top: -5px;
    right: -2px;
    background: #e62117;
    color: #fff !important;
    width: 22px;
    height: 22px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 16px;
    z-index: 10; /* Asegura que esté por encima de la imagen */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.v4-del:hover {
    background: #000;
}

/* Ajuste específico para DESKTOP (Pantallas > 992px) */
@media (min-width: 992px) {
.v4-tabla {
        table-layout: auto; /* Permite que las columnas crezcan según contenido */
        min-width: 100%;
    }
	
	.v4-col-data {
        width: 30%; /* Reparte el espacio restante de forma generosa */
    }
	
	.v4-search {
        min-width: 200px; /* Evita que el buscador se vea "apretado" */
        max-width: 350px; /* Limita un poco para que no sea infinito */
        margin: 0 auto;
        display: block;
    }
    /* Primera columna: INFO / DATOS */
.v4-col-label, .v4-label {
    width: 55px;
    background: #f4f4f4;
    color: #888;
    font-size: 0.6rem;
    font-weight: 900;
    text-align: center;
    padding: 10px 2px;
    border-bottom: 1px solid #ddd;
}
}
.v4-search-wrapper {
    width: 100%;
    padding: 10px 5px;
}
/* Para móvil, mantenemos la compresión para que quepan las 3 columnas */
@media (max-width: 991px) {
    .v4-tabla {
        table-layout: fixed;
    }
    .v4-search {
        font-size: 0.75rem;
        padding: 5px;
    }
}

/* 1. Asegurar que el envoltorio no fuerce scroll en desktop */
@media (min-width: 992px) {
    .v4-tabla-wrapper {
        overflow-x: hidden; /* Forzamos la desaparición de la barra */
        width: 100%;
    }

    .v4-tabla {
        min-width: 100% !important; /* La tabla se ajusta al contenedor */
        width: 100% !important;
        table-layout: auto; /* Permite que las columnas se adapten al espacio disponible */
    }

    /* Ajustamos el ancho de las celdas de datos para que se repartan el 100% */
    .v4-col-data, .v4-val {
        width: 30%; 
    }

    /* La columna de etiquetas (INFO) debe tener un ancho fijo pequeño */
    .v4-col-label, .v4-label {
        width: 100px !important;
    }
}

/* 2. Mantener el scroll funcional solo en móviles/tablets */
@media (max-width: 991px) {
    .v4-tabla-wrapper {
        overflow-x: auto;
    }
    .v4-tabla {
        min-width: 600px; /* Aquí sí es necesario para no aplastar el contenido */
        table-layout: fixed;
    }
}

.v4-header-comparador {
    padding: 20px 0;
    text-align: left;
}

.v4-header-comparador h1 {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    text-transform: uppercase;
}

.v4-header-comparador p {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}




/* --- AJUSTE MÓVIL --- */
@media (max-width: 768px) {
    .v4-header-comparador {
        padding: 15px 10px;
    }
    .v4-header-comparador h1 {
        font-size: 1.4rem;
    }
	
	.btn-comparar-grid{
		
		 width: 100%;
	}
}

.v4-spacer {
    clear: both;
    height: 40px;
    width: 100%;
}

.v4-footer-publi {
    width: 100%;
    max-width: 100vw; /* Evita scroll lateral */
    overflow: hidden;
    padding: 20px 0 40px 0;
    /*background: #f9f9f9; /* Fondo neutro para separar de la tabla */
    border-top: 1px solid #eee;
}

.v4-publi-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Forzar que las ofertas de Bootstrap no rompan el layout */
.pastilla_ofertas_pie {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px; /* Ancho máximo de tu web */
    padding: 0 15px;
}

/* MODO OSCURO */
.dark-mode .v4-footer-publi {
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.dark-mode .v4-publi-title {
    color: #fff;
}


.banner-300x250-wrapper {
    width: 300px;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0; /* Fondo gris suave mientras carga el banner */
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Modo oscuro */
.dark-mode .banner-300x250-wrapper {
    background: #252525;
    border-color: #333;
}




.busqueda-no-results {
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ccc;
}

.dark-mode .busqueda-no-results {
    background: #1a1a1a;
    border-color: #444;
}

.busqueda-no-results p {
    font-size: 1.1rem;
    margin-top: 15px;
}

.btn-volver {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    color: #e62117; /* Rojo Nevasport */
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #e62117;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-volver:hover {
    background-color: #e62117;
    color: #ffffff !important; /* Forzamos blanco para que sea legible */
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(230, 33, 23, 0.3);
}

.busqueda-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}
/* Contenedor de las 2 noticias */
.noticias-top-home {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 10px;
    
}

.item-noticia-top a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-noticia-top img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.item-noticia-top h3 {
    font-size: 1.1em;
    margin: 10px 0 5px;
}

.item-noticia-top span {
    font-size: 0.8em;
    color: #888;
}

/* Cambio a 2 columnas para Tablets y Escritorio */
@media (min-width: 600px) {
    .noticias-top-home {
        grid-template-columns: 1fr 1fr; /* Dos columnas en pantallas grandes */
    }
}
/* 1. MÓVIL: Orden natural hacia abajo */
.header-hibrido {
    display: flex;
    flex-direction: column; /* Apila uno debajo de otro */
    gap: 20px;
}

/* 2. ESCRITORIO: Uno al lado del otro */
@media (min-width: 992px) {
    .header-hibrido {
        flex-direction: row; /* Los pone en horizontal */
        align-items: flex-start;
    }

    .colecciones-home {
        flex: 1; /* El contenido ocupa todo el ancho restante */
		
    }

    .sidebar-top {
        width: 300px; /* La sidebar mantiene su ancho fijo */
        flex-shrink: 0;
    }
}


/***********

/* Media query para móviles */
@media (max-width: 991px) {
    .header-hibrido {
        display: flex;
        flex-direction: column; /* Apilamos uno sobre otro */
    }

    .colecciones-home {
        order: 1; /* Esto irá primero arriba */
    }

    .sidebar-top {
        order: 2; /* Esto irá después, debajo de las colecciones */
        margin-top: 30px; /* Separación para que no pegue con el grid */
    }
}

/* En escritorio (tu configuración actual probablemente) */
@media (min-width: 992px) {
    .header-hibrido {
        display: flex;
        flex-direction: row; /* Uno al lado del otro */
        gap: 30px;
    }
    
    .colecciones-home {
        flex: 1; /* Ocupa el espacio principal */
        order: 1;
    }
    
    .sidebar-top {
        width: 300px; /* Ancho fijo para el banner */
        order: 2;
    }
}

@media (max-width: 768px) {
    .sidebar-rev-photo-full img {
        max-height: 200px;
        object-fit: contain; /* Para que el esquí se vea entero sin deformarse */
        background: #f0f0f0;
    }
}

/* Forzamos la jerarquía para que el enlace no le quite el color */
.item-noticia-top a .noticia-meta .noticia-canal {
    color: #e62117 !important; /* El !important asegura que gane a cualquier herencia */
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.item-noticia-top a .noticia-meta .noticia-fecha {
    font-size: 0.8rem;
    color: #888;
    margin-left: 8px;
}

/* Ajuste para que al pasar el ratón por la noticia el canal siga siendo rojo */
.item-noticia-top a:hover .noticia-canal {
    color: #e62117 !important;
    text-decoration: none;
}

/* Estilos para la meta-información de la noticia */
.noticia-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contenedor meta */
.noticia-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

/* El nombre del canal (forzando el rojo) */
.item-noticia-top a .noticia-canal {
    color: #e62117 !important;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* El icono separador */
.noticia-sep {
    color: #E4E4E4;
    font-size: 0.8rem;
    margin: 0 8px; /* Espaciado lateral del icono */
    display: inline-block;
}

/* La fecha */
.noticia-fecha {
    font-size: 0.8rem;
    color: #888;
}


/* Contenedor compacto */
.noticia-meta-compacta {
    margin: 12px 0 5px 0;
    padding: 0;
    line-height: 1; /* Evita que la línea ocupe demasiado alto */
    display: block;
}

/* El nombre del canal: menos peso para que no "grite" tanto */
.item-noticia-top a .noticia-canal {
    color: #e62117 !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* El separador: una barra fina y sutil */
.noticia-sep {
    color: #ddd;
    font-size: 0.7rem;
    margin: 0 6px;
    font-weight: 300;
}

/* La fecha: integrada en la lectura */
.noticia-fecha {
    font-size: 0.75rem;
    color: #777;
    letter-spacing: -0.2px;
}
/* Contenedor de la imagen para que todas midan lo mismo */
.noticia-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.noticia-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Unificamos la meta-información */
.noticia-meta-compacta {
    display: block;
    margin-bottom: 5px; /* Poco espacio con el título para que no se disperse */
}

.noticia-canal {
    color: #e62117 !important;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.noticia-sep {
    color: #ccc;
    margin: 0 5px;
    font-size: 0.7rem;
}

.noticia-fecha {
    font-size: 0.75rem;
    color: #888;
}

/* El título bien pegado a la meta */
.noticia-titulo {
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 8px 0;
    font-weight: 700;
}
/* --- EFECTO LUPA (Zoom en imagen) --- */
.item-noticia-material .noticia-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden; /* Corta la imagen cuando crece */
    border-radius: 8px;
    margin-bottom: 12px;
}

.item-noticia-material .noticia-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Suavidad del zoom */
}

/* Cuando pasas el ratón por el artículo, la imagen crece */
.item-noticia-material:hover .noticia-img-wrap img {
    transform: scale(1.1); /* Efecto lupa */
}

/* --- EFECTO SUBRAYADO EN TÍTULO --- */
.item-noticia-material .noticia-titulo {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-top: 5px;   /* Espacio con respecto a la meta-info (canal/fecha) */
    margin-bottom: 2px; /* Reducimos drásticamente el espacio con el extracto */
    line-height: 1.2;
    transition: color 0.3s ease;
    color: var(--comp-text); /* O tu color de texto por defecto */
	
}

/* Cuando pasas el ratón por el artículo, el título se subraya */
.item-noticia-material:hover .noticia-titulo {
    text-decoration: underline;
    text-decoration-thickness: 2px; /* Grosor del subrayado */
    text-underline-offset: 3px;     /* Separación del texto */
    color: #e62117;                /* Opcional: cambiar a rojo al hover */
}

/* El contenedor de las 2 de ARRIBA */
.noticias-top-home {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
    gap: 25px;
    margin-bottom: 0px;
}

/* El contenedor de las 9 de ABAJO */
.noticias-grid-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 10px;
}

/* TABLET Y MÓVIL: Forzamos una sola columna en ambos bloques */
@media (max-width: 991px) {
    .noticias-top-home, 
    .noticias-grid-flex {
        grid-template-columns: 1fr !important; /* Una sola columna */
        gap: 30px; /* Un poco más de espacio vertical entre noticias */
    }

    .noticia-titulo {
        font-size: 1.2rem; /* Un pelín más grande para que sea legible en móvil */
    }
}

/* Estilo común para AMBOS bloques */
.item-noticia-material {
    width: 100%; /* Que ocupe el ancho de su columna de grid */
    display: block;
}

/* Efectos unificados */
.item-noticia-material .noticia-img-wrap {
    overflow: hidden;
    border-radius: 8px;
}

.item-noticia-material:hover .noticia-img-wrap img {
    transform: scale(1.08);
}

.item-noticia-material:hover .noticia-titulo {
    text-decoration: underline;
    color: #e62117 !important;
}

/* Aseguramos que el extracto sea visible en todas las resoluciones */
.item-noticia-material .noticia-extracto {
    display: block !important; /* Fuerza la visibilidad */
    font-size: 0.9rem;
    line-height: 1.4;
   color: #666;
   margin-top: 0;      /* Eliminamos el margen superior del párrafo */
    padding-top: 0;
    /* Opcional: limitar a 2 líneas en móvil para que no ocupe demasiado */
    display: -webkit-box !important;
    -webkit-line-clamp: 2; 
    line-clamp: 2 !important;         /* Propiedad estándar para el futuro */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .noticias-top-home, 
    .noticias-grid-flex {
        grid-template-columns: 1fr !important;
        gap: 0px; /* Aumentamos el espacio entre noticias ahora que hay extracto */
    }

    .noticia-titulo {
        font-size: 1.25rem;
        margin-bottom: 5px;
    }

    .noticia-extracto {
        font-size: 0.95rem; /* Un poco más grande para lectura táctil */
        margin-bottom: 10px;
    }
}

/* Ajuste específico para móvil (Pantallas < 991px) */
@media (max-width: 991px) {
    .item-noticia-material .noticia-titulo {
        font-size: 1.2rem;
        margin-bottom: 4px; /* Un pelín más de respiro en móvil, pero controlado */
    }
    
    .item-noticia-material .noticia-extracto {
        font-size: 0.9rem;
        /* Si quieres que se vea aún más compacto, reduce el line-height */
        line-height: 1.3; 
    }
    
    /* Si el gap sigue siendo grande, revisa el contenedor de la meta-info */
    .noticia-meta-compacta {
        margin-bottom: 2px;
    }
}

.titulo-foro-link {
    text-decoration: none;
    color: inherit; /* Hereda el color del h2 (negro/gris oscuro) */
    display: block; /* Para que sea clicable en toda la línea si se desea */
}

.titulo-foro-link:hover {
    color: #e62117; /* Cambia a rojo al pasar el ratón para indicar que es un link */
}

.foro-columna h2 {
    margin-bottom: 15px;
    padding-bottom: 5px;
}

/* 1. Contenedor del grid: control total */
.mosaico-grid {
    display: grid !important;
    /* Ajuste automático: mínimo 140px, máximo lo que quepa */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 2. La tarjeta: Altura fija para que todas sean iguales */
.item-marca-rect {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    height: 140px !important; /* Altura fija clave */
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.item-marca-rect:hover {
    border-color: #007bff !important; /* Color de acento */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* 3. El logo: Contenido dentro de su caja */
.logo-box {
    width: 100% !important;
    height: 80px !important; /* Espacio reservado para el logo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.logo-box img {
    max-width: 95% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    
    /* ELIMINAMOS ESTOS FILTROS PARA MANTENER EL COLOR ORIGINAL */
    filter: none !important; 
    opacity: 1 !important; 
    transition: transform 0.2s ease; /* Solo mantenemos una transición suave */
}

/* 4. Título de marca: Siempre abajo */
.brand-label-box {
    width: 100% !important;
    text-align: center !important;
    padding-top: 5px !important;
    flex-shrink: 0;
}

.brand-name-text {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #212529 !important; /* Texto oscuro */
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* El punto clave contra el desborde */
}
/* Efecto hover suave que no cambia el color, solo un pequeño movimiento */
.item-marca-rect:hover .logo-box img {
    transform: scale(1.05); /* Un pequeño zoom al pasar el ratón */
}
/* ===== COLECCIONES: tarjetas compactas (Propuesta C) ===== */
.card-coleccion {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 92px;
    padding: 14px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #e1e3e6;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.card-coleccion-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.card-coleccion-logo img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.card-coleccion-info {
    flex: 1;
    min-width: 0;
}

.card-coleccion .card-coleccion-nombre {
    margin: 0 0 4px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.2 !important;
    color: #222 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-coleccion-meta {
    display: block;
    font-size: 12.5px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-coleccion-tipo {
    margin-right: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #c4160e;
}

.card-coleccion:link,
.card-coleccion:visited,
.card-coleccion:hover,
.card-coleccion:active {
    color: #222 !important;
    text-decoration: none !important;
}

.card-coleccion:hover {
    background-color: #fcfcfc;
    border-color: #c9ccd1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Leftover de la tabla antigua (se conserva por si se usa en otro sitio) */
.table-stats {
    margin-bottom: 5px !important;
}
.table-stats td {
    padding: 1px 0 !important;
    color: #555 !important;
}
.table-stats .val {
    text-align: right !important;
    font-weight: bold !important;
}

/* --- Anuncios dentro de la rejilla --- */
.card-coleccion-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 0;
    background: #f6f7f9;
    border-radius: 10px;
    overflow: hidden;
}

.card-coleccion-banner-label {
    margin-bottom: 6px;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9a9ea5;
}

.card-coleccion-banner > div,
.card-coleccion-banner > iframe {
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* 300x250: columna 3, ocupa las filas 1 a 3 (junto a 6 tarjetas) */
.card-coleccion-banner--lateral {
    grid-column: 3;
    grid-row: 1 / span 3;
}

/* Resto de anuncios: fila completa */
.card-coleccion-banner--fila {
    grid-column: 1 / -1;
}

/* Tablet: 2 columnas, anuncio como fila completa */
@media (max-width: 991px) {
    .colecciones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .card-coleccion-banner--lateral {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* Móvil: 1 columna */
@media (max-width: 600px) {
    .colecciones-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .card-coleccion {
        height: 84px;
    }
}

.stats-inline {
    display: flex;
    gap: 10px;
}

.val {
    font-weight: bold !important;
    color: #000 !important;
}

.badge-total {
    display: inline-block !important;
    background-color: #e62117 !important; /* Rojo Nevasport */
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 0px !important;
	margin-top: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.badge-count {
    font-variant-numeric: tabular-nums !important;
}
.seo-footer-temporadas {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 2px solid #eee !important;
}

.seo-footer-temporadas h3 {
    font-size: 1rem !important;
    color: #666 !important;
    margin-bottom: 15px !important;
}

.links-temporadas-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.link-temporada {
    padding: 5px 12px !important;
    
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    color: #333 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
}

.link-temporada:hover {
    
    border-color: #007bff !important;
    color: #007bff !important;
}
.link-coleccion:hover {
    background: #eef !important;
    border-color: #007bff !important;
    color: #007bff !important;
}
/* Modo Normal (Claro) */
.link-interno-neva { color: #0066cc; }
.link-interno-neva:hover { color: #003366; }

.mat-badge-oculta {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 3px 10px;
    background-color: #e62117;
    color: #fff;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    line-height: 1.4;
}

.mat-coleccion-protegida {
    max-width: 480px;
    margin: 60px auto;
    padding: 30px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}
.mat-coleccion-protegida h2 {
    margin-top: 0;
    color: #333;
}
.mat-coleccion-protegida p {
    color: #666;
    margin-bottom: 20px;
}
.mat-form-clave label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.mat-form-clave input[type="password"] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 260px;
    margin-bottom: 15px;
}
.mat-intro-coleccion {
    max-width: 850px;
    margin: 20px auto 24px;
    padding: 2px 0 2px 16px;
    border-left: 3px solid #e62117;   /* rojo Nevasport, el acento sutil */
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;                       /* alineado con el tono de las gamas, no tan oscuro */
}
.mat-intro-coleccion p {
    margin: 0 0 10px;
}
.mat-intro-coleccion p:last-child {
    margin-bottom: 0;
}
.mat-intro-coleccion,
.mat-intro-coleccion p,
.mat-intro-coleccion span {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14.4px;
    line-height: 1.6;
}
.mat-botones-editor {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.mat-btn-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2c3e50;
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #ecf0f1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.mat-btn-editor:hover {
    background-color: #1a252f;
    color: #ffffff !important;
}
.mat-btn-editor-marca {
    background-color: #e62117;   /* rojo Nevasport, para distinguirlo del de colección */
}
.mat-btn-editor-marca:hover {
    background-color: #c41c13;
}
.mat-btn-editor-ico {
    font-size: 18px;
}

.mat-bandera-marca {
    display: block;
    width: 120px;                          /* NO se toca: mantiene la alineación con el logo */
    margin: 0 0 0 20px;             /* un pelín menos de separación */
    box-sizing: border-box;
    background: rgba(255,255,255,0.55);     /* antes #fff sólido → ahora semitransparente */
    padding: 4px 0;                        /* antes 6px → más baja */
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);  /* sombra más suave */
    text-align: center;
    line-height: 0;
    backdrop-filter: blur(2px);             /* desenfoca la foto detrás → la bandera se lee mejor aun con fondo translúcido */
}
.mat-bandera-marca .mat-bandera {
    display: inline-block;
    width: 30px;                            /* antes 40px → más pequeña */
    height: auto;
    border-radius: 2px;
}

.brand-label-box .mat-bandera {
    width: 18px;
    height: auto;
    margin-left: 6px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.4);
}
.mat-bandera-marca a {
    display: inline-block;
    cursor: pointer;
}
.mat-bandera-marca {
    position: relative;
    z-index: 5;
}

.mat-social-marca {
    position: relative;
    z-index: 5;
    width: 120px;
    margin: 10px 0 0 20px;
    padding: 4px 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    text-align: center;
    border-radius: 5px;
    /* copia aquí el border-radius de .mat-bandera-marca, si lo tiene, para que sean idénticas */
}
.mat-social-marca a {
    display: block;
    padding: 0 6px;
    color: #222;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
        
}
.mat-social-marca a:hover {
    color: #e62117;
}
.mat-social-marca i {
    margin-right: 4px;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.mat-social-marca span {
    vertical-align: middle;
}

.mat-carrusel {
    position: relative;
}
.mat-carrusel-pista {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mat-carrusel-pista::-webkit-scrollbar {
    display: none;
}
.mat-carrusel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    text-align: center;
}
.mat-carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #222;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.mat-carrusel-btn:hover {
    background: #fff;
    color: #e62117;
}
.mat-carrusel-prev { left: 8px; }
.mat-carrusel-next { right: 8px; }
.mat-carrusel-puntos {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.mat-carrusel-punto {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}
.mat-carrusel-punto.activo {
    background: #e62117;
}

@media (max-width: 600px) {
    .mat-carrusel-btn { width: 34px; height: 34px; font-size: 15px; }
}