/* ESTILOS SISTEMA CATEGORÍAS COMPLETO */
.sistema-pagina-completa,
.sistema-menu-principal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #141414;
    line-height: 1.4;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* PÁGINA COMPLETA */
.sistema-pagina-completa {
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.titulo-principal {
    font-size: 28px;
    font-weight: 600;
    color: #141414;
    margin: 0 0 10px 0;
    padding: 0;
}

.subtitulo-principal {
    font-size: 18px;
    font-weight: 400;
    color: #141414;
    margin: 0 0 30px 0;
    padding: 0;
}

/* GRID CATEGORÍAS 3x4 */
.grid-categorias-principal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.categoria-card {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.categoria-card:hover {
    border-color: #141414;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.categoria-enlace {
    display: block;
    text-decoration: none;
    color: #141414;
    padding: 15px;
    text-align: center;
}

.categoria-imagen {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
}

.categoria-imagen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.categoria-nombre {
    font-size: 14px;
    font-weight: 500;
    color: #141414;
    text-align: center;
    margin: 0;
}

/* LÍNEA SEPARADORA */
.linea-separadora {
    height: 1px;
    background-color: #ebebeb;
    margin: 25px 0;
    width: 100%;
}

/* SECCIÓN HISTORIAL */
.seccion-historial {
    margin-bottom: 25px;
}

.titulo-seccion {
    font-size: 18px;
    font-weight: 600;
    color: #141414;
    margin: 0 0 15px 0;
}

.enlace-historial {
    color: #3483fa;
    text-decoration: none;
    font-size: 14px;
}

.enlace-historial:hover {
    text-decoration: underline;
}

/* SECCIÓN ADOPTIVAS */
.seccion-adoptivas {
    margin-bottom: 25px;
}

.texto-adoptivas p {
    font-size: 14px;
    color: #141414;
    margin: 5px 0;
    font-weight: 500;
}

/* MENÚ PRINCIPAL CON PAGINACIÓN */
.sistema-menu-principal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    margin-bottom: 15px;
    position: relative;
}

.contenedor-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.categoria-item {
    width: 100px;
    text-align: center;
}

.categoria-item a {
    text-decoration: none;
    color: #141414;
    display: block;
}

.categoria-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebebeb;
}

.categoria-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.categoria-nombre {
    font-size: 12px;
    font-weight: 500;
    color: #141414;
}

/* FLECHAS DE PAGINACIÓN */
.flecha {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #141414;
    transition: all 0.3s ease;
    user-select: none;
}

.flecha:hover {
    background: #f5f5f5;
    border-color: #141414;
}

.flecha-izq {
    margin-right: 15px;
}

.flecha-der {
    margin-left: 15px;
}

/* ENLACE TODAS LAS CATEGORÍAS */
.enlace-todas {
    text-align: center;
    margin-top: 15px;
}

.enlace-todas a {
    color: #3483fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.enlace-todas a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-categorias-principal {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .contenedor-categorias {
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .categoria-item {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .grid-categorias-principal {
        grid-template-columns: 1fr;
    }
}