/* ==========================================================================
   ESTILOS OPTIMIZADOS - Repuestos Náuticos
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 1.1em;
}

.h1-titulo-principal {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2a5298;
    margin: 2.5rem 0 1.5rem 0;
    padding: 1.0rem 0;
    position: relative;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(42, 82, 152, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(42, 82, 152, 0.1);
    overflow: hidden;
}

.h2-titulo-principal {
    font-size: 1rem;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    color: #2a5298;
}

/* ESTILO PARA H2 CENTRADO - Moderno y profesional */
.h2-centrado {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2a5298;
    /* Azul marino profesional */
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 1rem;
    position: relative;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Línea decorativa opcional debajo */
.h2-centrado::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2a5298, #1e3c72);
    border-radius: 2px;
}

/* Versión alternativa más simple */
.h2-centrado-simple {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3c72;
    margin: 2rem 0;
    line-height: 1.4;
}

/* Versión con icono */
.h2-centrado-icono {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2a5298;
    margin: 2rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.h2-centrado-icono i {
    font-size: 1.8rem;
    color: #f39c12;
    /* Color acento naranja */
}

/* Versión para landing pages */
.h2-centrado-destacado {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin: 3rem 0 2rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.0em
}

/* Responsive */
@media (max-width: 768px) {

    .h2-centrado,
    .h2-centrado-destacado {
        font-size: 1.8rem;
        margin: 2rem 0 1rem 0;
    }

    .h2-centrado-simple,
    .h2-centrado-icono {
        font-size: 1.6rem;
    }

    .h2-centrado::after {
        width: 60px;
        height: 3px;
    }
}

/* Clase utilitaria para cualquier h2 que quieras centrar */
h2.centrar-texto {
    text-align: center !important;
    width: 100%;
    display: block;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Menú superior */
.menu-superior {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 70px;
}

.menu-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}

/* Logo sección */
.logo-seccion {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    color: white;
}

.logo-texto {
    color: white;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Menú lista - Mobile primero (oculto por defecto) */
.menu-lista {
    list-style: none;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.menu-lista.menu-abierto {
    display: flex;
}

/* Menú ítem mobile */
.menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu-texto {
    font-size: 1rem;
}

/* Menú hamburguesa móvil */
.menu-mobile-header {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-hamburguesa {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-hamburguesa:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* CONTENIDO PRINCIPAL */
.contenido-principal {
    max-width: 1200px;
    margin: 80px auto 20px;
    padding: 0 15px;
    width: 100%;
}

.titulo-principal {
    text-align: center;
    margin-bottom: 10px;
    color: #2a5298;
    font-size: 1.2rem;
}

/* FORMULARIOS RESPONSIVOS */
.formulario-busqueda {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%;
}

/* Contenedor formulario - Móviles: 1 columna */
.formulario-busqueda form > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Desktop: 3 columnas para buscar.php */
@media (min-width: 768px) {
    .formulario-busqueda form > div {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 8px;
        align-items: end;
    }
}

/* Desktop: 2 columnas para buscar_generico.php */
.buscar-generico-form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .buscar-generico-form-container {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: end;
    }
}

/* Elementos de formulario */
.form-grupo {
    margin-bottom: 0;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2a5298;
    font-size: 0.9rem;
}

.form-select,
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5ee;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    min-height: 44px;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* BOTONES MÁS PEQUEÑOS Y ESTRECHOS */
.btn-buscar {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 100%;

}

.btn-buscar:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
}

/* Desktop: botones más estrechos */
@media (min-width: 768px) {
    .btn-buscar {
        width: auto;
        min-width: 140px;
        padding: 10px 16px;
    }
}

/* Cuadrícula de categorías */
.cuadricula-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.categoria-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.categoria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.categoria-imagen {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.categoria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    padding: 8px;
}

.categoria-contenido {
    padding: 15px;
    text-align: center;
}

.categoria-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 8px;
}

/* Resultados */
.resultados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.producto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.producto-imagen {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 12px;
}

.producto-imagen img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.03);
}

.icono-fallo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.producto-contenido {
    padding: 15px;
}

.producto-titulo {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2a5298;
}

.producto-info {
    margin-bottom: 12px;
    color: #666;
}

.producto-info p {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.producto-enlaces {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.enlace-tienda {
    display: inline-block;
    padding: 6px 12px;
    background: #2a5298;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.enlace-tienda:hover {
    background: #1e3c72;
}

.marca-badge {
    background: rgba(42, 82, 152, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* ==========================================================================
   MENÚ PARA PANTALLAS GRANDES (769px y más)
   ========================================================================== */
@media (min-width: 769px) {
    .menu-superior {
        height: 100px;
    }

    .menu-contenedor {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .logo-seccion {
        flex: 0 0 auto;
    }

    .menu-mobile-header {
        display: none;
    }

    .menu-lista {
        display: flex !important;
        flex-direction: row;
        position: static;
        top: auto;
        left: auto;
        width: auto;
        background: none;
        box-shadow: none;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        border-bottom: none;
    }

    /* MENÚ CON ICONOS ARRIBA Y TEXTO ABAJO - ALINEADOS VERTICALMENTE */
    .menu-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 8px;
        min-width: 65px;
        max-width: 80px;
        height: 100%;
        transition: all 0.3s ease;
        gap: 6px;
    }

    .menu-link i {
        font-size: 1.3rem;
        margin: 0;
        padding: 0;
        display: block;
        height: 24px;
        line-height: 24px;
        text-align: center;
        width: 100%;
    }

    .menu-texto {
        font-size: 0.7rem;
        line-height: 1.1;
        display: block;
        height: 24px;
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-wrap: break-word;
        max-width: 70px;
        align-self: center;
    }

    /* Contenedor para alineación vertical perfecta */
    .menu-link-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        gap: 6px;
    }

    .menu-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    /* Ajuste del contenido principal para el menú más alto */
    .contenido-principal {
        margin-top: 20px;
    }
}

/* ==========================================================================
   MENÚ PARA PANTALLAS MUY GRANDES (1200px y más)
   ========================================================================== */
@media (min-width: 1200px) {
    .menu-link {
        padding: 10px 12px;
        min-width: 75px;
        max-width: 90px;
        gap: 8px;
    }

    .menu-link i {
        font-size: 1.4rem;
        height: 26px;
        line-height: 26px;
    }

    .menu-texto {
        font-size: 0.75rem;
        max-width: 80px;
        height: 26px;
        line-height: 1.1;
    }

    .menu-link-inner {
        gap: 8px;
    }
}

/* ==========================================================================
   AJUSTES ESPECÍFICOS PARA ALINEACIÓN VERTICAL PERFECTA
   ========================================================================== */
@media (min-width: 769px) {
    .menu-lista {
        align-items: center;
    }

    .menu-item {
        align-items: stretch;
    }

    .menu-link {
        align-items: center;
        justify-content: center;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Asegurar que todos los iconos y textos estén alineados */
    .menu-link i,
    .menu-texto {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ajuste fino para alineación vertical */
    .menu-link {
        position: relative;
    }

    .menu-link::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: transparent;
        transform: translateY(-50%);
        pointer-events: none;
    }
}

/* RESPONSIVE PARA TABLETS Y MÓVILES */
@media (max-width: 768px) {
    .contenido-principal {
        margin-top: 10px;
        padding: 0 10px;
    }

    .titulo-principal {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .formulario-busqueda {
        padding: 15px;
        margin-bottom: 25px;
    }

    .formulario-busqueda form > div {
        gap: 10px;
    }

    .btn-buscar {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 46px;
    }

    .cuadricula-categorias {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .resultados {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .producto-imagen {
        height: 180px;
        padding: 10px;
    }

    .categoria-imagen {
        height: 140px;
    }

    .producto-contenido {
        padding: 12px;
    }

    .categoria-contenido {
        padding: 12px;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .contenido-principal {
        padding: 0 20px;
    }

    .cuadricula-categorias {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 15px;
    }

    .resultados {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    /* Ajustes específicos para tablets en menú */
    .menu-link {
        min-width: 60px;
        max-width: 70px;
        padding: 10px 6px;
        gap: 5px;
    }

    .menu-link i {
        font-size: 1.2rem;
        height: 22px;
        line-height: 22px;
    }

    .menu-texto {
        font-size: 0.65rem;
        max-width: 65px;
        height: 22px;
        line-height: 1.0;
    }
}

/* Mejoras táctiles para móviles */
@media (max-width: 767px) {
    .menu-link {
        padding: 16px 20px;
    }

    .form-select,
    .form-input {
        min-height: 46px;
        font-size: 16px;
    }

    .btn-buscar {
        min-height: 48px;
    }
}

/* Estados de carga */
.btn-buscar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Imágenes en admin */
.foto-preview {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e1e5ee;
    background: white;
    padding: 2px;
}

.foto-grande {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #e1e5ee;
    background: white;
    padding: 8px;
}

.sin-foto {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Iconos */
.icono-categoria {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.categoria-card:hover .icono-categoria {
    transform: scale(1.05);
}

.stats-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Videos */
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-content {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Trust section */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.trust-badge {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eaeaea;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trust-badge i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #2a5298;
}

.trust-badge h3 {
    margin-bottom: 8px;
    color: #2a5298;
    font-size: 1.1rem;
}

/* Páginas legales */
.aviso-card,
.politica-card,
.aviso-legal-card {
    padding: 25px;
}

.aviso-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.aviso-section h3 {
    color: #2a5298;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras de rendimiento para móviles */
@media (max-width: 767px) {

    .categoria-card:hover,
    .producto-card:hover,
    .video-card:hover,
    .trust-badge:hover {
        transform: none;
    }
}

/* Aseguramos que todo sea responsive */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.paginacion-mejorada {
    margin: 40px 0 20px 0;
    text-align: center;
    width: 100%;
}

.paginacion-contenedor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(42, 82, 152, 0.1);
    border: 1px solid #e1e8ed;
    flex-wrap: wrap;
    justify-content: center;
}

.paginacion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8f9fa;
    color: #2a5298;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 40px;
    min-width: 40px;
    cursor: pointer;
}

.paginacion-btn:hover:not(.deshabilitada):not(.paginacion-deshabilitado) {
    background: #2a5298;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(42, 82, 152, 0.2);
    border-color: #2a5298;
}

.paginacion-btn.deshabilitada,
.paginacion-btn.paginacion-deshabilitado {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid #e1e8ed;
    opacity: 0.6;
}

.paginacion-btn.activa {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
    cursor: default;
}

.paginacion-numeros {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.paginacion-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: white;
    color: #2a5298;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
    cursor: pointer;
}

.paginacion-numero:hover:not(.paginacion-actual) {
    background: #f0f4f8;
    color: #2a5298;
    border-color: #2a5298;
    transform: translateY(-1px);
}

.paginacion-numero.paginacion-actual {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
    cursor: default;
}

.paginacion-puntos {
    padding: 0 8px;
    color: #999;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.paginacion-info {
    margin-top: 12px;
    color: #666;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    padding: 0 10px;
}

/* Paginación para móviles pequeños */
@media (max-width: 576px) {
    .paginacion-contenedor {
        padding: 10px;
        gap: 6px;
    }

    .paginacion-btn {
        padding: 8px 12px;
        min-width: 36px;
        min-height: 36px;
        font-size: 0.85rem;
    }

    .paginacion-btn span {
        display: none;
    }

    .paginacion-btn i {
        margin: 0;
    }

    .paginacion-numero {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .paginacion-numeros {
        margin: 0 4px;
        gap: 3px;
    }
}

/* Paginación para tablets */
@media (min-width: 577px) and (max-width: 768px) {
    .paginacion-contenedor {
        padding: 12px 15px;
        gap: 6px;
    }

    .paginacion-btn {
        padding: 9px 14px;
        font-size: 0.85rem;
    }
}

/* Para móviles */
@media (max-width: 768px) {
    .desktop-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .desktop-layout .form-grupo {
        width: 100% !important;
        max-width: 500px !important;
    }

    .desktop-layout .btn-buscar {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        min-width: 150px !important;
        max-width: 200px !important;
        margin-top: 5px !important;
    }
}

/* Estilos específicos para el buscador genérico en index.php */
.buscador-generico-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 30px;
}

.buscador-generico-form {
    display: grid;
    gap: 15px;
}

/* Versión móvil: 1 columna */
.buscador-generico-form > div {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Versión desktop: campo ancho + botón estrecho */
@media (min-width: 768px) {
    .buscador-generico-form > div {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 15px;
        align-items: end;
    }

    /* Campo de búsqueda más ancho */
    .buscador-generico-container .form-grupo {
        flex-grow: 1;
        min-width: 0;
    }

    /* Botón más estrecho */
    .buscador-generico-container .btn-buscar {
        width: auto;
        min-width: 160px;
        max-width: 180px;
        padding: 10px 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Versión móvil ajustes */
@media (max-width: 767px) {
    .buscador-generico-container {
        padding: 20px;
        margin-top: 30px;
    }

    .buscador-generico-container .btn-buscar {
        width: 100%;
        max-width: 100%;
    }
}


/* ============================================
   ESTILOS PARA ENCUESTAS
   ============================================ */

/* Contenedor principal de encuestas */
.encuestas-container {
    max-width: 1000px;
    margin: 80px auto 30px;
    padding: 0 20px;
}

/* Tarjeta de encuesta individual */
.encuesta-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e1e5ee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.encuesta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Cabecera de encuesta */
.encuesta-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5ee;
}

.encuesta-title {
    color: #2a5298;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.encuesta-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Metadatos de encuesta */
.encuesta-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.encuesta-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.encuesta-meta i {
    font-size: 0.9rem;
}

/* Badge de categoría */
.categoria-badge {
    background: linear-gradient(135deg, #e8f4fd, #d4e7fb);
    color: #2a5298;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 600;
    border: 1px solid #c2d9f7;
}

.categoria-badge i {
    margin-right: 5px;
}

/* Formulario de encuesta */
.encuesta-form {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e1e5ee;
}

/* Lista de opciones */
.opciones-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.opcion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e1e5ee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.opcion-item:hover {
    border-color: #2a5298;
    background: #e8f4fd;
    transform: translateX(5px);
}

.opcion-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.opcion-item span {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
}

/* Texto libre */
.texto-libre-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.texto-libre-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* Escala 1-5 */
.escala-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.escala-item {
    flex: 1;
    text-align: center;
}

.escala-radio {
    display: none;
}

.escala-label {
    display: block;
    padding: 12px 5px;
    background: #f8f9fa;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #666;
}

.escala-label:hover {
    background: #e8f4fd;
    border-color: #2a5298;
}

.escala-radio:checked + .escala-label {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
    transform: scale(1.05);
}

/* Indicadores de escala */
.escala-indicadores {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 0 5px;
}

/* Botón de votar */
.btn-votar {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
    margin-top: 20px;
}

.btn-votar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, #219653, #27ae60);
}

.btn-votar:active {
    transform: translateY(-1px);
}

.btn-votar:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Información de votos */
.votos-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5ee;
    color: #666;
    font-size: 0.9rem;
}

.votos-total a {
    color: #2a5298;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.votos-total a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Mensaje cuando no hay encuestas */
.sin-encuestas {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.sin-encuestas i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #2a5298;
}

.sin-encuestas h3 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.sin-encuestas p {
    color: #777;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Título principal */
.encuestas-title {
    text-align: center;
    margin-bottom: 10px;
    color: #2a5298;
    font-size: 2rem;
    font-weight: 700;
}

.encuestas-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Responsive para encuestas */
@media (max-width: 768px) {
    .encuestas-container {
        margin: 70px auto 20px;
        padding: 0 15px;
    }

    .encuesta-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .encuesta-title {
        font-size: 1.2rem;
    }

    .encuesta-meta {
        gap: 10px;
        font-size: 0.8rem;
    }

    .escala-container {
        flex-direction: column;
        gap: 8px;
    }

    .escala-item {
        width: 100%;
    }

    .opcion-item {
        padding: 12px;
        gap: 10px;
    }

    .btn-votar {
        padding: 12px 20px;
        max-width: 100%;
    }

    .sin-encuestas {
        padding: 40px 15px;
    }

    .sin-encuestas i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .encuesta-meta {
        flex-direction: column;
        gap: 8px;
    }

    .encuestas-title {
        font-size: 1.5rem;
    }

    .encuestas-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* ============================================
   ESTILOS PARA LA SECCIÓN OPINA
   ============================================ */

/* Formulario de opinión */
.formulario-opinion {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Mensajes de éxito/error */
.mensaje-exito {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #c3e6cb;
}

.mensaje-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #f5c6cb;
}

/* Estrellas de puntuación */
.rating-star.selected i {
    color: #FFD700;
}

.rating-star.hover i {
    color: #FFE55C;
}

/* Tarjeta de opinión */
.opinion-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2a5298;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opinion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Badges */
.badge {
    background: #e8f4fd;
    color: #2a5298;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Grid de información */
.info-opiniones {
    margin-top: 50px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Responsive para opina.php */
@media (max-width: 768px) {
    .contenido-principal {
        margin-top: 80px;
        padding: 0 10px;
    }

    .formulario-opinion {
        padding: 20px;
    }

    .formulario-opinion > div > div {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .opinion-card {
        padding: 20px;
    }

    .info-opiniones > div {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .formulario-opinion {
        padding: 25px;
    }

    .opinion-card {
        padding: 22px;
    }
}

/* ============================================
   ESTILOS PARA TODAS LAS OPINIONES
   ============================================ */

/* Filtros */
.filtros-opiniones {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Sin opiniones */
.sin-opiniones {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.sin-opiniones i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #2a5298;
}

.sin-opiniones h3 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.sin-opiniones p {
    color: #777;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Paginación para opiniones */
.paginacion-opiniones {
    margin: 40px 0;
    text-align: center;
}

/* Responsive para opiniones-recientes.php */
@media (max-width: 768px) {
    .filtros-opiniones form {
        grid-template-columns: 1fr !important;
    }

    .opinion-card > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .opinion-rating {
        margin-top: 5px;
    }

    .sin-opiniones {
        padding: 40px 15px;
    }

    .sin-opiniones i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .badge {
        display: block !important;
        margin-bottom: 10px !important;
        width: fit-content;
    }

    .opinion-card > div:first-child > div:first-child > div {
        flex-direction: column;
        gap: 5px;
    }
}

/* VIDEOS */
.video-card:focus {
    outline: 3px solid #2a5298;
    outline-offset: 3px;
}

/* Modal fijo y seguro */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Overlay de play siempre visible */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 48px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

/* Indicador de que la visualización cuenta */
.view-count-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 2;
}

/* ============================================
   ESTILOS PARA BUSCAR.PHP
   ============================================ */

/* Mensaje de categoría auto-seleccionada */
.mensaje-auto-categoria {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e7fa 100%);
    border: 2px solid #2a5298;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 15px 0 25px 0;
    color: #2a5298;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.1);
}

.mensaje-auto-categoria i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.mensaje-auto-categoria strong {
    color: #1e3c72;
}

/* Select auto-seleccionado */
select.auto-selected {
    border-color: #2a5298 !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15) !important;
    animation: pulse 2s infinite;
}

/* Tooltip para marca */
.marca-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: bounce 1s infinite alternate;
    margin-left: 10px;
    color: #2a5298;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Animaciones para buscar.php */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 82, 152, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(42, 82, 152, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 82, 152, 0);
    }
}

@keyframes bounce {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(5px);
    }
}

/* Responsive para buscar.php */
@media (max-width: 768px) {
    .mensaje-auto-categoria {
        padding: 12px 15px;
        font-size: 0.9rem;
        margin: 10px 0 20px 0;
    }

    .marca-tooltip {
        display: block;
        margin-top: 5px;
        margin-left: 0;
        animation: none;
    }
}

/* ==========================================================================
   ESTILOS PARA ESTADÍSTICAS DEL CATÁLOGO
   ========================================================================== */

.estadisticas-catalogo {
    margin: 50px 0 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.estadisticas-catalogo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.estadisticas-catalogo::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.estadistica-item {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.estadistica-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.estadistica-numero {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.estadistica-label {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.marcas-destacadas {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.marca-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.marca-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.marca-nombre {
    font-weight: 500;
}

.marca-cantidad {
    background: rgba(76, 217, 100, 0.2);
    color: #4cd964;
    padding: 3px 8px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.info-tiempo-real {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-tiempo-real i {
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Responsive para estadísticas */
@media (max-width: 768px) {
    .estadisticas-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .estadisticas-catalogo {
        padding: 20px;
        margin: 30px 0 20px 0;
    }

    .marcas-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .estadistica-numero {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .estadisticas-grid {
        grid-template-columns: 1fr;
    }

    .marcas-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Mantener compatibilidad con estilos existentes */
@media (max-width: 767px) {
    .estadistica-item:hover {
        transform: none;
    }

    .marca-item:hover {
        transform: none;
        border-color: transparent;
    }
}

/* ============================================
   ESTILOS MEJORADOS PARA PAR DE APRIETE
   ============================================ */

/* Breadcrumbs */
.breadcrumb {
    background: #f8f9fa;
    padding: 10px 20px;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    color: #4a6fa5;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.breadcrumb li a:hover {
    background: #eef2f7;
    color: #2c5282;
}

.breadcrumb .separator {
    margin: 0 6px;
    color: #9ba6b5;
    font-size: 0.9rem;
}

.breadcrumb li:last-child a {
    color: #4a5568;
    font-weight: 500;
    cursor: default;
}

/* Estadísticas en encabezado - MÁS DISCRETO */
.estadisticas-encabezado {
    display: flex;
    gap: 15px;
    margin: 15px 0 25px 0;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
}

.estadistica {
    background: #f7f9fc;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #4a6fa5;
    border: 1px solid #d1dce9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.estadistica i {
    font-size: 0.75rem;
    color: #718096;
}

/* CABECERAS DE TABLA - TEXTO BLANCO */
.tabla-resultados thead {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.tabla-resultados thead tr th {
    color: #ffffff !important;
    background: #2c3e50;
    font-weight: 600;
    text-align: center;
    padding: 16px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1a252f;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradiente de azules para cada columna */
.tabla-resultados thead tr th:nth-child(1) { 
    background: #2c3e50;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-resultados thead tr th:nth-child(2) { 
    background: #34495e;
}

.tabla-resultados thead tr th:nth-child(3) { 
    background: #3c5a75;
}

.tabla-resultados thead tr th:nth-child(4) { 
    background: #456b8c;
}

.tabla-resultados thead tr th:nth-child(5) { 
    background: #4d7ca2;
}

.tabla-resultados thead tr th:nth-child(6) { 
    background: #558db9;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efecto hover sutil */
.tabla-resultados thead tr th:hover {
    filter: brightness(110%);
    transition: filter 0.2s ease;
}

/* Asegurar que el color blanco se mantenga en todos los estados */
.tabla-resultados thead th,
.tabla-resultados thead th:visited,
.tabla-resultados thead th:focus,
.tabla-resultados thead th:active,
.tabla-resultados thead th:hover {
    color: #ffffff !important;
}

/* Fuerza el color blanco incluso si hay otros estilos */
.tabla-resultados thead tr th * {
    color: #ffffff !important;
}

/* Mejoras para tablas */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tabla-resultados {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tabla-resultados td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    color: #2d3748;
}

.tabla-resultados tbody tr:nth-child(even) {
    background-color: #fafbfd;
}

.tabla-resultados tbody tr:hover {
    background-color: #edf2f7;
}

.tabla-resultados tbody tr:focus-within {
    background-color: #e2e8f0;
    outline: 2px solid #4299e1;
}

/* Contador de resultados - MÁS DISCRETO */
.contador-resultados {
    background: #f0f7ff;
    color: #2c5282;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0 20px 0;
    text-align: center;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    border: 1px solid #c5d8f1;
    opacity: 0.9;
}

.contador-resultados i {
    color: #4299e1;
    font-size: 0.9rem;
}

/* Mejoras en paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.paginacion-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.paginacion-btn:hover:not(.deshabilitada) {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    transform: translateY(-1px);
}

.paginacion-btn.activa {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
    font-weight: 500;
}

.paginacion-btn.deshabilitada {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Aviso técnico mejorado */
.aviso-tecnico {
    background: #fffaf0;
    border: 1px solid #feebc8;
    border-left: 4px solid #ed8936;
    color: #744210;
    padding: 12px 15px;
    margin: 15px 0 25px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Sin resultados mejorado */
.sin-resultados-container {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
}

.sin-resultados-container i {
    color: #a0aec0;
    margin-bottom: 15px;
}

.sin-resultados-container h3 {
    color: #718096;
    margin-bottom: 10px;
    font-weight: 500;
}

.sin-resultados-container p {
    color: #718096;
    max-width: 500px;
    margin: 0 auto 20px;
    font-size: 0.9rem;
}

/* Botones mejorados - MÁS DISCRETOS */
.btn-nueva-busqueda {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4299e1;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-nueva-busqueda:hover {
    background: #3182ce;
    transform: translateY(-1px);
    color: white;
}

.btn-buscar {
    background: #2c5282;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px auto 0;
    min-width: 180px;
}

.btn-buscar:hover {
    background: #2a4365;
    transform: translateY(-1px);
}

/* Centrado */
.centrado {
    text-align: center;
    margin: 25px 0;
}

/* Estilos para accesibilidad */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles para accesibilidad */
a:focus,
button:focus,
select:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 8px 15px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .estadisticas-encabezado {
        gap: 8px;
        margin: 12px 0 20px 0;
    }
    
    .estadistica {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    .tabla-resultados thead tr th {
        padding: 12px 8px;
        font-size: 0.85rem;
        color: #ffffff !important;
    }
    
    .tabla-resultados td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .contador-resultados {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .paginacion-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .btn-buscar,
    .btn-nueva-busqueda {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb .separator {
        margin: 0 4px;
        font-size: 0.8rem;
    }
    
    .estadistica {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .estadistica i {
        font-size: 0.7rem;
    }
    
    .tabla-resultados {
        font-size: 0.8rem;
    }
    
    .tabla-resultados thead tr th {
        padding: 10px 6px;
        font-size: 0.8rem;
        color: #ffffff !important;
    }
    
    .tabla-resultados td {
        padding: 8px 6px;
    }
    
    .paginacion {
        gap: 2px;
    }
    
    .paginacion-btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .sin-resultados-container {
        padding: 30px 15px;
    }
}

/* Mejoras para el formulario de búsqueda */
.formulario-busqueda {
    background: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.grid-filtros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.select-filtro {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #2d3748;
    transition: border-color 0.2s;
}

.select-filtro:focus {
    border-color: #4299e1;
    outline: none;
}

.select-filtro:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabla-resultados tbody tr {
    animation: fadeInUp 0.25s ease-out;
}

/* Estados de carga mejorados */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Separadores sutiles */
.separador {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

/* Mejoras para impresión */
@media print {
    .breadcrumb,
    .formulario-busqueda,
    .btn-nueva-busqueda,
    .paginacion,
    .estadisticas-encabezado {
        display: none;
    }
    
    .table-responsive {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .tabla-resultados thead tr th {
        color: #000000 !important;
        background: #d1dce9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .tabla-resultados tbody tr {
        page-break-inside: avoid;
    }
}