/* ============================================================
   FIX TOTAL: NIVELACIÓN, TEXTO PEGADO Y FILTROS EN LÍNEA
   ============================================================ */

.buscador-interactivo {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 15px 25px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;         
  gap: 15px;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 0 auto 35px auto;
  max-width: 1280px;
}

.bloque-busqueda {
  flex: 2;
  min-width: 200px;
  position: relative;
}

/* EL NARANJA CUANDO HACES CLIC EN EL INPUT */
.input-cristal {
  height: 40px !important;
  padding: 0 10px 0 35px !important; 
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none !important; /* Quitamos el azul feo del navegador */
}

.input-cristal:focus {
  border-color: #ff9800 !important; /* EL NARANJA QUE QUERÍAS */
  box-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
}

.bloque-filtros {
  display: flex;
  flex: 3;
  gap: 10px;
  flex-wrap: nowrap;
}

.filtro-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

.filtro-item label {
  margin-bottom: 9px; 
  margin-left: 5px;
}

/* EL NARANJA CUANDO HACES CLIC EN EL SELECTOR */
.select-cristal {
  height: 40px !important;
  padding: 0 10px !important;
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s;
  outline: none !important;
}

.select-cristal:focus {
  border-color: #ff9800 !important; /* EL NARANJA QUE QUERÍAS */
}

.bloque-accion {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.bloque-accion .btn-tux-base {
  height: 40px !important;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 8px;
  margin: 0;
}

.bloque-busqueda i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  z-index: 5;
}

/* ... (El resto del código de resultados y reseñas queda exactamente igual que lo tenías) ... */

#contenedor-resultados {
    margin: 30px auto;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column; 
}

.tux-acordeon {
    background: #fff !important; 
    border: 1px solid #ddd !important;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

.acordeon-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #000 !important; 
}

.nombre-software { flex: 1; font-size: 18px; }

.header-derecha {
    display: flex;
    align-items: center;
    gap: 15px;
}

.valoracion { font-weight: 700; color: #333; }

.acordeon-header::after {
    content: '+';
    font-size: 22px;
    font-weight: bold;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.acordeon-content {
    display: none; 
    border-top: 1px solid #eee;
    background: #fff;
}

.tux-acordeon.abierto .acordeon-content {
    display: block !important; 
}

.tux-acordeon.abierto .acordeon-header::after { 
    content: '−'; 
}

.resenas-lateral-autor {
    width: 120px;
    padding: 15px;
    background: #f8f8f8;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.resenas-nombre-usuario { font-weight: bold; color: #333; font-size: 12px; text-align: center; }
.resenas-puntuacion-badge { 
    margin-top: 6px; 
    background: #333; 
    color: #fff; 
    padding: 3px 8px; 
    border-radius: 15px; 
    font-size: 12px; 
}

.resenas-contenido-cuerpo { padding: 20px; flex: 1; color: #333; }
.resenas-titulo-critica { margin: 0 0 8px 0; font-size: 17px; color: #000; font-weight: bold; }
.resenas-comentario-texto { font-size: 13.5px; line-height: 1; color: #555; font-style: italic; }

.resenas-grid-detalles { display: flex; gap: 10px; margin-top: 15px; }
.resenas-tag { flex: 1; padding: 8px; border-radius: 5px; font-size: 11px; font-weight: bold; text-align: center; }
.resenas-tag-pro { background: #e7f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.resenas-tag-contra { background: #fbe9e7; color: #c62828; border: 1px solid #ffccbc; }

.resenas-expandibles {
    width: 100%;
    display: none; 
    border-top: 1px solid #eee;
    background: #fdfdfd;
    box-sizing: border-box; 
}

.resenas-contenedor-principal {
    width: 100% !important;
    max-width: none !important; 
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.resenas-tarjeta-item {
    background: #ffffff;
    display: flex;
    width: 100%; 
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: left;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: none !important; 
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .resenas-tarjeta-item {
        flex-direction: column;
    }
    .resenas-lateral-autor {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee;
    }
}

/* ============================================================
   NUEVO CONTENEDOR DE BUSCADORES
   ============================================================ */

/* Contenedor maestro de cada sección */
.contexto-tux {
    width: 100%;
    max-width: 1280px; /* Para que coincida con el buscador */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Estilo para la nueva cabecera del selector */
.cabecera-unificada-busqueda {
    padding: 30px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-tux {
    /* Dimensiones forzadas */
    height: 42px !important;
    min-width: 200px !important;
    box-sizing: border-box;
    
    /* Reset de estilos del navegador */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;

    /* Estética */
    padding: 0 35px 0 15px;
    background-color: hsl(19, 100%, 50%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);

    /* La Flecha Naranja */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23ff9800" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Para que las opciones se vean negras en el desplegable */
.selector-tux option {
    background: #1a1a1a;
    color: #fff;
}

/* Resultados del buscador global: conservan la tarjeta original, pero abren ficha.php. */
.tux-resultado-ficha { margin-bottom: 15px; overflow: hidden; }
.tux-resultado-enlace { display: flex; width: 100%; box-sizing: border-box; gap: 15px; text-decoration: none; }
.tux-resultado-enlace:hover { border-color: #ff9800; }
.tux-resultado-enlace:focus-visible { outline: 2px solid #ff9800; outline-offset: -3px; }
.tux-resultado-enlace::after { content: '+'; }
.tux-resultado-enlace .nombre-software { min-width: 0; overflow-wrap: anywhere; }
.tux-resultado-tipo { display: block; margin-top: 5px; color: #888; font-size: 11px; font-weight: 500; letter-spacing: .3px; }
.tux-resultado-enlace .header-derecha { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tux-resultado-insignia { background: #f1f1f1; color: #444; font-size: 9px; padding: 3px 6px; border-radius: 4px; font-weight: 700; }
.tux-resultado-votos { color: #888; font-size: 11px; white-space: nowrap; }
.tux-resultado-descontinuado { opacity: .8; }
@media (max-width: 620px) {
  .tux-resultado-enlace { align-items: flex-start; padding: 16px; }
  .tux-resultado-enlace .header-derecha { gap: 6px; }
  .tux-resultado-votos { display: none; }
}

/* ==========================================================
   EXPLORAR - CABECERA AMARILLA CON BUSCADOR INTEGRADO
   ========================================================== */

/* Paleta propia de Explorar */
:root {
    --explorar-color-start: #E7B800;
    --explorar-color-end: #FFF000;
}

.explorar-header {
    width: 100%;
    max-width: 1280px;
    min-height: 360px;
    margin: 0 auto 10px;
    padding: 40px 50px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        110deg,
        var(--explorar-color-start) 0%,
        var(--explorar-color-end) 100%
    );

    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contenido de la cabecera */
.explorar-header__contenido {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.explorar-header__intro {
    width: 100%;
    text-align: left;
}

.explorar-header__intro .titulo {
    margin: 0 0 10px;

    color: #1a1a1a;
    font-family: 'Audiowide', cursive;
    font-size: 1.8rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.explorar-header__intro .texto {
    max-width: 1000px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a;
}

/* Buscador integrado: sin tarjeta, cristal ni sombra */
.explorar-header .contenedor-motor-busqueda {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.explorar-header .buscador-interactivo {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.explorar-header .bloque-busqueda {
    flex: 1;
    min-width: 0;
}

.explorar-header .filtro-item {
    width: 100%;
}

.explorar-header .filtro-item label {
    margin-bottom: 9px;
}

.explorar-header .input-cristal {
    width: 100%;
    height: 48px !important;
    font-size: 15px;
}

.explorar-header .bloque-accion {
    flex-shrink: 0;
}

.explorar-header .bloque-accion .btn-tux-base {
    height: 48px !important;
    min-width: 130px;
}

/* Adaptación móvil */
@media (max-width: 700px) {
    /* Mismo posicionamiento superior que los banners .tu-banner.
       Se conserva el padding global de main para que el título no quede
       oculto detrás del menú fijo. */
    .explorar-header {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin-top: -40px !important;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
        padding: 26px 18px;
        box-sizing: border-box;
        background: linear-gradient(110deg, #E7B800 0%, #FFF000 100%);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .explorar-header__contenido,
    .explorar-header__intro,
    .explorar-header .contenedor-motor-busqueda,
    .explorar-header .buscador-interactivo,
    .explorar-header .bloque-busqueda,
    .explorar-header .filtro-item,
    .explorar-header .filtro-item > div {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .explorar-header__intro {
        text-align: left;
    }

    .explorar-header__intro .titulo {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        overflow-wrap: anywhere;
    }

    .explorar-header__intro .texto {
        font-size: 0.95rem;
    }

    .explorar-header .buscador-interactivo {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .explorar-header .filtro-item > div {
        position: relative;
    }

    .explorar-header .input-cristal {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .explorar-header .bloque-accion {
        display: flex;
        width: 100%;
        min-width: 0;
        gap: 10px;
    }

    .explorar-header .bloque-accion .btn-tux-base {
        flex: 1 1 0;
        width: 50%;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}