/* Contenedor principal */
.formRecetas {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Título */
.formRecetas h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #e74c3c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buscador */
.Buscador {
    width: 100%;
    margin-bottom: 30px;
}

.Buscador_recetas {
    width: 100%;
    padding: 15px 25px;
    font-size: 16px;
    border: 3px solid #c0392b;
    border-radius: 50px;
    box-sizing: border-box;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.15);
}

.Buscador_recetas:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.35);
    transform: translateY(-2px);
}

/* Contenedor de los dos cuadros lado a lado */
.filtros-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 10px;
}

/* Etiquetas*/
.Etiquetas {
    background: white;
    border: 3px solid #e74c3c;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
    min-height: 200px;
}

.Etiquetas > label {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    color: #e74c3c;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcccb;
}

#Categoria {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

#Categoria label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    background: #fff;
    border: 2px solid #ffcccb;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

#Categoria label:hover {
    background: #ffe5e5;
    border-color: #e74c3c;
    color: #c0392b;
}

#Categoria input[type="checkbox"] {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #e74c3c;
    flex-shrink: 0;
    margin: 0;
}

#Categoria label:has(input:checked) {
    background: #e74c3c;
    border-color: #c0392b;
    color: white;
    font-weight: 600;
}

/*Ingredientes*/
.ingredientes-seccion {
    border-color: #27ae60 !important;
}

.ingredientes-seccion > label {
    color: #27ae60 !important;
    border-bottom-color: #d4edda !important;
}

#Ingredientes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

#Ingredientes label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    background: #fff;
    border: 2px solid #d4edda;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

#Ingredientes label:hover {
    background: #e8f8f5;
    border-color: #27ae60;
    color: #229954;
}

#Ingredientes input[type="checkbox"] {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #27ae60;
    flex-shrink: 0;
    margin: 0;
}

#Ingredientes label:has(input:checked) {
    background: #27ae60;
    border-color: #229954;
    color: white;
    font-weight: 600;
}


/* Botón limpiar */
.botonesBuscador {
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.Limpiar {
    padding: 15px 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.Limpiar:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(192, 57, 43, 0.7);
}

/* Tarjetas */
.cards {
    max-width: 1400px;
    margin: 10px auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.otro {
    margin-bottom: 100px;
}

.Mostrar{
    margin-bottom: 5px;
}
/* Paginacion */

.paginacion {
    margin: 1.5rem 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-family: inherit;
}

.paginacion button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;            
    font-size: 0.9rem;
    font-weight: 500;
    background: #E8534F;            
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    
    transition: transform 0.15s ease, 
                box-shadow 0.15s ease,
                background 0.15s ease;
}

/* Hover / foco */
.paginacion button:hover,
.paginacion button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background: rgb(204, 57, 12);        
}

/* Por si en un futuro deshabilitas alguno */
.paginacion button:disabled {
    cursor: default;
    background: #e0e0e0;
    color: #888;
    box-shadow: none;
    transform: none;
}

/* Texto "Página X" */
.paginacion span {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #f5f5f5;
    color: #555;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}


/* Responsive */
@media (max-width: 968px) {
    .filtros-container {
        grid-template-columns: 1fr;
    }
    
    .botones {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formRecetas h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .formRecetas h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .botones {
        grid-template-columns: 1fr;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .Etiquetas {
        padding: 15px;
    }
    
    #Categoria label,
    #Ingredientes label {
        font-size: 12px;
        padding: 6px 12px;
    }
}